javax.swing.JWindow.getOwner()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(147)

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

JWindow.getOwner介绍

暂无

代码示例

代码示例来源:origin: org.jvnet.hudson/netx

/**
 * Creates a JNLP SecurityManager.
 */
JNLPSecurityManager() {
  // this has the side-effect of creating the Swing shared Frame
  // owner.  Since no application is running at this time, it is
  // not added to any window list when checkTopLevelWindow is
  // called for it (and not disposed).
  if (!JNLPRuntime.isHeadless())
    new JWindow().getOwner();
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-mercurial

/**
 * Closes the window
 */
void shutdown() {
  Toolkit.getDefaultToolkit().removeAWTEventListener(this);
  if (contentWindow != null) {
    contentWindow.getOwner().removeWindowFocusListener(this);
    contentWindow.removeWindowFocusListener(this);
    contentWindow.dispose();
  }
  contentWindow = null;
}

代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-bu

public void run() {
  try {
   HELPER.addNotify();
  } catch (AbstractMethodError ex) {} // 1.6?
  if (DEBUG) FuLog.trace("BLB: JRE is " + FuLib.jdk() + " " + FuLib.getSystemProperty("java.vm.vendor"));
  if (swing() >= 1.2) {
   Window w = new JWindow().getOwner();
   if (w instanceof Frame) ((Frame) w).setTitle("Swing Shared Owner Frame");
  }
 }
});

代码示例来源:origin: com.eas.platypus/platypus-js-calendar-widget

if ((_calendarWindow == null) || (ancestor != _calendarWindow.getOwner())) {
  if (ancestor instanceof JDialog) {
    createCalendarWindow(ancestor);

相关文章