Method Summary |
|
public void | actionPerformed(ActionEvent e) After any user input, the value of the textfield is proofed. |
public void | adjustmentValueChanged(AdjustmentEvent e) The 2 buttons are implemented with a JScrollBar. |
public void | caretUpdate(CaretEvent e) After any user input, the value of the textfield is proofed. |
public int | getMaximum() Returns the maximum value. |
public int | getMinimum() Returns the minimum value. |
public int | getValue() Returns the value. |
public static void | main(String[] s) Creates a JFrame with a JSpinField inside and can be used for testing. |
public void | setEnabled(boolean enabled) Enable or disable the JSpinField. |
public void | setFont(Font font) Sets the font property. |
public void | setForeground(Color fg) Sets the foreground color. |
public void | setHorizontalAlignment(int alignment) Sets the horizontal alignment of the displayed value. |
public void | setMaximum(int newMaximum) Sets the maximum value and adjusts the preferred width. |
public void | setMinimum(int newMinimum) Sets the minimum value. |
protected void | setValue(int newValue, boolean updateTextField, boolean updateScrollbar) |
public void | setValue(int newValue) Sets the value. |