org.eclipse.swt.widgets.Menu.createWidget()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(126)

本文整理了Java中org.eclipse.swt.widgets.Menu.createWidget()方法的一些代码示例,展示了Menu.createWidget()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Menu.createWidget()方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Menu
类名称:Menu
方法名:createWidget

暂无

代码示例

代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64

Menu (Display display, NSMenu nativeMenu) {
  this.display = display;
  this.style = SWT.DROP_DOWN;
  this.nsMenu = nativeMenu;
  reskinWidget();
  createWidget();
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

super (parent, checkStyle (style));
this.parent = parent;
createWidget (0);

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

super (parent, checkStyle (style));
this.parent = parent;
createWidget (0);

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

super (parent, checkStyle (style));
this.parent = parent;
createWidget (0);

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

Menu (Decorations parent, int style, int /*long*/ handle) {
  super (parent, checkStyle (style));
  this.parent = parent;
  this.handle = handle;
  /*
  * Bug in IBM JVM 1.3.1.  For some reason, when the checkOrientation() is
  * called from createWidget(), the JVM issues this error:
  *
  * JVM Exception 0x2 (subcode 0x0) occurred in thread "main" (TID:0x9F19D8)
  *
  * In addition, on Windows XP, a dialog appears with following error message,
  * indicating that the problem may be in the JIT:
  *
  * AppName: java.exe     AppVer: 0.0.0.0     ModName: jitc.dll
  * ModVer: 0.0.0.0     Offset: 000b6912
  *
  * The fix is to call checkOrientation() from here.
  */
  checkOrientation (parent);
  createWidget ();
}

代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64

Menu (Display display) {
  if (display == null) display = Display.getCurrent ();
  if (display == null) display = Display.getDefault ();
  if (!display.isValidThread ()) {
    error (SWT.ERROR_THREAD_INVALID_ACCESS);
  }
  this.display = display;
  this.style = SWT.BAR;
  reskinWidget();
  createWidget();
}

代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64

createWidget();

相关文章