Package org.jfree.ui

Class InsetsTextField

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, Scrollable, SwingConstants

public class InsetsTextField extends JTextField
A JTextField for displaying insets.
See Also:
  • Field Details

    • localizationResources

      protected static ResourceBundle localizationResources
      The resourceBundle for the localization.
  • Constructor Details

    • InsetsTextField

      public InsetsTextField(Insets insets)
      Default constructor. Initializes this text field with formatted string describing provided insets.
      Parameters:
      insets - the insets.
  • Method Details

    • formatInsetsString

      public String formatInsetsString(Insets insets)
      Returns a formatted string describing provided insets.
      Parameters:
      insets - the insets.
      Returns:
      the string.
    • setInsets

      public void setInsets(Insets insets)
      Sets the text of this text field to the formatted string describing provided insets. If insets is null, empty insets (0,0,0,0) are used.
      Parameters:
      insets - the insets.