Class TextEditPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class TextEditPanel extends JPanel
See Also:
  • Field Details

    • inText

      public final String inText
    • inStyle

      public final Styled inStyle
    • inFont

      public final Font inFont
  • Constructor Details

    • TextEditPanel

      public TextEditPanel(String text, Font font, IStyled style)
      Create a panel for editing text with the given initial text and style.
      Parameters:
      text - the initial text content
      style - the initial style to apply
  • Method Details

    • getSelectedFont

      public Font getSelectedFont()
      Get the selected font.
      Returns:
      the selected font.
    • getEditedText

      public String getEditedText()
      Get the edited text.
      Returns:
      the edited text.
    • getSelectedStyle

      public IStyled getSelectedStyle()
      Get the edited text style.
      Returns:
      the edited text style.
    • getInsets

      public Insets getInsets()
      Returns the insets to use for this panel.

      This implementation slightly increases the default insets, which can help provide a small visual margin around the content.

      Overrides:
      getInsets in class JComponent
      Returns:
      the insets for this panel