JMenu
- class javax.swing..JMenu public class JMenu extends JMenuItem implements Accessible , MenuElement Tree:java.lang.Object - java.awt.Component - java.awt.Container - javax.swing.JComponent - javax.swing.AbstractButton - javax.swing.JMenuItem - javax.swing.JMenu An implementation of a menu -- a popup window containing JMenuItems that is displayed when the user selects an item on the JMenuBar. In addition to JMenuItems, a JMenu can also contain JSeparators. JMenu(String) - Constructor for class javax.swing.JMenu public JMenu (String s) Creates a new JMenu with the supplied string as its textParameters: s - The text for the menu label JMenu(String, boolean) - Constructor for class javax.swing.JMenu public JMenu (String s, boolean b) Creates a new JMenu with the supplied string as its text and specified as a tear-off menu or not.Parameters: s - The text for the menu label - can the menu be torn off (not yet implemented)b - can the menu be torn off (not yet implemented) | ||||
Search Dictionary:
