示例#1
0
 public void showMenuBar() {
   if (!menuBar.isVisible()) {
     menuBar.setVisible(true);
     popupMenu.remove(showMenuBarItem);
   }
 }
示例#2
0
 public void removeMenuBar() {
   if (menuBar.isVisible()) {
     menuBar.setVisible(false);
     popupMenu.add(showMenuBarItem);
   }
 }