List of usage examples for java.awt Button isEnabled
public boolean isEnabled()
From source file:ExposedInt.java
void enableDisableButton(Button b, int val) { if (!b.isEnabled()) { if (value != val) { b.enable();//from w ww .j a v a2s . c o m } } else if (value == val) { b.disable(); } }
From source file:ExposedFloat.java
void enableDisableButton(Button b, float val) { if (!b.isEnabled()) { if (value != val) { b.enable();/*from ww w. j a va2s .co m*/ } } else if (value == val) { b.disable(); } }