public interface ComponentFactory2 extends ComponentFactory
Note: This interface shall be merged with the ComponentFactory interface in the Forms 2.0.
DefaultComponentFactory,
PanelBuilder| Modifier and Type | Method and Description |
|---|---|
javax.swing.JButton |
createButton(javax.swing.Action action)
Creates and returns a button that is bound to the given Action.
|
javax.swing.JLabel |
createReadOnlyLabel(java.lang.String textWithMnemonic)
Creates and returns a label with an optional mnemonic
that is intended to label a read-only component.
|
createLabel, createSeparator, createTitlejavax.swing.JLabel createReadOnlyLabel(java.lang.String textWithMnemonic)
createReadOnlyLabel("Name"); // No mnemonic
createReadOnlyLabel("N&ame"); // Mnemonic is 'a'
createReadOnlyLabel("Save &as"); // Mnemonic is the second 'a'
createReadOnlyLabel("Look&&Feel"); // No mnemonic, text is Look&Feel
textWithMnemonic - the label's text -
may contain an ampersand (&) to mark a mnemonicjavax.swing.JButton createButton(javax.swing.Action action)
JGButton is bound to some custom Action properties.action - provides [bound] visual properties for the buttonCopyright © 2002-2011 JGoodies Karsten Lentzsch. All Rights Reserved.