TextBox which only accepts numbers as input.
void keyPressed(gcn::KeyEvent &event) override
Responds to key presses.
void reset()
Reset the field to the default value.
void setRange(int minimum, int maximum)
Sets the minimum and maximum values of the text box.
int getValue()
Returns the value in the text box.
void setDefaultValue(int value)
Set the default value of the text box to the specified value.
void setValue(int value)
Set the value of the text box to the specified value.