List of usage examples for javax.swing Action SELECTED_KEY
String SELECTED_KEY
To view the source code for javax.swing Action SELECTED_KEY.
Click Source Link
Boolean
that corresponds to the selected state. 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); } }