JavaAwtSwing右键菜单 javax.swing.JPopupMenu javax.swing.JMenuItem javax.swing.JMenu
javax.swing.JPopupMenu可以用于右键弹出菜单类声明publicclassJPopupMenuextendsJComponentimplementsAccessible,MenuElement{继承自javax.swing.JComponent实例化方法JPopupMenujPopupMenu=newJPopupMenu();JPopupMenujPopupMenu=newJPo