Class TextBlockPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class TextBlockPanel extends JPanel
A panel used by the DrawStringDemo class.
See Also:
  • Field Details

    • PREFERRED_SIZE

      private static final Dimension PREFERRED_SIZE
      The preferred size for the panel.
    • text

      private String text
      The text to display.
    • font

      private Font font
      The font to use.
  • Constructor Details

    • TextBlockPanel

      public TextBlockPanel(String text, Font font)
      Creates a new panel.
      Parameters:
      text - the text.
      font - the font.
  • Method Details