Package de.redsix.pdfcompare.ui
Class PositiveIntegerVerifier
- java.lang.Object
-
- javax.swing.InputVerifier
-
- de.redsix.pdfcompare.ui.PositiveIntegerVerifier
-
public class PositiveIntegerVerifier extends InputVerifier
allow only valid numbers to be input into a JTextField. Validity is verified by using Integer.parseInt on the text.
-
-
Constructor Summary
Constructors Constructor Description PositiveIntegerVerifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanverify(JComponent input)-
Methods inherited from class javax.swing.InputVerifier
shouldYieldFocus, shouldYieldFocus, verifyTarget
-
-
-
-
Method Detail
-
verify
public boolean verify(JComponent input)
- Specified by:
verifyin classInputVerifier
-
-