public final class JComponentFactory extends Object
| Constructor and Description |
|---|
JComponentFactory() |
| Modifier and Type | Method and Description |
|---|---|
static javax.help.HelpSet |
newHelpSet(String directoryPath,
String filename)
Factory method for create new
HelpSet object. |
static JInternalFrame |
newInternalFrame(String title,
boolean resizable,
boolean closable,
boolean maximizable,
boolean iconifiable)
Factory method for create a
JInternalFrame object. |
static JPopupMenu |
newJPopupMenu()
Factory method for create a
JPopupMenu. |
static JPopupMenu |
newJPopupMenu(Component component,
JMenuItem... items)
Factory method for create a
JPopupMenu that will be add a
MouseListener to the given Component and an array of
JMenuItem that will be added to the popup. |
static JPopupMenu |
newJPopupMenu(String label)
Factory method for create a
JPopupMenu with the specified title. |
static JPopupMenu |
newJPopupMenu(String label,
Component component,
JMenuItem... items)
Factory method for create a
JPopupMenu that will be add a
MouseListener to the given Component and an array of
JMenuItem that will be added to the popup. |
static JToolBar |
newJToolBar()
Factory method for create a
JToolBar object. |
static PopupMenu |
newPopupMenu(List<MenuItemBean> menuItemBeans)
Factory method for create a
PopupMenu object. |
static SplashScreen |
newSplashScreen(String image,
String text)
Factory method for create a
SplashScreen. |
static TrayIcon |
newTrayIcon(String imgFilename,
String appName,
PopupMenu systemTrayPopupMenu,
Map<String,ActionListener> actionListeners)
Factory method for create a
TrayIcon object. |
public static javax.help.HelpSet newHelpSet(String directoryPath, String filename) throws javax.help.HelpSetException
HelpSet object.directoryPath - the directory pathfilename - the filenameHelpSet objectjavax.help.HelpSetException - is thrown if there are problems parsing the HelpSet object.public static JInternalFrame newInternalFrame(String title, boolean resizable, boolean closable, boolean maximizable, boolean iconifiable)
JInternalFrame object.title - the titleresizable - the resizableclosable - the closablemaximizable - the maximizableiconifiable - the iconifiableJInternalFrame.public static JPopupMenu newJPopupMenu()
JPopupMenu.JPopupMenu.public static JPopupMenu newJPopupMenu(Component component, JMenuItem... items)
JPopupMenu that will be add a
MouseListener to the given Component and an array of
JMenuItem that will be added to the popup.component - the componentitems - the JMenuItemsJPopupMenu.public static JPopupMenu newJPopupMenu(String label)
JPopupMenu with the specified title.label - the string that a UI may use to display as a title for the popup menu.JPopupMenu.public static JPopupMenu newJPopupMenu(String label, Component component, JMenuItem... items)
JPopupMenu that will be add a
MouseListener to the given Component and an array of
JMenuItem that will be added to the popup.label - the labelcomponent - the componentitems - the JMenuItemsJPopupMenu.public static JToolBar newJToolBar()
JToolBar object.public static PopupMenu newPopupMenu(List<MenuItemBean> menuItemBeans)
PopupMenu object.menuItemBeans - the menu item beansPopupMenu.public static SplashScreen newSplashScreen(String image, String text)
SplashScreen.image - the imagetext - the textSplashScreen.public static TrayIcon newTrayIcon(String imgFilename, String appName, PopupMenu systemTrayPopupMenu, Map<String,ActionListener> actionListeners)
TrayIcon object.imgFilename - the img filenameappName - the app namesystemTrayPopupMenu - the system tray popup menuactionListeners - the action listenersTrayIcon.Copyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.