bookExamples.ch18Swing
Class PopupMenuDemo

java.lang.Object
  extended by 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


Constructor Summary
PopupMenuDemo()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 java.awt.Container createContentPane()
           
 javax.swing.JMenuBar createMenuBar()
           
 void createPopupMenu()
           
static PopupListener getPopupListener()
           
static javax.swing.JPopupMenu getPopupMenu()
           
 void itemStateChanged(java.awt.event.ItemEvent e)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PopupMenuDemo

public PopupMenuDemo()
Method Detail

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()