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

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

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

JWindow.<init>介绍

暂无

代码示例

代码示例来源:origin: stackoverflow.com

JWindow frame = new JWindow();
frame.setAlwaysOnTop(true);
frame.addMouseListener(new MouseAdapter() {

代码示例来源:origin: stackoverflow.com

tH = 0;
autoSuggestionPopUpWindow = new JWindow(mainWindow);
autoSuggestionPopUpWindow.setOpacity(opacity);

代码示例来源:origin: stackoverflow.com

private final JWindow window = new JWindow();
public LabelTransferHandler() {
 System.out.println("LabelTransferHandler");

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

public synchronized JWindow getCommentWindow()
{
 if(window_==null) window_=new JWindow();
 return window_;
}
public synchronized void setCommentWindow(JWindow _window)

代码示例来源:origin: stackoverflow.com

JWindow window = new JWindow(new JFrame("is Showing")
{
  public boolean isShowing()
  {
   return true;
  }
});

代码示例来源:origin: net.java.dev.laf-widget/laf-widget

@Override
public void installComponents() {
  this.previewWindow = new JWindow();
  this.previewWindow.getContentPane().setLayout(new BorderLayout());
}

代码示例来源:origin: com.jidesoft/jide-oss

private void createDelegate() {
  Window window = getWindow();
  if (window != null) {
    _delegate = new JWindow(window);
  }
}

代码示例来源:origin: cpesch/RouteConverter

public void initialize(AwtGraphicMapView mapView, MapViewCallback mapViewCallback) {
  this.mapView = mapView;
  this.mapViewCallback = mapViewCallback;
  window = new JWindow(getFrame());
  JPanel contentPane = (JPanel) window.getContentPane();
  contentPane.add(label);
  contentPane.setBackground(new Color(255, 255, 204));
  contentPane.setBorder(new CompoundBorder(createEtchedBorder(), new EmptyBorder(2, 3, 2, 3)));
  label.setFont(label.getFont().deriveFont(9f));
  mapView.addMouseListener(this);
  mapView.addMouseMotionListener(this);
}

代码示例来源:origin: stackoverflow.com

public class Spot {
  public static void main(final String... args) throws IOException {
    JWindow f = new JWindow();
    f.setContentPane(new JLabel(new ImageIcon(ImageIO.read(new URL(
        "http://i.stack.imgur.com/IPgpQ.png")))));
    f.pack();
    f.setVisible(true);
  }
}

代码示例来源: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: beanshell/beanshell

public static void main(String[] args) {
    new JWindow(new JDemoApplet(args[0]));
  }
}

代码示例来源:origin: protegeproject/protege

private void createPopupWindow() {
    JScrollPane sp = ComponentFactory.createScrollPane(popupList);
    popupWindow = new JWindow((Window) SwingUtilities.getAncestorOfClass(Window.class, textComponent));
//        popupWindow.setAlwaysOnTop(true); // this doesn't appear to work with certain Windows/java combinations
    popupWindow.getContentPane().setLayout(new BorderLayout());
    popupWindow.getContentPane().add(sp, BorderLayout.CENTER);
    popupWindow.setFocusableWindowState(false);
  }

代码示例来源:origin: edu.stanford.protege/org.protege.editor.owl

private void createPopupWindow() {
    JScrollPane sp = ComponentFactory.createScrollPane(popupList);
    popupWindow = new JWindow((Window) SwingUtilities.getAncestorOfClass(Window.class, textComponent));
//        popupWindow.setAlwaysOnTop(true); // this doesn't appear to work with certain Windows/java combinations
    popupWindow.getContentPane().setLayout(new BorderLayout());
    popupWindow.getContentPane().add(sp, BorderLayout.CENTER);
    popupWindow.setFocusableWindowState(false);
  }

代码示例来源:origin: edu.stanford.protege/protege-editor-owl

private void createPopupWindow() {
    JScrollPane sp = ComponentFactory.createScrollPane(popupList);
    popupWindow = new JWindow((Window) SwingUtilities.getAncestorOfClass(Window.class, textComponent));
//        popupWindow.setAlwaysOnTop(true); // this doesn't appear to work with certain Windows/java combinations
    popupWindow.getContentPane().setLayout(new BorderLayout());
    popupWindow.getContentPane().add(sp, BorderLayout.CENTER);
    popupWindow.setFocusableWindowState(false);
  }

代码示例来源:origin: org.protege/protege-editor-owl

private void createPopupWindow() {
    JScrollPane sp = ComponentFactory.createScrollPane(popupList);
    popupWindow = new JWindow((Window) SwingUtilities.getAncestorOfClass(Window.class, textComponent));
//        popupWindow.setAlwaysOnTop(true); // this doesn't appear to work with certain Windows/java combinations
    popupWindow.getContentPane().setLayout(new BorderLayout());
    popupWindow.getContentPane().add(sp, BorderLayout.CENTER);
    popupWindow.setFocusableWindowState(false);
  }

代码示例来源:origin: stackoverflow.com

public static void main(String args[]) {
  JWindow w = new JWindow();
  w.add(new JLabel("Testing a Window!!!!!"));
  w.setLocation(300, 300);
  w.pack();
  w.setVisible(true);
}

代码示例来源:origin: stackoverflow.com

JWindow window = new JWindow();
 window.add(new JButton("test"));
 window.setSize(500, 500);
 window.setLocationRelativeTo(null);
 window.setVisible(true);

代码示例来源:origin: stackoverflow.com

ImageIcon icon = new ImageIcon("images/ajax-loader.gif");
 JLabel label=new JLabel(icon);
 JWindow myJFrame=new JWindow();
 myJFrame.setLayout(new BorderLayout());
 myJFrame.add(label,BorderLayout.CENTER);
 myJFrame.setLocationRelativeTo(null);
 myJFrame.setOpacity(0.5f);
 myJFrame.setAlwaysOnTop(true);
 label.setOpaque(false);
 AWTUtilities.setWindowOpaque(myJFrame, false);
 myJFrame.pack();
 myJFrame.setVisible(true);

代码示例来源: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: stackoverflow.com

JWindow subFrame = new JWindow();           
subFrame.setBounds(0, 0, 500, 500);
subFrame.setAlwaysOnTop(true);
subFrame.setOpacity(0.50f);
subFrame.setBackground(new Color(1.0f, 1.0f, 1.0f, 0.05f));

JButton button = new JButton("Hello");
button.setBounds(20, 180, 100, 40);

subFrame.getContentPane().setLayout(null);
subFrame.getContentPane().add(button);
subFrame.setVisible(true);

相关文章