MenuContainer (Java SE 10 & JDK 10 )
-
- All Known Implementing Classes:
AbstractButton,AbstractColorChooserPanel,Applet,BasicArrowButton,BasicComboBoxRenderer,BasicComboBoxRenderer.UIResource,BasicComboPopup,BasicInternalFrameTitlePane,BasicInternalFrameTitlePane.SystemMenuBar,BasicSplitPaneDivider,BasicToolBarUI.DragWindow,Box,Box.Filler,Button,Canvas,CellRendererPane,Checkbox,Choice,Component,Container,DefaultListCellRenderer,DefaultListCellRenderer.UIResource,DefaultTableCellRenderer,DefaultTableCellRenderer.UIResource,DefaultTreeCellEditor.DefaultTextField,DefaultTreeCellEditor.EditorContainer,DefaultTreeCellRenderer,Dialog,FileDialog,Frame,JApplet,JButton,JCheckBox,JCheckBoxMenuItem,JColorChooser,JComboBox,JComponent,JDesktopPane,JDialog,JEditorPane,JFileChooser,JFormattedTextField,JFrame,JFXPanel,JInternalFrame,JInternalFrame.JDesktopIcon,JLabel,JLayer,JLayeredPane,JList,JMenu,JMenuBar,JMenuItem,JOptionPane,JPanel,JPasswordField,JPopupMenu,JPopupMenu.Separator,JProgressBar,JRadioButton,JRadioButtonMenuItem,JRootPane,JScrollBar,JScrollPane,JScrollPane.ScrollBar,JSeparator,JSlider,JSpinner,JSpinner.DateEditor,JSpinner.DefaultEditor,JSpinner.ListEditor,JSpinner.NumberEditor,JSplitPane,JTabbedPane,JTable,JTableHeader,JTextArea,JTextComponent,JTextField,JTextPane,JToggleButton,JToolBar,JToolBar.Separator,JToolTip,JTree,JViewport,JWindow,Label,List,Menu,MenuBar,MetalComboBoxButton,MetalComboBoxUI.MetalComboPopup,MetalFileChooserUI.FileRenderer,MetalFileChooserUI.FilterComboBoxRenderer,MetalInternalFrameTitlePane,MetalScrollButton,Panel,PopupMenu,Scrollbar,ScrollPane,TextArea,TextComponent,TextField,Window
public interface MenuContainerThe super class of all menu related containers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description FontgetFont()Returns the font in use by this container.
booleanpostEvent(Event evt)Deprecated.
As of JDK version 1.1 replaced by dispatchEvent(AWTEvent).
voidremove(MenuComponent comp)Removes the specified menu component from the menu.
-
-
-
Method Detail
-
getFont
Font getFont()
Returns the font in use by this container.
- Returns:
- the menu font
-
remove
void remove(MenuComponent comp)
Removes the specified menu component from the menu.
- Parameters:
comp- the menu component to remove
-
postEvent
@Deprecated boolean postEvent(Event evt)
Posts an event to the listeners.
- Parameters:
evt- the event to dispatch- Returns:
- the results of posting the event
-
-
Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2018, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.