示例#1
0
  private void doImport() {
    Frame owner = GuiUtil.getFrame(this);
    ProgressDialog dialog = new ProgressDialog(owner, Messages.getString("importData"));
    Worker worker = new Worker(dialog);

    String runs = cmbRuns.getSelectedItem().toString();
    runs = Util.replaceString(runs, ".", "");

    worker.setRuns(Integer.parseInt(runs));

    dialog.run(worker);
  }
示例#2
0
  protected JComponent buildInnerPanel() {
    JPanel p = new JPanel();

    FlexLayout fl = new FlexLayout(2, 1);
    fl.setColProp(1, FlexLayout.EXPAND);
    p.setLayout(fl);

    p.add("0,0", new JLabel(Messages.getString("runs")));
    p.add("1,0", cmbRuns);

    cmbRuns.addItem("1");
    cmbRuns.addItem("10");
    cmbRuns.addItem("100");
    cmbRuns.addItem("1.000");
    cmbRuns.addItem("10.000");
    cmbRuns.addItem("100.000");
    cmbRuns.addItem("1.000.000");

    return p;
  }