本文整理了Java中javax.swing.JDialog.getJMenuBar()
方法的一些代码示例,展示了JDialog.getJMenuBar()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JDialog.getJMenuBar()
方法的具体详情如下:
包路径:javax.swing.JDialog
类名称:JDialog
方法名:getJMenuBar
暂无
代码示例来源:origin: freeplane/freeplane
@Override
public FreeplaneMenuBar getFreeplaneMenuBar() {
return (FreeplaneMenuBar) dialog.getJMenuBar();
}
代码示例来源:origin: UISpec4J/UISpec4J
public JMenuBar getJMenuBar() {
return dialog.getJMenuBar();
}
代码示例来源:origin: net.sf.tinylaf/tinylaf
private boolean windowHasMenuBar() {
Window w = getWindow();
if(w instanceof JFrame) {
return ((JFrame)w).getJMenuBar() != null;
}
else if(w instanceof JDialog) {
return ((JDialog)w).getJMenuBar() != null;
}
return false;
}
代码示例来源:origin: senbox-org/snap-desktop
if (getJDialog().getJMenuBar() == null && allowGraphBuilding) {
final GraphsMenu operatorMenu = new GraphsMenu(getJDialog(), this);
代码示例来源:origin: com.jtattoo/JTattoo
JDialog dialog = (JDialog) c;
th = dialog.getSize().height - dialog.getContentPane().getSize().height - fh - 1;
if (dialog.getJMenuBar() != null) {
th -= dialog.getJMenuBar().getSize().height;
JDialog dialog = (JDialog) c.getParent();
th = dialog.getSize().height - dialog.getContentPane().getSize().height - fh - 1;
if (dialog.getJMenuBar() != null) {
th -= dialog.getJMenuBar().getSize().height;
代码示例来源:origin: senbox-org/snap-desktop
public BatchGraphDialog(final AppContext theAppContext, final String title, final String helpID,
final boolean closeOnDone) {
super(theAppContext.getApplicationWindow(), title, ID_YES | ID_APPLY_CLOSE_HELP, helpID);
this.appContext = theAppContext;
this.baseTitle = title;
this.closeOnDone = closeOnDone;
openProcessedProducts = true;
setContent(createUI());
if (getJDialog().getJMenuBar() == null) {
final GraphsMenu operatorMenu = new GraphsMenu(getJDialog(), this);
getJDialog().setJMenuBar(operatorMenu.createDefaultMenu());
}
super.getJDialog().setMinimumSize(new Dimension(400, 300));
}
代码示例来源:origin: senbox-org/s2tbx
@Override
public int show() {
this.ioParametersPanel.initSourceProductSelectors();
if (this.form == null) {
initForm();
if (getJDialog().getJMenuBar() == null) {
OperatorMenu operatorMenu = createDefaultMenuBar();
getJDialog().setJMenuBar(operatorMenu.createDefaultMenu());
}
}
setContent(this.form);
return super.show();
}
代码示例来源:origin: senbox-org/snap-desktop
@Override
public int show() {
ioParametersPanel.initSourceProductSelectors();
if (form == null) {
initForm();
if (getJDialog().getJMenuBar() == null) {
final OperatorMenu operatorMenu = createDefaultMenuBar();
getJDialog().setJMenuBar(operatorMenu.createDefaultMenu());
}
}
setContent(form);
return super.show();
}
代码示例来源:origin: bcdev/beam
@Override
public int show() {
ioParametersPanel.initSourceProductSelectors();
if (form == null) {
initForm();
if (getJDialog().getJMenuBar() == null) {
final OperatorMenu operatorMenu = createDefaultMenuBar();
getJDialog().setJMenuBar(operatorMenu.createDefaultMenu());
}
}
setContent(form);
return super.show();
}
代码示例来源:origin: senbox-org/snap-desktop
@Override
public int show() {
if (form == null) {
initForm();
if (getJDialog().getJMenuBar() == null) {
final OperatorMenu operatorMenu = createDefaultMenuBar();
getJDialog().setJMenuBar(operatorMenu.createDefaultMenu());
}
}
ioParametersPanel.initSourceProductSelectors();
setContent(form);
return super.show();
}
代码示例来源:origin: senbox-org/snap-desktop
@Override
public int show() {
ioParametersPanel.initSourceProductSelectors();
if (form == null) {
initForm();
if (getJDialog().getJMenuBar() == null) {
final OperatorMenu operatorMenu = createDefaultMenuBar();
getJDialog().setJMenuBar(operatorMenu.createDefaultMenu());
}
}
setContent(form);
return super.show();
}
内容来源于网络,如有侵权,请联系作者删除!