Package javax.swing

Examples of javax.swing.JFrame.validate()


      WidgetAdapter target = adaptable.getDropWidget().get(0);
      JMenuBar jmb = (JMenuBar) target.getWidget();
      JFrame jframe = (JFrame) adaptable.getWidget();
      jframe.setJMenuBar(jmb);
      target.requestNewName();
      jframe.validate();
      adaptable.doLayout();
      adaptable.validateContent();
      adaptable.clearAllSelected();
      target.setSelected(true);
      adaptable.setDirty(true);
View Full Code Here


    loadProperties(props);
    Restaurant rest = new Restaurant(props);
    JFrame frame = rest.getSimulationGui().getFrame();
    rest.setVisible(true);
    frame.setSize(600, 190);
    frame.validate();
  }

  public void initialize() {
    double advanceInterval = (new Double((getProperty("Transport.advanceInterval"))))
      .doubleValue();
View Full Code Here

            frame.applyComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);

        }
        frame.getRootPane().revalidate();
        frame.invalidate();
        frame.validate();
        frame.repaint();

    }

    protected JMenu createLookAndFeelMenu() {
View Full Code Here

    panelWait.add(label);
    jDialog.setContentPane(panelWait);
    jDialog.setPreferredSize(new Dimension(200, 100));
    jDialog.setLocation(GUIUtils.getCenterPositionForComponent(200, 100));
    jDialog.pack();
    jDialog.validate();
    jDialog.repaint();
    return jDialog;
  }
 
}
View Full Code Here

    newFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
    newFrame.setVisible(true);
    newFrame.setSize(200, 300);
    newFrame.setTitle(resource.getString("existentStatesDialogTip"));
    newFrame.setLocationRelativeTo(null);
    newFrame.validate();
 
   
    return newFrame;
  }
 
View Full Code Here

        }
  
        JFrame instance = new DVModelerFrame();

        instance.setSize(800, 600);
        instance.validate();
        instance.setLocationRelativeTo(null);
        instance.setVisible(true);
    }
   
    static PlasticTheme themeWithName(String themeName) {
View Full Code Here

        FittestCandidateView<BigDecimal> view = new FittestCandidateView<BigDecimal>(renderer);
        JFrame frame = new JFrame();
        frame.add(view, BorderLayout.CENTER);
        FrameFixture frameFixture = new FrameFixture(robot, frame);
        frame.setSize(300, 300);
        frame.validate();
        frame.setVisible(true);

        view.populationUpdate(new PopulationData<BigDecimal>(BigDecimal.TEN, 10, 5, 2, true, 5, 0, 1, 100));
        robot.waitForIdle();
View Full Code Here

        FittestCandidateView<BigDecimal> view = new FittestCandidateView<BigDecimal>(renderer);
        JFrame frame = new JFrame();
        frame.add(view, BorderLayout.CENTER);
        FrameFixture frameFixture = new FrameFixture(robot, frame);
        frame.setSize(300, 300);
        frame.validate();
        frame.setVisible(true);

        PopulationData<BigDecimal> data1 = new PopulationData<BigDecimal>(BigDecimal.TEN, 10, 5, 2, true, 5, 0, 1, 100);
        // Render the first time.
        view.populationUpdate(data1);
View Full Code Here

        StatusBar statusBar = new StatusBar();
        JFrame frame = new JFrame();
        frame.add(statusBar, BorderLayout.CENTER);
        FrameFixture frameFixture = new FrameFixture(robot, frame);
        frame.setSize(400, 30);
        frame.validate();
        frameFixture.show();

        assert frameFixture.label("Population").text().equals("N/A") : "Wrong initial text for population label.";
        assert frameFixture.label("Elitism").text().equals("N/A") : "Wrong initial text for elitism label.";
        assert frameFixture.label("Generations").text().equals("N/A") : "Wrong initial text for generations label.";
View Full Code Here

        StatusBar statusBar = new StatusBar(true);
        JFrame frame = new JFrame();
        frame.add(statusBar, BorderLayout.CENTER);
        FrameFixture frameFixture = new FrameFixture(robot, frame);
        frame.setSize(400, 30);
        frame.validate();
        frameFixture.show();

        assert frameFixture.label("Population").text().equals("N/A") : "Wrong initial text for population label.";
        assert frameFixture.label("Elitism").text().equals("N/A") : "Wrong initial text for elitism label.";
        assert frameFixture.label("Generations").text().equals("N/A") : "Wrong initial text for generations label.";
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.