/** * 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); }
/** * Gets the number entered in the form * * @return The number entered in the form */ public String getNumber() { return numberCombo.getText(); }