List of usage examples for javax.swing JMenuBar validate
public void validate()
From source file:org.notebook.gui.widget.LookAndFeelSelector.java
@EventAction(order = 1) public void GuiInited(BroadCastEvent event) { Object o = event.getSource(); if (o instanceof JFrame) { frame = (JFrame) o;/*from w ww. java 2 s . c o m*/ JMenuBar mb = frame.getJMenuBar(); mb.add(createMenu(), 2); mb.validate(); } }