Package javax.swing

Examples of javax.swing.JFrame.validate()


        StrategyPanel strategyPanel = new StrategyPanel(CITIES);
        JFrame frame = new JFrame();
        frame.add(strategyPanel, BorderLayout.CENTER);
        FrameFixture frameFixture = new FrameFixture(robot, frame);
        frame.setSize(500, 300);
        frame.validate();
        frame.setVisible(true);
        robot.waitForIdle();

        // Components should be enabled initially.
        frameFixture.radioButton("EvolutionOption").requireEnabled();
View Full Code Here


        ProbabilitiesPanel panel = new ProbabilitiesPanel();
        JFrame frame = new JFrame();
        frame.add(panel, BorderLayout.CENTER);
        FrameFixture frameFixture = new FrameFixture(robot, frame);
        frame.setSize(700, 300);
        frame.validate();

        frameFixture.show();
        frameFixture.panel("AddPolygon").slider().slideToMinimum();
        frameFixture.panel("RemovePolygon").slider().slideToMinimum();
        frameFixture.panel("MovePolygon").slider().slideToMinimum();
View Full Code Here

          try {
            frame.pack();
            int xo = 200 - line.getWidth();
            int yo = 200 - line.getHeight();
            frame.setSize(frame.getWidth() + xo, frame.getHeight() + yo);
            frame.validate();

            // These are sanity checks to make sure our setup is correct, not actual functionality tests.
            assertEquals(200, line.getWidth());
            assertEquals(200, line.getHeight());
View Full Code Here

          try {
            frame.pack();
            int xo = 200 - line.getWidth();
            int yo = 200 - line.getHeight();
            frame.setSize(frame.getWidth() + xo, frame.getHeight() + yo);
            frame.validate();

            // These are sanity checks to make sure our setup is correct, not actual functionality tests.
            assertEquals(200, line.getWidth());
            assertEquals(200, line.getHeight());
View Full Code Here

          try {
            frame.pack();
            int xo = 200 - line.getWidth();
            int yo = 200 - line.getHeight();
            frame.setSize(frame.getWidth() + xo, frame.getHeight() + yo);
            frame.validate();

            // These are sanity checks to make sure our setup is correct, not actual functionality tests.
            assertEquals(200, line.getWidth());
            assertEquals(200, line.getHeight());
View Full Code Here

          try {
            frame.pack();
            int xo = 200 - line.getWidth();
            int yo = 200 - line.getHeight();
            frame.setSize(frame.getWidth() + xo, frame.getHeight() + yo);
            frame.validate();

            // These are sanity checks to make sure our setup is correct, not actual functionality tests.
            assertEquals(200, line.getWidth());
            assertEquals(200, line.getHeight());
View Full Code Here

          try {
            frame.pack();
            int xo = 200 - grid.getWidth();
            int yo = 200 - grid.getHeight();
            frame.setSize(frame.getWidth() + xo, frame.getHeight() + yo);
            frame.validate();

            // These are sanity checks to make sure our setup is correct, not actual functionality tests.
            assertEquals(200, grid.getWidth());
            assertEquals(200, grid.getHeight());
View Full Code Here

          try {
            frame.pack();
            int xo = 200 - axis.getWidth();
            int yo = 200 - axis.getHeight();
            frame.setSize(frame.getWidth() + xo, frame.getHeight() + yo);
            frame.validate();

            // These are sanity checks to make sure our setup is correct, not actual functionality tests.
            assertEquals(200, axis.getWidth());
            assertEquals(200, axis.getHeight());
View Full Code Here

        JFrameFactory uiFactory = (JFrameFactory)
      uiDescriptor.getUIFactory(
          Thread.currentThread().getContextClassLoader());
        JFrame frame = uiFactory.getJFrame(item);

        frame.validate();
        frame.setVisible(true);
    }
    catch (Exception e) {
        logger.log(Level.INFO, "show ui failed", e);
        JOptionPane.showMessageDialog(Browser.this,
View Full Code Here

      try {
    JFrameFactory uiFactory = (JFrameFactory)
        uiDescriptor.getUIFactory(Thread.currentThread().getContextClassLoader());
    JFrame frame = uiFactory.getJFrame(serviceItem);

    frame.validate();
    frame.setVisible(true);
      }
      catch (Exception e) {
    e.printStackTrace();
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.