Example usage for javax.swing Action SELECTED_KEY

List of usage examples for javax.swing Action SELECTED_KEY

Introduction

In this page you can find the example usage for javax.swing Action SELECTED_KEY.

Prototype

String SELECTED_KEY

To view the source code for javax.swing Action SELECTED_KEY.

Click Source Link

Document

The key used for storing a Boolean that corresponds to the selected state.

Usage

From source file:se.trixon.jota.client.ui.MainFrame.java

private void loadConfiguration() {
    if (!mManager.isConnected()) {
        return;//from  w  w  w  .ja va  2  s.c  o  m
    }

    boolean hasJob = mManager.isConnected() && mManager.hasJobs();

    Action cronAction = mActionManager.getAction(ActionManager.CRON);

    try {
        boolean cronActive = mManager.getServerCommander().isCronActive();
        cronAction.putValue(Action.SELECTED_KEY, cronActive);
    } catch (RemoteException ex) {
        System.err.println("mManager: " + mManager);
    }

}