Package org.nuiton.jaxx.widgets.extra
Class SwingWidgetFactory
java.lang.Object
org.nuiton.jaxx.widgets.extra.SwingWidgetFactory
public class SwingWidgetFactory
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description SwingWidgetFactory() -
Method Summary
Modifier and Type Method Description static javax.swing.AbstractButtoncreateButton(ApplicationAction action)Creates and returns aAbstractButtonstatic javax.swing.JMenucreateMenu(java.lang.String text, char mnemonic)static javax.swing.JMenuBarcreateMenuBar()Creates and returns aJMenuBarstatic javax.swing.AbstractButtoncreateMenuButton(ApplicationAction action)Creates and returns aAbstractButtonstatic javax.swing.JMenuItemcreateMenuItem(ApplicationAction action)static javax.swing.JPanelcreateNamedPanel(java.lang.String title)Creates and returns aJPanelstatic javax.swing.JPanelcreatePanel()Creates and returns aJPanelstatic javax.swing.JSplitPanecreateSplitPane()Creates and returns aJSplitPanestatic javax.swing.JToolBarcreateToolBar()Creates and returns aJToolBarstatic voidsetPanelTitle(javax.swing.JPanel panel, java.lang.String title)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SwingWidgetFactory
public SwingWidgetFactory()
-
-
Method Details
-
createMenuButton
Creates and returns aAbstractButton -
createButton
Creates and returns aAbstractButton -
createSplitPane
public static javax.swing.JSplitPane createSplitPane()Creates and returns aJSplitPane -
createPanel
public static javax.swing.JPanel createPanel()Creates and returns aJPanel -
createNamedPanel
public static javax.swing.JPanel createNamedPanel(java.lang.String title)Creates and returns aJPanel -
setPanelTitle
public static void setPanelTitle(javax.swing.JPanel panel, java.lang.String title) -
createToolBar
public static javax.swing.JToolBar createToolBar()Creates and returns aJToolBar -
createMenuBar
public static javax.swing.JMenuBar createMenuBar()Creates and returns aJMenuBar -
createMenu
public static javax.swing.JMenu createMenu(java.lang.String text, char mnemonic) -
createMenuItem
-