Example usage for java.awt Button disable

List of usage examples for java.awt Button disable

Introduction

In this page you can find the example usage for java.awt Button disable.

Prototype

@Deprecated
public void disable() 

Source Link

Usage

From source file:ExposedInt.java

void enableDisableButton(Button b, int val) {

    if (!b.isEnabled()) {
        if (value != val) {
            b.enable();/*from w  w w  .  j  a v  a2 s  .co 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();/*w  ww . j  a  v a  2  s .c  om*/
        }
    } else if (value == val) {
        b.disable();
    }
}