Package javax.swing

Examples of javax.swing.JFrame


    myListener.localeChanged();
    pack();
  }
 
  public static void showPreferences() {
    JFrame frame = MENU_MANAGER.getJFrame(true);
    frame.setVisible(true);
  }
View Full Code Here


  /**
   * Initialize the contents of the frame.
   */
  private void initialize() {
    frmEverbox = new JFrame();
    frmEverbox.setIconImage(Toolkit.getDefaultToolkit().getImage(EverboxManager.class.getResource("/com/everbox4j/ui/EverBox4J.gif")));
    frmEverbox.setResizable(false);
    frmEverbox.setTitle("Everbox \u7BA1\u7406\u5668");
    frmEverbox.setBounds(100, 100, 450, 600);
    frmEverbox.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
View Full Code Here

    preview.setVisible(true);
  }

  private static JFrame initMainAppWindow()
  {
    JFrame mainAppWindow = new JFrame();
    JPanel panel = new JPanel();
    panel.add(new JLabel("foobar"));
    mainAppWindow.add(panel);
    mainAppWindow.pack();
    mainAppWindow.setVisible(true);
    try
    {
      Thread.sleep(1000);
    }
    catch (InterruptedException e)
View Full Code Here

  public void testAndShowCustomReport() throws ReportDataFactoryException
  {
    // Init JFreeReport
    ClassicEngineBoot.getInstance().start();
    // Init main window
    JFrame mainAppWindow = initMainAppWindow();

    // Init test data
    int rows = 7; // With 5 the things work fine...
    List tables = new ArrayList();
    tables.add(generateReportTable(0, rows, 8, true));
View Full Code Here

public class SkipSwing {

  private SkipSwing() {}

  public static void main( final String[] arg ) {
    JFrame jf = new JFrame( "Experimenting skip inverted indices..." );

    jf.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
    jf.setSize( 600, 400 );
    Container jfc = jf.getContentPane();
    jfc.setLayout( new BorderLayout() );

    DrawPanel dp = new DrawPanel();
    jfc.add( new InputPanel( dp ), BorderLayout.SOUTH );
    jfc.add( dp, BorderLayout.CENTER );

    jf.setVisible( true );
  }
View Full Code Here

    frameInfo.setSupportsAnchor(false);
  };

  public Frame(Widget parent, String name) throws GUIException {
    super(parent, name);
    frame = new JFrame();
    panel = new Panel(this, null);
    addChild(panel);
    JPanel jpanel = (JPanel) panel.getWidget();
    jpanel.setBorder(windowBorder);
    frame.getContentPane().add(jpanel);
View Full Code Here

    add(values[i]);

    total++;

    setPreferredSize(new Dimension(200,30*itemCount));
    JFrame frame = new JFrame(controller.getName());
    frame.setContentPane(new JScrollPane(this));
    frame.addWindowListener(new WindowAdapter() {
      public void windowClosing(WindowEvent e) {
        total--;
        if (total == 0) {
          System.exit(0);
        }
      }
    });
    frame.setSize(230,400);
    frame.setLocation(index*30,index*30);
    frame.setVisible(true);
  }
 
View Full Code Here

  /**
   * Default Constructor.
   */
  public ComponentDrawable()
  {
    this(new JFrame());
  }
View Full Code Here

    }
    else
    {
      if (frame == null)
      {
        frame = new JFrame();
      }
      cd = new ComponentDrawable(frame);
      cd.setPaintSynchronized(true);
    }
View Full Code Here

                                   LayerHandler layerHandler, String layerName) {
        launchFrame(new VPFConfig(libraryBean, layerHandler, layerName), false);
    }

    protected static void launchFrame(JComponent content, boolean exitOnClose) {
        JFrame frame = new JFrame("Create VPF Data Layer");

        frame.getContentPane().add(content);
        if (exitOnClose) {
            frame.addWindowListener(new WindowAdapter() {
                public void windowClosing(WindowEvent e) {
                    System.exit(0);
                }
            });
        }

        frame.pack();
        frame.setVisible(true);
    }
View Full Code Here

TOP

Related Classes of javax.swing.JFrame

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.