public void resetMenuBar() { mainMenu = new MainMenu(this); if(mainMenu.getComponentCount()>0) { setJMenuBar(mainMenu); mainMenu.commit(); } else { setJMenuBar(null); if(isVisible()) setVisible(true); // work around for paint problem. see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4949810 } }
public void resetMenuBar() { mainMenu = new MainMenu(this); if(mainMenu.getComponentCount()>0) { setJMenuBar(mainMenu); mainMenu.commit(); } else { setJMenuBar(null); if(isVisible()) setVisible(true); // work around for paint problem. see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4949810 } }
public void resetMenuBar() { mainMenu = new MainMenu(this); if(mainMenu.getComponentCount()>0) { setJMenuBar(mainMenu); mainMenu.commit(); } else { setJMenuBar(null); if(isVisible()) setVisible(true); // work around for paint problem. see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4949810 } }
public void resetMenuBar() { mainMenu = new MainMenu(this); if(mainMenu.getComponentCount()>0) { setJMenuBar(mainMenu); mainMenu.commit(); } else { setJMenuBar(null); if(isVisible()) setVisible(true); // work around for paint problem. see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4949810 } }
/** * Reflects the changes made in the menu objects to GUI. */ public void commit() { invalidate(); repaint(); if(getComponentCount()>0) { owner.setJMenuBar(this); // work around for paint problem. see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4949810 if(owner.isVisible()) owner.setVisible(true); } } }
/** * Reflects the changes made in the menu objects to GUI. */ public void commit() { invalidate(); repaint(); if(getComponentCount()>0) { owner.setJMenuBar(this); // work around for paint problem. see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4949810 if(owner.isVisible()) owner.setVisible(true); } } }
/** * Reflects the changes made in the menu objects to GUI. */ public void commit() { invalidate(); repaint(); if(getComponentCount()>0) { owner.setJMenuBar(this); // work around for paint problem. see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4949810 if(owner.isVisible()) owner.setVisible(true); } } }
/** * Reflects the changes made in the menu objects to GUI. */ public void commit() { invalidate(); repaint(); if(getComponentCount()>0) { owner.setJMenuBar(this); // work around for paint problem. see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4949810 if(owner.isVisible()) owner.setVisible(true); } } }