Examples of pack()


Examples of org.apache.harmony.pack200.Archive.pack()

        file = File.createTempFile("sql", ".pack");
        out = new FileOutputStream(file);
        PackingOptions options = new PackingOptions();
        options.setGzip(false);
        Archive ar = new Archive(in, out, options);
        ar.pack();
        in.close();
        out.close();

        // now unpack
        InputStream in2 = new FileInputStream(file);
View Full Code Here

Examples of org.apache.jmeter.gui.SavePropertyDialog.pack()

            public void actionPerformed(ActionEvent e) {
                SavePropertyDialog d = new SavePropertyDialog(
                        GuiPackage.getInstance().getMainFrame(),
                        JMeterUtils.getResString("sample_result_save_configuration"), // $NON-NLS-1$
                        true, collector.getSaveConfig());
                d.pack();
                ComponentUtil.centerComponentInComponent(GuiPackage.getInstance().getMainFrame(), d);
                d.setVisible(true);
            }
        });
View Full Code Here

Examples of org.apache.uima.tools.cvd.AnnotationDisplayCustomizationFrame.pack()

  public void actionPerformed(ActionEvent event) {
    AnnotationDisplayCustomizationFrame acd = new AnnotationDisplayCustomizationFrame(
        "Customize Annotation Display");
    acd.init(this.main.getStyleMap(), this.main.getCas());
    acd.pack();
    acd.setVisible(true);
  }

}
View Full Code Here

Examples of org.apache.uima.tools.docanalyzer.AnnotationViewerDialog.pack()

    // output dir is the directory containing XCAS files.
    prefsMed.setOutputDir(inputDir.toString());
    AnnotationViewerDialog viewerDialog = new AnnotationViewerDialog(this,
            "Analyzed Documents", prefsMed, styleMapFile, null, cas.getTypeSystem(), null, false,
            cas);
    viewerDialog.pack();
    viewerDialog.setModal(true);
    viewerDialog.setVisible(true);
  }

  /**
 
View Full Code Here

Examples of org.apache.wookie.flatpack.FlatpackFactory.pack()

  @Test(expected=Exception.class)
  public void testNoInstance() throws Exception{
    FlatpackFactory flatfac = new FlatpackFactory(null);
    flatfac.setInputWidget(null); // this is the original .wgt
    @SuppressWarnings("unused")
    File file = flatfac.pack(); // Get the new .wgt file 
  }

  /**
   * Test creating a flatpack for an instance of a widget using the factory defaults
   * @throws Exception
View Full Code Here

Examples of org.codinjutsu.tools.jenkins.view.SelectJobDialog.pack()

                final BrowserPanel browserPanel = BrowserPanel.getInstance(project);

                SelectJobDialog dialog = new SelectJobDialog(selectedChangeLists, browserPanel.getJobs(), project);
                dialog.setLocationRelativeTo(null);
                dialog.setMaximumSize(new Dimension(300, 200));
                dialog.pack();
                dialog.setVisible(true);
            }
        });
    }
View Full Code Here

Examples of org.compiere.apps.form.FormFrame.pack()

      ProcessInfo pi = new ProcessInfo (title, vButton.getProcess_ID(), table_ID, record_ID);
      pi.setAD_User_ID (Env.getAD_User_ID(m_ctx));
      pi.setAD_Client_ID (Env.getAD_Client_ID(m_ctx));
      ff.setProcessInfo(pi);
      ff.openForm(form_ID);
      ff.pack();
      AEnv.showCenterScreen(ff);
      return;
    }   
    else {
      ProcessModalDialog dialog = new ProcessModalDialog(m_ctx, Env.getWindow(m_curWindowNo), Env.getHeader(m_ctx, m_curWindowNo),
View Full Code Here

Examples of org.compiere.swing.CDialog.pack()

          this, m_curWindowNo, vButton.getProcess_ID(), table_ID,
          record_ID, startWOasking);
      if (dialog.isValidDialog())
      {
        dialog.validate();
        dialog.pack();
        AEnv.showCenterWindow(Env.getWindow(m_curWindowNo), dialog);
      }
    }
  }  //  actionButton
View Full Code Here

Examples of org.earth3d.jearth.util.InfoWindow.pack()

                "pixels are lower points.</p>" +
                "<p>With this file and a given output directory, you can start the map creation.</p>" +
                "<p>When the map creation has finished, a file service.sxml should have been created in the " +
                "output directory that can be opened with File-&gt;Open URL.</p>" +
                "</html>");
        frame.pack();
        frame.setVisible(true);
    }//GEN-LAST:event_jButtonHelpActionPerformed
   
    /**
     * @param args the command line arguments
View Full Code Here

Examples of org.eclipse.swt.custom.CCombo.pack()

        editor1.setEditor(spinner, item, 1);

        final CCombo combo = new CCombo(tree, SWT.BORDER | SWT.READ_ONLY);
        combo.setItems(new String[] { "default", Boolean.toString(true), Boolean.toString(false) }); //$NON-NLS-1$
        combo.setText(item.getText(2));
        combo.pack();
        combo.addSelectionListener(new SelectionAdapter() {
          public void widgetSelected(SelectionEvent e) {
            if (item.getChecked()) {
              item.setText(2, combo.getText());
              // fTab.updateLaunchConfigurationDialog();
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.