Examples of pack()


Examples of draff.awt.TextAreaFrame.pack()

  public void actionPerformed(ActionEvent evt)
  {
    TextAreaFrame displayFrame = new TextAreaFrame(fileName, readTextFromFile(fileName));
    displayFrame.setFont(displayFont);

    displayFrame.pack();
    displayFrame.setVisible(true);
  }

  private static String readTextFromFile(String fileName)
  {
View Full Code Here

Examples of edu.gmu.seor.prognos.unbbayesplugin.cps.gui.unb.util.TextAreaDialog.pack()

            public void actionPerformed(ActionEvent ae) {
              //by young2
                netWindow.getGraphPane().compiled(false, null);
                TextAreaDialog jd = new TextAreaDialog(netWindow.getUnbbayesFrame(), false);
                jd.setTextContent(controller.getLog());
                jd.pack();
                jd.setLocationRelativeTo(PNCompilationPane.this);
//                jd.setAlwaysOnTop(true);
                jd.setVisible(true);
            }
        });
View Full Code Here

Examples of fr.adrienbrault.idea.symfony2plugin.action.ui.SymfonyCreateService.pack()

        symfonyCreateService.init();

        Dimension dim = new Dimension();
        symfonyCreateService.setTitle("Create Service");
        symfonyCreateService.pack();
        symfonyCreateService.setLocationRelativeTo(null);
        symfonyCreateService.setVisible(true);


    }
View Full Code Here

Examples of fr.adrienbrault.idea.symfony2plugin.translation.form.TranslatorKeyExtractorDialog.pack()

        final String finalTranslationText = translationText;
        TranslatorKeyExtractorDialog extractorDialog = new TranslatorKeyExtractorDialog(project, (PsiFile) psiFile, domainNames, defaultKey, reselectedDomain, new MyOnOkCallback(project, editor, finalDefaultDomain, finalStartOffset, finalEndOffset, finalTranslationText));

        extractorDialog.setTitle("Symfony2: Extract Translation Key");
        extractorDialog.setMinimumSize(new Dimension(600, 200));
        extractorDialog.pack();
        extractorDialog.setLocationRelativeTo(null);
        extractorDialog.setVisible(true);

    }
View Full Code Here

Examples of fr.pingtimeout.jtail.gui.view.JTailMainFrame.pack()

        ApplicationContext applicationContext = new ClassPathXmlApplicationContext(
                "applicationContext.xml"
        );

        JTailMainFrame jTailMainFrame = (JTailMainFrame) applicationContext.getBean("jTailMainFrame");
        jTailMainFrame.pack();
        jTailMainFrame.setVisible(true);
    }
}
View Full Code Here

Examples of fr.soleil.lib.project.swing.dialog.ProgressDialog.pack()

        final ProgressDialog progressDialog = new ProgressDialog(testFrame);
        progressDialog.setProgressIndeterminate(true);
        progressDialog.setCancelable(killer);
        progressDialog.setTitle("Computing chart data");
        progressDialog.setMainMessage(progressDialog.getTitle());
        progressDialog.pack();
        progressDialog.setLocationRelativeTo(testFrame);
        progressDialog.setVisible(true);

        SwingWorker<Void, Void> chartFiller = new SwingWorker<Void, Void>() {
            @Override
View Full Code Here

Examples of gov.nasa.arc.mct.gui.housing.MCTAbstractHousing.pack()

        ((MCTAbstractHousing) housing).setJMenuBar(MenuFactory.createStandardHousingMenuBar((MCTStandardHousing) housing));
        new StatusBarContentProvider(housing);
        if (housing.getContentArea() != null && !housing.getContentArea().isAreaEmpty()) {
            // use preferred size since the content area is going to be the dominate focus
            MCTAbstractHousing abstractHousing = ((MCTAbstractHousing) housing);
            abstractHousing.pack();
            Rectangle maximumWindowBounds = abstractHousing.getGraphicsConfiguration() != null ? abstractHousing.getGraphicsConfiguration().getBounds() :
                                            GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds();
            abstractHousing.setSize(Math.min((int) (maximumWindowBounds.width*MAX_SCALE_FACTOR), abstractHousing.getSize().width),
                            Math.min((int) (maximumWindowBounds.height*MAX_SCALE_FACTOR), abstractHousing.getSize().height));
            housing.getContentArea().getHousedViewManifestation().requestFocusInWindow();
View Full Code Here

Examples of gui.OptionFrame.pack()

  }

  public void actionPerformed(ActionEvent evt) {
    Traces.printTraces("Set options");
    OptionFrame frame = new OptionFrame(this.owner, this.propertiesMgr);
    frame.pack();
    frame.setResizable(false);
    frame.setVisible(true);
  }
}
View Full Code Here

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

               // NOP
            }
            else
            {
               BeanPropertyDialog dialog = new BeanPropertyDialog(HermesBrowser.getBrowser(), node.getBean(), false);
               dialog.pack();
               JideSwingUtilities.centerWindow(dialog);
               dialog.show();
            }
         }
      }
View Full Code Here

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

          final NamingConfigTreeNode namingConfigTreeNode = (NamingConfigTreeNode) getSelectionPath().getLastPathComponent();
          final Collection objects = (Collection) t.getTransferData(HermesAdministeredObjectTransferable.FLAVOR);
          final JNDIContextFactory contextFactory = new JNDIContextFactory(namingConfigTreeNode.getConfig());
          final BindToolDialog bindTool = new BindToolDialog(HermesBrowser.getBrowser(), contextFactory, "", objects);

          bindTool.pack();
          JideSwingUtilities.centerWindow(bindTool);
          bindTool.show();

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