Here you can find the source of isActionSelected(Action action)
Parameter | Description |
---|---|
action | a parameter |
public static boolean isActionSelected(Action action)
//package com.java2s; //it under the terms of the GNU Affero General Public License as published by import javax.swing.Action; public class Main { /**//from w w w . j a v a 2 s. c o m * * @param action * @return */ public static boolean isActionSelected(Action action) { if (action == null) return false; Boolean result = (Boolean) action.getValue(Action.SELECTED_KEY); return result == null ? false : result; } }