Package javax.swing

Examples of javax.swing.JFrame.dispose()


        // widgetAfterStart.stop();
      }

      // clean
      jfBeforeStart.dispose();
      jfAfterStart.dispose();

      confirmationMessageTest(true); // test cancel confirmation msg
      confirmationMessageTest(false);// test accept confirmation msg

  }
View Full Code Here


    // check is component not writable
    Assert.assertFalse("TexteArea shoudn't be editable", getTextArea(jf).isEditable());

    // clean
    widget.stop();
    jf.dispose();
  }

  @Override
  protected void confirmationMessageTest(final boolean withCancel) throws DevFailed {
    // not applicable
View Full Code Here

            .extractString())
            && path.equals(getButton(jf1).getText()));

    // clean
    widget.stop();
    jf1.dispose();
  }

  private String enterFilePath(final JFrame jf) {
    final URL url = this.getClass().getClassLoader()
        .getResource("fr/soleil/globalscreen/tangowiget/test.txt");
View Full Code Here

    assertBeanShowSameDeviceValue(jfAfterStart, m_deviceProxy2);
    toolTiptest(m_deviceName2 + "/status", getTextArea(jfAfterStart));

    // clean
    widgetAfterStart.stop();
    jfAfterStart.dispose();

  }

  @Override
  protected void componentInitialisationTest() throws DevFailed {
View Full Code Here

    Assert.assertFalse("TexteArea shoudn't be editable", getTextArea(jf)
        .isEditable());

    // clean
    widget.stop();
    jf.dispose();
  }

  @Override
  protected void confirmationMessageTest(final boolean withCancel)
      throws DevFailed {
View Full Code Here

    Sleeper.SECONDS.sleep(4);
    Assert.assertNotNull("set image failed", getIcon(widget));

    // clean
    widget.stop();
    jf.dispose();
  }

  @Override
  protected void componentNotWritableTest() throws DevFailed {
    final JFrame jf = new JFrame();
View Full Code Here

    // Assert.assertTrue("color given by bean is invalid.",
    // getBackgroundColor(widget).equals(ColorDeviceState.getColorForState(DevState.RUNNING)));

    // clean
    widget.stop();
    jf.dispose();
  }

  @Override
  protected void confirmationMessageTest(final boolean withCancel)
      throws DevFailed {
View Full Code Here

    Sleeper.SECONDS.sleep(4);
    Assert.assertNotNull("set image failed", getIcon(widget));

    // clean
    widget.stop();
    jf.dispose();
  }

  @Override
  protected void componentNotWritableTest() throws DevFailed {
    final JFrame jf = new JFrame();
View Full Code Here

    // Assert.assertTrue("color given by bean is invalid.",
    // getBackgroundColor(widget).equals(ColorDeviceState.getColorForState(DevState.RUNNING)));

    // clean
    widget.stop();
    jf.dispose();
  }

  @Override
  protected void confirmationMessageTest(final boolean withCancel) throws DevFailed {
    // not applicable to this bean
View Full Code Here

      assertBeanShowSameDeviceValue(jfAfterStart, m_deviceProxy2);
      toolTiptest(m_deviceName2 + "/status", getTextArea(jfAfterStart));

      // clean
      widgetAfterStart.stop();
      jfAfterStart.dispose();

  }

  @Override
  protected void componentInitialisationTest() throws DevFailed {
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.