Package javax.swing

Examples of javax.swing.JDialog.dispose()


    invokeLater(new Runnable() {
      @Override
      public void run() {
        dialog.pack();
        dialog.setVisible(true);
        dialog.dispose();
      }
    });
    pause(new Condition("JOptionPane is showing") {
      @Override
      public boolean test() {
View Full Code Here


  }

  public static void closeParent(JComponent childComponent) {
    JDialog parent = getRoot(childComponent);
    if (parent != null) {
      parent.dispose();
    }
  }

  public static void showWaitDialog(String waitingText) {
    if (waitDialog == null) {
View Full Code Here

      }
    });
    t.start();

    frame.setVisible(true);
    loadDialog.dispose();

  }
}
View Full Code Here

                    listener.loadComplete(loadedModel);
                } catch (IOException ex) {
                    LOGGER.log(Level.SEVERE, null, ex);
                } finally {
                    loadingDialog.setVisible(false);
                    loadingDialog.dispose();
                }
            }
        });
        t.start();
    }
View Full Code Here

          dialog.setLocation(
            (screenSize.width / 2) - (dialog.getWidth() / 2),
            (screenSize.height / 2) - (dialog.getHeight() / 2));
          dialog.show();

          dialog.dispose();

          applicationPreferenceModel.setShowNoReceiverWarning(
            !noReceiversWarningPanel.isDontWarnMeAgain());

          if (noReceiversWarningPanel.getModel().isManualMode()) {
View Full Code Here

                 

                  panel.getOkPanel().getOkButton().addActionListener(
                    new ActionListener() {
                      public void actionPerformed(ActionEvent e2) {
                        dialog.dispose();
                        Plugin plugin = panel.getPlugin();
                        pluginRegistry.addPlugin(plugin);
                        plugin.activateOptions();
                        MessageCenter.getInstance().addMessage("Plugin '" + plugin.getName() + "' started");
                      }
View Full Code Here

                            UserFacade.getInstance().createPartition(
                                    view.getPartition().getStart(), size);
                        } catch (Exception e1) {
                            errorReporter.reportError(log, AddPartitionAction.this, e1);
                        }
                        dlg.dispose();
                        view.getDeviceView().update();
                    }
                });
                dlg.getContentPane().add(btn);
                dlg.setBounds(200, 200, 300, 100);
View Full Code Here

    ok.addActionListener(
      new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
          dialog.setVisible(false);
          dialog.dispose();
        }
      }
    );
    wrapper.add(ok);
View Full Code Here

        10, 10, 10, 10));
    contentPane.add(this);
    contentPane.setBackground(Color.white);
    dialog.pack();
    dialog.setLocationRelativeTo(null);
    dialog.dispose();
    GraphicsSupport.saveImage(this, fileName);
  }

  // ---------------------------------------------------
View Full Code Here

      {
        dialogResultValue = CANCEL_OPTION;
      }
    });
    dialog.setVisible(true);
    dialog.dispose();
    dialog = null;

    return dialogResultValue;
  }
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.