bookExamples.ch18Swing
Class PopupMenuDemo
java.lang.Object
bookExamples.ch18Swing.PopupMenuDemo
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.awt.event.ItemListener, java.util.EventListener
public class PopupMenuDemo
- extends java.lang.Object
- implements java.awt.event.ActionListener, java.awt.event.ItemListener
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PopupMenuDemo
public PopupMenuDemo()
createMenuBar
public javax.swing.JMenuBar createMenuBar()
createContentPane
public java.awt.Container createContentPane()
createPopupMenu
public void createPopupMenu()
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
itemStateChanged
public void itemStateChanged(java.awt.event.ItemEvent e)
- Specified by:
itemStateChanged
in interface java.awt.event.ItemListener
main
public static void main(java.lang.String[] args)
getPopupListener
public static PopupListener getPopupListener()
getPopupMenu
public static javax.swing.JPopupMenu getPopupMenu()