Class DisplayTextField

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

public class DisplayTextField extends JTextField
This is a specialized JTextField that is meant to be used as a pure display, i.e. to show a text value that comes from some other interaction, e.g. the weapons selected for Conventional Infantry in MML, while at the same time looking like an input text field. It does not allow editing and cannot get focus. If the text overflows the length of the field, the start of the text is shown (the end is cut off).
See Also:
  • Constructor Details

    • DisplayTextField

      public DisplayTextField()
    • DisplayTextField

      @Deprecated(since="0.51.0", forRemoval=true) public DisplayTextField(String text)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • DisplayTextField

      public DisplayTextField(int columns)
    • DisplayTextField

      public DisplayTextField(String text, int columns)
    • DisplayTextField

      @Deprecated(since="0.51.0", forRemoval=true) public DisplayTextField(Document doc, String text, int columns)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details