protected void setOkEnabled(boolean enabled, String message) {

        if (enabled) {
            m_okButton.enable();
        } else {
            m_okButton.disable(message);
        }
    }
protected void setOkEnabled ( boolean enabled , String message ) { if ( enabled ) { m_okButton . enable ( ) ; } else { m_okButton . disable ( message ) ; } }
Enables or disables the OK button.<p>

@param enabled <code>true</code> to enable the button
@param message the disabled reason