A component that allows the user to type in a non-negative integer (and only a non-negative integer)
A subclass of JTextField
Extra methods:
getNumericValue()
and setNumericValue()
Positive tests:
0
1
2
3
4
5
6
7
8
9
10
100
1234
123456789
2^32-1
2^64-1
2^64+1
Exception tests:
getNumberValue()
before anything is typed
-1
-2
-10
-123456789
-2^32-1
-2^64-1
-2^64+1