Package javax.swing

Examples of javax.swing.JFrame.dispose()


      Assert.assertTrue("reject confirmation failed", m_deviceProxy
          .read_attribute(attr).extractBoolean());
    }

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

  @Deprecated
  protected Color getColor(final CommandDeviceCombo widget) {
View Full Code Here


    // test with no element selected
    toolTiptest(userToolTip, widget);
    // test change selected command
    toolTipTestOn2Commands(userToolTip, widget, 0, 1);

    jf.dispose();
  }

  private void toolTipTestOn2Commands(final String expectedToolTip,
      final CommandDeviceCombo widget, final int indexFirstCommand,
      final int indexSecondCommand) {
View Full Code Here

        listenerTest.getNotifyCount() == 0);

    // clear
    widget.stop();
    jf.remove(widget);
    jf.dispose();
  }

  @Override
  protected void startStopStartTest() throws DevFailed {
    // TODO Auto-generated method stub
View Full Code Here

    widgetAfterStart = new CommandCombo.Builder(commands).jframe(
        jfAfterStart).build();
    Sleeper.SECONDS.sleep(5);
    controlStringAndNumberValueChange(widgetAfterStart, 1);
    jfAfterStart.dispose();

    helpTextTest();

  }
View Full Code Here

    // test color is correct
    Assert.assertTrue("invalid Color", Color.RED.equals(getColor(widget)));

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

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

      Assert.assertTrue("reject confirmation failed", m_deviceProxy
          .read_attribute(attr).extractBoolean());
    }

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

  @Deprecated
  protected Color getColor(final CommandCombo widget) {
View Full Code Here

    // test with another command selected
    tth.enterIndexForCombo(widget, 1);
    toolTiptest(userToolTip, widget);

    jf.dispose();
  }

  private void inputListenerTest() throws DevFailed {
    final JFrame jf = new JFrame();
    initDevice();
View Full Code Here

        listenerTest.getNotifyCount() == 0);

    // clear
    widget.stop();
    jf.remove(widget);
    jf.dispose();
  }

  @Override
  protected void startStopStartTest() throws DevFailed {
    // TODO Auto-generated method stub
View Full Code Here

      // widgetAfterStart.stop();
    }

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

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

  }
View Full Code Here

            Assert.assertEquals("confirmation ok failed", DevState.RUNNING, m_deviceProxy.state());
        }

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

    private void assertInvalidArgTypeIsManaged() throws DevFailed {
        initFirstDevice();
        final JFrame jf = new JFrame();
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.