Example usage for java.awt Button enable

List of usage examples for java.awt Button enable

Introduction

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

Prototype

@Deprecated
public void enable() 

Source Link

Usage

From source file:ExposedInt.java

void enableDisableButton(Button b, int val) {

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