JavaSwingComponentsActions: Properties taken from Actions


Properties taken from Actions

Overview

Component

name as text

smallIcon as icon

shortDescription as toolTipText

enabled

mnemonic

actionCommand

accelerator

(only menus)

AbstractButton

X

X

X

X

X

X

JCheckBox

JRadioButton

X

X

X

I

X (1.6)

X

JButton

X

X

X

X

X

X

JMenuItem

JCheckBoxMenuItem

JRadioButtonMenuItem

X

X

I

X (1.6)

X

X

I

X (1.6)

I

X (1.6)

JMenu

X

X

I

X (1.6)

X

X

X

(not supported by JMenu)

JComboBox

X

X

X (1.6)

JTextField

X

X

X (1.6)

no getActionCommand

X = full support

I = only set initially, not observed

Pre 1.6, all mnemonic changes to null throw NullPointerException.

hideActionText

Now a property in 1.6. This needs more investigation.


(C) 2001-2009 Christian Kaufhold (swing@chka.de)