Example usage for javax.swing JSplitPane setEnabled

List of usage examples for javax.swing JSplitPane setEnabled

Introduction

In this page you can find the example usage for javax.swing JSplitPane setEnabled.

Prototype

@BeanProperty(expert = true, preferred = true, visualUpdate = true, description = "The enabled state of the component.")
public void setEnabled(boolean enabled) 

Source Link

Document

Sets whether or not this component is enabled.

Usage

From source file:com.ixora.rms.ui.RMSFrame.java

/**
 * Resets the current view./*from ww w  .jav  a  2  s .  c o m*/
 *
 * @return true if the current view vetoed the close request
 */
protected boolean resetCurrentView() {
    boolean veto = super.resetCurrentView();
    if (veto) {
        return true;
    }
    JSplitPane p = getJSplitPane();
    p.setLeftComponent(null);
    p.setEnabled(false);
    p.setRightComponent(getJDesktopPane());
    setTitle(MessageRepository.get(Msg.TITLE_FRAME_RMS));
    fDirtySession = false;
    return false;
}