예제 #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);
   }
 }