public RemoteConnectionDialog(final JFrame parent) {
    super(parent, true);
    setTitle(rb.getString("Title.ConnectServer"));
    layoutMainPanel();

    setMinimumSize(getSize());

    setDefaultCloseOperation(DISPOSE_ON_CLOSE);

    DialogUtils.addBoundsListener(this);
  }
示例#2
0
  public ImportDialog() {
    super(UIApplication.getFrame());

    setTitle(rb.getString("Title.ImportTransactions"));

    addTaskPage(new ImportOne());
    addTaskPage(new ImportTwo());
    addTaskPage(new ImportSummary());

    DialogUtils.addBoundsListener(this);
  }
  private TransactionNumberDialog(JFrame parent) {
    super(parent);
    setModal(true);

    initComponents();

    layoutDialog();

    setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);

    DialogUtils.addBoundsListener(this);
  }
  /**
   * Creates new form AbstractDateChkNumberDialog
   *
   * @param a the account for the transaction. This can be null.
   * @param title Title for the dialog
   */
  DateChkNumberDialog(final Account a, final String title) {
    super(UIApplication.getFrame(), ModalityType.APPLICATION_MODAL);

    setTitle(title);

    setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);

    this.account = a;

    buildPanel();

    if (a != null) {
      numberCombo.setText(a.getNextTransactionNumber());
    }

    pack();
    setMinimumSize(getSize());

    DialogUtils.addBoundsListener(this);
  }