Class IntegerDocument

All Implemented Interfaces:
Serializable, Document

public class IntegerDocument extends PlainDocument
a Integer only document for JTextFields, and other components that use PlainDocument
See Also:
  • Field Details

    • _length

      protected int _length
  • Constructor Details

  • Method Details

    • setMin

      public void setMin(int min)
    • getMin

      public int getMin()
    • setMax

      public void setMax(int max)
    • getMax

      public int getMax()
    • setLength

      public void setLength(int length)
    • getLength

      public int getLength(int length)
    • setAllowsNegativeNumbers

      public void setAllowsNegativeNumbers(boolean b)
    • allowsNegativeNumber

      public boolean allowsNegativeNumber()
    • insertString

      public void insertString(int offs, String str, AttributeSet a) throws BadLocationException
      Specified by:
      insertString in interface Document
      Overrides:
      insertString in class PlainDocument
      Throws:
      BadLocationException