Examples of pack()


Examples of org.freeplane.core.ui.components.IconSelectionPopupDialog.pack()

    final ViewController viewController = controller.getViewController();
    final IconSelectionPopupDialog selectionDialog = new IconSelectionPopupDialog(viewController.getJFrame(),
        actions);
    final NodeModel selected = controller.getSelection().getSelected();
    controller.getMapViewManager().scrollNodeToVisible(selected);
    selectionDialog.pack();
    UITools.setDialogLocationRelativeTo(selectionDialog, selected);
    selectionDialog.setModal(true);
    selectionDialog.show();
    final int result = selectionDialog.getResult();
    if (result >= 0) {
View Full Code Here

Examples of org.gwt.mosaic.ui.client.LayoutPopupPanel.pack()

        // -----

        popup.setPopupPosition(menuButton.getAbsoluteLeft()-5, menuButton.getAbsoluteTop()+30);
        popup.setWidget(p);
        popup.pack();
        popup.show();


    }
View Full Code Here

Examples of org.jcsp.awt.ActiveFrame.pack()

        final ActiveButton retry = new ActiveButton(null, responseEvent, "Retry");
        final ActiveButton close = new ActiveButton(null, responseEvent, "Close");
        root.add(message, BorderLayout.NORTH);
        root.add(retry, BorderLayout.CENTER);
        root.add(close, BorderLayout.SOUTH);
        root.pack();
        System.out.println("NSCUI:  packed");
        root.setVisible(true);
        System.out.println("NSCUI:  setvisible");
        final CSProcess[] network = {
                message,
View Full Code Here

Examples of org.jdesktop.swingx.JXDialog.pack()

            }
            // RJO: shouldn't we avoid overloaded useage like this in a JSR296 world? swap getName() for getTitle() here?           
//            findDialog.setTitle(getSharedFindPanel().getName());
            // JW: don't - this will stay on top of all applications!
            // findDialog.setAlwaysOnTop(true);
            findDialog.pack();
            if (location == null) {
                findDialog.setLocationRelativeTo(frame);
            } else {
                findDialog.setLocation(location);
            }
View Full Code Here

Examples of org.jdesktop.swingx.JXFrame.pack()

        // Show/hide the "Controls"
        JButton toggle = new JButton(cp.getActionMap().get(JXCollapsiblePane.TOGGLE_ACTION));
        toggle.setText("Show/Hide Search Panel");
        frame.add("South", toggle);

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

    public static void main(String[] args) {
        EventQueue.invokeLater(new JXCollapsiblePaneTest());
View Full Code Here

Examples of org.jeecgframework.codegenerate.window.CodeWindow.pack()

*/
public class JeecgOneGUI {

  public static void main(String[] args) {
    CodeWindow  codeWindow = new CodeWindow();
    codeWindow.pack();
  }
}
View Full Code Here

Examples of org.jfree.chart.ChartFrame.pack()

           for (int k=0; k<categories.length; k++)
            data.setValue(categories[k], new Double(values[k]));
         JFreeChart pieChart = ChartFactory.createPieChart(pieChartName, data, false, false, false);
         pieChart.setTitle("Category Plot "+pieChartName);
         JFrame pieFrame = new ChartFrame(pieChartName, pieChart);
         pieFrame.pack();
         pieFrame.setVisible(true);
         if (currentPlot != null) {
             currentPlot.m_chart = pieChart;
         }
        
View Full Code Here

Examples of org.jfree.experimental.chart.swt.ChartComposite.pack()

        shell.setSize(600, 400);
        shell.setLayout(new FillLayout());
        shell.setText("Test for jfreechart running with SWT");
        final ChartComposite frame = new ChartComposite(shell, SWT.NONE, chart, true);
        //frame.setDisplayToolTips(false);
        frame.pack();
        shell.open();
        while (!shell.isDisposed()) {
            if (!display.readAndDispatch())
                display.sleep();
        }
View Full Code Here

Examples of org.jfree.report.modules.gui.base.PreviewFrame.pack()

      final JFreeReport report1 = gen.parseReport(file1);
      report1.setData(myData);
      setReportProperties(report1, rapName, imagePath, compName,compId);
      final PreviewFrame frame1 = new PreviewFrame(report1);
      frame1.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
      frame1.pack();
      RefineryUtilities.positionFrameRandomly(frame1);
      frame1.setVisible(true);
      frame1.requestFocus();
    } catch (Exception e) {
      JOptionPane.showMessageDialog(null, e.getMessage(), "Error: " + e.getClass().getName(), JOptionPane.ERROR_MESSAGE);
View Full Code Here

Examples of org.jfree.ui.ApplicationFrame.pack()

  protected static void displayTestPanel(BufferedImage image) {
    ApplicationFrame frame = new ApplicationFrame("testframe");
    BufferedPanel imgPanel = new BufferedPanel(image);
    frame.setContentPane(imgPanel);
    frame.pack();
    RefineryUtilities.centerFrameOnScreen(frame);
    frame.setVisible(true);
  }

  protected static Date stringToDate(String sDate) throws ParseException {
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.