public String getAccountDescription() { return descriptionField.getText(); }
public void setAccountDescription(final String description) { descriptionField.setText(description); }
public void setAccountNumber(final String accountNumber) { accountNumberField.setText(accountNumber); }
public String getAccountNumber() { return accountNumberField.getText(); }
public void setAccountName(final String name) { nameField.setText(name); }
public String getAccountName() { return nameField.getText(); }
private void initComponents() { accountNumberField = new JTextFieldEx(); accountCodeField = new JIntegerField(); nameField = new JTextFieldEx(); bankIdField = new JTextFieldEx(); nameField.setText(rb.getString("Word.Name")); descriptionField = new JTextFieldEx(); descriptionField.setText(rb.getString("Word.Description")); currencyCombo = new CurrencyComboBox(); securityButton = new JButton(rb.getString("Word.None")); // for preferred width so button does not force a wide layout securityButton.setPreferredSize(new Dimension(20, securityButton.getPreferredSize().height)); accountTypeModel = new DefaultComboBoxModel<>(AccountType.values()); accountTypeModel.removeElement(AccountType.ROOT); accountTypeCombo = new JComboBox<>(accountTypeModel); lockedCheckBox = new JCheckBox(rb.getString("Button.Locked")); placeholderCheckBox = new JCheckBox(rb.getString("Button.PlaceHolder")); hideCheckBox = new JCheckBox(rb.getString("Button.HideAccount")); excludeBudgetCheckBox = new JCheckBox(rb.getString("Button.ExcludeFromBudget")); parentButton = new JButton("Root"); notesArea = new javax.swing.JTextArea(); notesArea.setLineWrap(true); notesArea.setAutoscrolls(false); notesArea.setPreferredSize(new java.awt.Dimension(100, 80)); accountTypeCombo.addActionListener(this); securityButton.addActionListener(this); parentButton.addActionListener(this); }