Examples of pack()


Examples of com.jogamp.newt.opengl.GLWindow.pack()

                    System.exit(0);
                }
            });

            window.add(canvas);
            window.pack();
            canvas.requestFocusInWindow();
            window.setSize(WINDOW_WIDTH, WINDOW_HEIGHT);
            window.setTitle(WINDOW_TITLE);
            window.setVisible(true);
            this.window = window;
View Full Code Here

Examples of com.jrefinery.ui.ApplicationFrame.pack()

            aJPanel.add(chartPanel);
        };
        mainPane.add(aJPanel);
    ApplicationFrame theAppFrame = new ApplicationFrame("Office system calls statistics");
        theAppFrame.setContentPane(mainPane);
    theAppFrame.pack();
        RefineryUtilities.centerFrameOnScreen(theAppFrame);
        theAppFrame.setVisible(true);
    };
   
  public static void main (String [] args) {
View Full Code Here

Examples of com.l2client.gui.transparent.TransparentInternalFrame.pack()

    final GameServerJPanel pan = new GameServerJPanel(serverInfos);
    internalFrame.add(pan);
   
    internalFrame.setVisible(true);
    internalFrame.setSize(new java.awt.Dimension(400, 300));
    internalFrame.pack();

    desktopPane.add(internalFrame);
   
    wireInputSwitch(new ArrayList<BaseUsable>()/*must pass empty otherwise not overriden*/, pan);
   
View Full Code Here

Examples of com.lightcrafts.ui.print.PrintLayoutDialog.pack()

            }
        );
        PrinterLayer printer = Env.getPrinterLayer();
        printer.initialize();

        dialog.pack();
        dialog.setLocationRelativeTo(frame);
        dialog.setVisible(true);

        // dispose happens in PrintDoneCallback
        // printer.dispose();
View Full Code Here

Examples of com.mucommander.ui.viewer.FileFrame.pack()

      FileFrame frame = getFrame();

        // Revalidate, pack and repaint should be called in this order
        frame.setTitle(this.getTitle());
        imageViewerImpl.revalidate();
        frame.pack();
        frame.getContentPane().repaint();
    }

    private void checkZoom() {
        Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
View Full Code Here

Examples of com.sleepycat.je.cleaner.PackedOffsets.pack()

        long[] sorted = new long[array.length];
        System.arraycopy(array, 0, sorted, 0, array.length);
        Arrays.sort(sorted);

        PackedOffsets packed = new PackedOffsets();
        packed.pack(array);
        assertTrue(Arrays.equals(sorted, packed.toArray()));
    }

    private ArrayList list(long[] array) {
View Full Code Here

Examples of com.tizianobasile.androiddrawablefactory.gui.Main.pack()

  public static final double[] DENSITY_MULTIPLIERS = {.75, 1, 1.5, 2, 3, 4};
  public static void main(String... args)
  {
    initLaF();
    Main mainWindow = new Main();
    mainWindow.pack();
    mainWindow.setTitle("Android Drawable Factory");
    mainWindow.setLocationRelativeTo(null);
    mainWindow.setResizable(false);
    mainWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    mainWindow.setVisible(true);
View Full Code Here

Examples of cytoscape.dialogs.ImportNetworkDialog.pack()

      e1.printStackTrace();
    } catch (IOException e1) {
      e1.printStackTrace();
    }

    fd.pack();
    fd.setLocationRelativeTo(Cytoscape.getDesktop());
    fd.setVisible(true);

    if (fd.getStatus() == false) {
      return;
View Full Code Here

Examples of de.danet.an.util.sax.SAXContentBuffer.pack()

    xr.setContentHandler (filter);
    xr.parse (new InputSource
        (new StringReader
         ("<temporary-root>" + valueElem.getText()
          + "</temporary-root>")));
    seb.pack();
    return seb;
      } catch (ParserConfigurationException e) {
    throw new IllegalArgumentException
        ("Error initiliazing schema type: " + e.getMessage ());
      } catch (SAXException e) {
View Full Code Here

Examples of de.danet.an.workflow.util.SAXEventBufferImpl.pack()

        c.emit(new BodyFilter(th));
    }
    th.endElement("", newRootTag, newRootTag);
    th.endDocument();
      }
      seb.pack();
  } catch (TransformerConfigurationException e) {
      String msg = "Error creating TransformerHandler: " + e.getMessage();
      logger.error(msg, e);
      throw new CannotExecuteException (msg);
  } catch (SAXException se) {
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.