Package javax.swing

Examples of javax.swing.JFrame.show()


                } );
               
                //  show the frame with the tree
                jframe.setSize( 200, 200 );
                jframe.pack();
                jframe.show();
                jframe.setVisible( true );
               
            }
            catch( Exception exception ) {
                System.err.println( exception );
View Full Code Here


       
        try {

            Class log = RMIClassLoader.loadClass(codebase, clientClass);
            JFrame login = (JFrame) log.newInstance();
            login.show();

        } catch (MalformedURLException ex) {
            System.out.println(codebase + " non è un URL valido.");
        } catch (ClassNotFoundException ex) {
            System.out.println("Classe non trovata: " + ex.getMessage());
View Full Code Here

            }
        });
        JScrollPane scrollPane = new JScrollPane(tree);
        jf.getContentPane().add(scrollPane);
        jf.pack();
        jf.show();
    }

    static void usage() {
        System.err.println("little toy program to display a compiled template as a tree.");
        System.err.println("Usage: java freemarker.test.TreeView <templatefile>");
View Full Code Here

    add(gp, "Center");
    add(gp.getStats(), BorderLayout.EAST);
    add(gp.getLegend(), BorderLayout.NORTH);
    f.setSize(500, 300);
    f.getContentPane().add(this);
    f.show();
  }

/**
* Graph panel generates all the panels for this reporter. Data is organized
* based on thread name in a hashtable. The data itself is a Vector of Integer
View Full Code Here

        d = getToolkit().getScreenSize();
        progress.getContentPane().add(progressBar);
        progress.setTitle("Now loading data ...");
        progress.setLocation((d.width - progress.getWidth()) / 2,
                (d.height - progress.getHeight()) / 2);
        progress.show();

        // Add notebook page for default host connection
        pages = new Vector();
        addPage(new SOAPMonitorPage(axisHost));
        serviceMap = new HashMap();
View Full Code Here

        frame.getContentPane().add(topPanel, BorderLayout.NORTH);

        frame.setTitle("Lucene powered table searching");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.show();
    }

    public static void main(String[] args) {
        new ListSearcherSimulator();
    }
View Full Code Here

    @SuppressWarnings("deprecation")
    private void createVisibleComboBox() {
        JFrame frame = new JFrame();
        frame.getContentPane().add(comboBox);
        frame.pack();
        frame.show();
    }

    private class PopupMenuController implements PopupMenuListener {
        public static final int MENU_CANCELED = 1;
View Full Code Here

        JFrame frame = new JFrame();
        JMenuItem item = new JMenuItem();
        item.setUI(menuItemUI);
        frame.getContentPane().add(item);
        frame.pack();
        frame.show();
        menuItemUI.paint(item.getGraphics(), item);
    }

    /*
     * Test method for 'javax.swing.plaf.basic.BasicMenuItemUI.getPreferredSize(JComponent)'
View Full Code Here

        menuBar.add(menu);
        menuBar.add(menu2);
        menu.add(item);
        frame.getContentPane().add(menuBar);
        frame.pack();
        frame.show();
        assertEquals(0, menuItemUI.getPath().length);
        MenuSelectionManager manager = MenuSelectionManager.defaultManager();
        manager.setSelectedPath(new MenuElement[] { menuBar, menu, menu.getPopupMenu(), item });
        assertEquals(4, menuItemUI.getPath().length);
        assertSame(menuBar, menuItemUI.getPath()[0]);
View Full Code Here

        frame.setJMenuBar(menuBar);
        menuBar.add(menu);
        final JButton button = new JButton();
        frame.getContentPane().add(button);
        frame.pack();
        frame.show();
        SwingWaitTestCase.requestFocusInWindowForComponent(button);
        manager.setSelectedPath(new MenuElement[] { menuBar });
        menu.setDelay(100);
        setupTimerAntWait(menu, menuUI, listener);
        assertFalse(listener.visible);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.