Example usage for javax.swing JDialog setJMenuBar

List of usage examples for javax.swing JDialog setJMenuBar

Introduction

In this page you can find the example usage for javax.swing JDialog setJMenuBar.

Prototype

@BeanProperty(bound = false, hidden = true, description = "The menubar for accessing pulldown menus from this dialog.")
public void setJMenuBar(final JMenuBar menu) 

Source Link

Document

Sets the menubar for this dialog.

Usage

From source file:org.pgptool.gui.ui.keyslist.KeysListView.java

@Override
protected JDialog initDialog(Window owner, Object constraints) {
    JDialog ret = new JDialog(owner, ModalityType.APPLICATION_MODAL);
    ret.setMinimumSize(new Dimension(spacing(50), spacing(25)));
    ret.setLayout(new BorderLayout());
    ret.setResizable(true);//from w  w  w.j  a v a 2  s .  com
    ret.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
    ret.setTitle(Messages.get("term.keysList"));
    ret.add(panelRoot, BorderLayout.CENTER);
    ret.setJMenuBar(menuBar);
    initWindowGeometryPersister(ret, "keysList");
    return ret;
}