Examples of pack()


Examples of hermes.browser.dialog.DestinationConfigDialog.pack()

      {
         public void run()
         {
            final DestinationConfigDialog dialog = new DestinationConfigDialog(HermesBrowser.getBrowser(), hermes.getId(), destination, config);

            dialog.pack();
            JideSwingUtilities.centerWindow(dialog);
            dialog.show();
           
            if (onOK != null)
            {
View Full Code Here

Examples of hermes.browser.dialog.EditNamingConfigDialog.pack()

            {
               final NamingConfigTreeNode namingNode = (NamingConfigTreeNode) component;
               final EditNamingConfigDialog dialog = new EditNamingConfigDialog(HermesBrowser.getBrowser(), namingNode.getId(), HermesBrowser.getBrowser()
                     .getConfig().getNaming());

               dialog.pack();
               JideSwingUtilities.centerWindow(dialog);
               dialog.setVisible(true) ;
            }
            else if (component instanceof MessageStoreURLTreeNode)
            {
View Full Code Here

Examples of hermes.browser.dialog.MapPropertyDialog.pack()

                          {
                              public void run()
                              {
                                  MapPropertyDialog dialog = new MapPropertyDialog(HermesBrowser.getBrowser(),
                                          "Properties for " + dNode.getDestinationName(), null, statistics, false);
                                  dialog.pack();
                                  JideSwingUtilities.centerWindow(dialog);
                                  dialog.show();
                              }
                          });
                      }
View Full Code Here

Examples of hermes.browser.dialog.PreferencesDialog.pack()

            {
               final NamingConfigTreeNode namingNode = (NamingConfigTreeNode) component;
               final EditNamingConfigDialog dialog = new EditNamingConfigDialog(HermesBrowser.getBrowser(), namingNode.getId(), HermesBrowser.getBrowser()
                     .getConfig().getNaming());

               dialog.pack();
               JideSwingUtilities.centerWindow(dialog);
               dialog.setVisible(true) ;
            }
            else if (component instanceof MessageStoreURLTreeNode)
            {
View Full Code Here

Examples of jSimMacs.display.dialog.ImportFileDialog.pack()

      if (selectedNode instanceof RemoteProjectMutuableTreeNode) {
        RemoteProjectMutuableTreeNode rNode = (RemoteProjectMutuableTreeNode) selectedNode;
        RemoteProject rProject = rNode.getRemoteProject();
        ImportFileDialog importDialog = new ImportFileDialog(rNode
            .getPathString(), rProject);
        importDialog.pack();
        importDialog.setSize(500, 350);
        // importDialog.setLocationRelativeTo(this);
        importDialog.setVisible(true);
      } else if (selectedNode instanceof ProjectEntryMutuableTreeNode) {
        ProjectEntryMutuableTreeNode node = (ProjectEntryMutuableTreeNode) selectedNode;
View Full Code Here

Examples of jSimMacs.display.dialog.JSimRunWizard.pack()

        JSimLogic.getInstance().setUpAnalyzeWizard(wizard, project);
      else {
        wizard.setMenuBar();
        JSimLogic.getInstance().setUpWizard(wizard, project);
      }
      wizard.pack();
      // wizard.setSize(500, 400);
      wizard.setLocationRelativeTo(this);
      wizard.setVisible(true);
      // System.out.println(item.getProject().getName());
View Full Code Here

Examples of jSimMacs.display.dialog.ProjectSettingsDialog.pack()

   * @param project
   */
  public void showProjectSettingsDialog(Project project) {
    ProjectSettingsDialog projectSettingDialog = new ProjectSettingsDialog(
        frame, project);
    projectSettingDialog.pack();
    projectSettingDialog.setLocationRelativeTo(frame);
    projectSettingDialog.setVisible(true);
    if (projectSettingDialog.isSaveChanges()) {
      saveRemoteProject(ProjectLocation.SSH);
    }
View Full Code Here

Examples of jSimMacs.display.dialog.ShowCommandDialog.pack()

      else
        project.setNp(GromacsDefaultValues.DEFAULTNRNODES);
    }
    ShowCommandDialog showCommand = new ShowCommandDialog(frame, command,
        project, interactive);
    showCommand.pack();
    showCommand.setLocationRelativeTo(selectedComponent);
    showCommand.setSize(600, 200);
    showCommand.setVisible(true);

  }
View Full Code Here

Examples of jadx.gui.ui.MainWindow.pack()

      UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
      SwingUtilities.invokeLater(new Runnable() {
        public void run() {
          JadxWrapper wrapper = new JadxWrapper(jadxArgs);
          MainWindow window = new MainWindow(wrapper);
          window.pack();
          window.setLocationAndPosition();
          window.setVisible(true);
          window.setLocationRelativeTo(null);
          window.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
View Full Code Here

Examples of java.awt.Component.pack()

                                    // Only pack if we are not visible yet, or we are not maximised.
                                    // Packing a window that is maximised will cause it to srink to a normal windowed state.
                                    // Craig Mitchell: 30/01/2007.
                                    // -------------------------------------------------------------------------------------
                                    if (c.isVisible() == false || c.getExtendedState() != Frame.MAXIMIZED_BOTH) {
                                        c.pack();
                                    }
                                }
                                else if (container instanceof JDialog) {
                                    JDialog c = (JDialog)container;
                                    c.pack();
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.