Package javax.swing

Examples of javax.swing.JWindow


                                    BufferedImage.TYPE_INT_BGR);

        Thread t = new RenderThread();
        t.start();

        JWindow w = new JWindow();
        w.setBackground(Color.black);
        w.getContentPane().setBackground(Color.black);
        w.getContentPane().add(this);
        w.pack();
        w.setLocation(new Point(-1, -1));
        w.setVisible(true);
    }
View Full Code Here


      // int index = Integer.parseInt(toolTipText);

      Frame parentFrame = frameForComponent(insideComponent);

      tipWindow = new JWindow(parentFrame);
      tipWindow.setFocusableWindowState(false);
      tipWindow.setLayout(new BorderLayout());
      tipWindow.add(newToolTipComponent);
      tipWindow.setLocation(location);
      tipWindow.setBackground(bg);
View Full Code Here

        public FullScreenAction() {}

        public void actionPerformed(ActionEvent e) {
            if (window == null || !window.isVisible()) {
                if (window == null) {
                    window = new JWindow(JSVGViewerFrame.this);
                    Dimension size = Toolkit.getDefaultToolkit().getScreenSize();
                    window.setSize(size);
                }
                // Go to full screen in JWindow)
                svgCanvas.getParent().remove(svgCanvas);
View Full Code Here

    m_showFileMenu = showFileMenu;

    // end modifications by Zerbetto
    // Grab a fontmetrics object
    JWindow temp = new JWindow();
    temp.setVisible(true);
    temp.getGraphics().setFont(new Font(null, Font.PLAIN, 9));
    m_fontM = temp.getGraphics().getFontMetrics();
    temp.setVisible(false);

    // some GUI defaults
    try {
      m_ScrollBarIncrementLayout = Integer.parseInt(
          BEAN_PROPERTIES.getProperty(
View Full Code Here

    if (m_previewWindow == null) {
     
      JLabel jl = new JLabel(m_subFlowPreview);
      //Dimension d = jl.getPreferredSize();
      jl.setLocation(0,0);
      m_previewWindow = new JWindow();
      //popup.getContentPane().setLayout(null);
      m_previewWindow.getContentPane().add(jl);
      m_previewWindow.validate();
      m_previewWindow.setSize(m_subFlowPreview.getIconWidth(), m_subFlowPreview.getIconHeight());
     
View Full Code Here

    if (( clientFrame != null ) && ( sUndecoratedWin != null ) && sUndecoratedWin.equals( "true" ))
      callDecorationMethod( clientFrame, true );

    appWindow = null;
    if ( bUseWindow ) {
      appWindow = new JWindow( clientFrame );
      appWindow.setSize( clientWidth, clientHeight );
      appWindow.addWindowListener( context );
      clientFrame.addWindowListener( context );
    }
    else {
View Full Code Here

    if ( clientFrame != null )
      clientFrame.setSize( clientWidth, clientHeight );

    appWindow = null;
    if ( bUseWindow ) {
      appWindow = new JWindow( clientFrame );
      appWindow.setSize( clientWidth, clientHeight );
      appWindow.addWindowListener( context );
      clientFrame.addWindowListener( context );
    }
    else {
View Full Code Here

        if (NonInteractiveMode.on()) {
            window = null;
        } else {
            UiProvider ui = createSplashScreenUi();
            if (ui != null) {
                window = new JWindow();
                ContainerCanvas.decorate(ui, window.getContentPane(), BorderLayout.CENTER);
                window.pack();
                window.setLocationRelativeTo(null);
            } else {
                window = null;
View Full Code Here

    public boolean contains(Point pt, int dw, int dh) {
        return window != null && WindowUtils.contains(window, pt, dw, dh);
    }

    private JWindow createWindow() {
        JWindow w = new JWindow(SwingUtilities.getWindowAncestor(owner));
        w.setLocationByPlatform(locationOnScreen == null);
        createContentPane(w);
        sizeHandler.setPreferredSize(w);
        installWindowListener(w);
        installResizer(w);
        w.setFocusableWindowState(focusable);
        w.pack();
        sizeHandler.enforceLimits(w);
        return w;
    }
View Full Code Here

        WindowUtils.ensureWindowCompletelyVisibleOnScreen(listPopup);
    }

    private JWindow createListPopup(JTextComponent trigger) {
        Window parentWindow = SwingUtilities.getWindowAncestor(trigger);
        final JWindow popup = new JWindow(parentWindow);
        tokenList.decorate(new UiCanvas() {

            @Override
            public void display(Component c) {
                popup.add(c);
            }
        });
        popup.addWindowListener(new WindowAdapter() {

            @Override
            public void windowOpened(WindowEvent e) {
                setInitialDisplayState();
            }
        });
        popup.setFocusableWindowState(false);
        popup.pack();
        return popup;
    }
View Full Code Here

TOP

Related Classes of javax.swing.JWindow

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.