AbstractAction



Hi,
From Java 1.5 or lower version, can an Action be used for JCheckBox &
JCheckBoxMenuItem pair or JToggleButton & JCheckBoxMenuItem pair?
Java 1.6 has Action.SELECTED_KEY but 1.5 doesnt have.
Also how to execute an Action from program? like JButton has a
doClick method. I want to execute an action from program even when the
actual button or menuitem is removed from gui, thus i dont have an
reference for the actual gui component.


Thanks in advance


abir

.


Quantcast