Package javax.swing

Examples of javax.swing.JFrame.dispose()


                        ReactionEditor editor = (ReactionEditor) component;
                        editor.finalizeEditing();
                    }
                }

                frame.dispose();
            }
        });
        frame.add(ok, BorderLayout.SOUTH);
        frame.pack();
        bindGuiToPlugin(frame);
View Full Code Here


                && (frame instanceof PortConfigurerDialog)) {
            if (!((PortConfigurerDialog) frame).close()) {
                return false;
            }
        } else if (frame != null) {
            frame.dispose();
        }

        return true;
    }
View Full Code Here

                widgetAfterStart.stop();
            }

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

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

            // send string arg on command which takes short
View Full Code Here

        // test tootlip
        toolTiptest(widget.getDeviceName() + "/" + widget.getCommandName(), button);
        // clean
        widget.stop();
        jf.dispose();
    }

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

                path.equals(m_deviceProxy.read_attribute(attributeName).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

      widgetAfterStart.stop();
    }

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

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

    // send string arg on command which takes short
View Full Code Here

    // test tootlip
    toolTiptest(widget.getDeviceName() + "/" + widget.getCommandName(),
        button);
    // clean
    widget.stop();
    jf.dispose();
  }

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

          m_deviceProxy.state());
    }

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

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

    final String expected = "net.entropysoft.transmorph.ConverterException: Could not convert given object with class 'java.lang.String' to object with type signature 'int'";
    Assert.assertEquals("conversion error was not detected", expected,
        widget.getData().trim());

    widget.stop();
    jf.dispose();

  }

  private JTextField getTextField(final CommandScalarField widget) {
View Full Code Here

    widget = new CommandDeviceCombo.Builder(m_deviceName)
        .commands(commandList).jframe(jf).build();
    Sleeper.SECONDS.sleep(4);
    commandListTest(widget, commandList);

    jf.dispose();
  }

  private void commandListTest(final CommandDeviceCombo widget,
      final String[] commandList) {
    // test list of command is correct
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.