Example usage for javax.swing JMenuBar validate

List of usage examples for javax.swing JMenuBar validate

Introduction

In this page you can find the example usage for javax.swing JMenuBar validate.

Prototype

public void validate() 

Source Link

Document

Validates this container and all of its subcomponents.

Usage

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();
    }
}