Package javax.swing

Examples of javax.swing.JFrame.validate()


        JMenuBar menubar = new JMenuBar();
        menubar.add(storyMenu);

        frame.setJMenuBar(menubar);
        frame.invalidate();
        frame.validate();
    }

    public static Story getDefaultStory() {
        Document document = Story.importStoryDocument(new String[]{});
        return new Story(document);
View Full Code Here


      if((System.currentTimeMillis()-time)>20l){  //frame limiter
        panel = getBarChart(error,"MSE per Dimension for Origin: "+origin.getName());
        frame.getContentPane().removeAll();
        frame.getContentPane().add(panel, BorderLayout.CENTER);
        frame.setTitle("Origin MSE Plot (Overall MSE=" + mseAvg + ")");
        frame.validate();
       
        time=System.currentTimeMillis();
      }
      if (i==1){
        frame.pack();
View Full Code Here

  public static JFrame popup(Component component, String title) {
    JFrame frame = new JFrame(title);
    frame.add(component);
    frame.pack();
    frame.validate();
    frame.setVisible(true);
    frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
    return frame;
  }
View Full Code Here

    assert img != null;
    JFrame frame = new JFrame(title);
    ImageIcon icon = new ImageIcon(img);
    frame.add(new JLabel(icon));
    frame.pack();
    frame.validate();
    frame.setVisible(true);
    frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
    return frame;
  }
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.