use of jgnash.ui.components.JIntegerField in project jgnash by ccavanaugh.
the class AmortizeDialog method initComponents.
private void initComponents() {
dateField = new DatePanel();
interestField = new JFloatField(0, 3, 2);
loanAmountField = new JFloatField();
loanTermField = new JIntegerField();
payPeriodsField = new JIntegerField();
intPeriodsField = new JIntegerField();
feesField = new JFloatField();
interestAccButton = new JButton(rb.getString("Word.None"));
bankAccButton = new JButton(rb.getString("Word.None"));
feesAccButton = new JButton(rb.getString("Word.None"));
payeeField = new JTextFieldEx();
memoField = new JTextFieldEx();
useDaysButton = new JCheckBox(rb.getString("Button.UseDailyRate"));
daysField = new JFloatField();
cancelButton = new JButton(rb.getString("Button.Cancel"));
okButton = new JButton(rb.getString("Button.Ok"));
}
use of jgnash.ui.components.JIntegerField in project jgnash by ccavanaugh.
the class CurrencyModifyDialog method initComponents.
private void initComponents() {
closeButton = new JButton(rb.getString("Button.Close"));
sourceList = new JList<>();
sourceList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
symbolField = new JTextFieldEx();
descriptionField = new JTextFieldEx();
scaleField = new JIntegerField();
prefixField = new JTextFieldEx();
suffixField = new JTextFieldEx();
clearButton = new JButton(rb.getString("Button.Clear"));
applyButton = new JButton(rb.getString("Button.Apply"));
applyButton.addActionListener(this);
clearButton.addActionListener(this);
closeButton.addActionListener(this);
}
use of jgnash.ui.components.JIntegerField in project jgnash by ccavanaugh.
the class RecurringEntryDialog method createEntryPanel.
private JPanel createEntryPanel() {
FormLayout layout = new FormLayout("right:p, 4dlu, 45dlu", "f:p, 3dlu, f:p");
CellConstraints cc = new CellConstraints();
JPanel p = new JPanel(layout);
autoEnterCheckBox = new JCheckBox(rb.getString("Button.EnterDaysBefore"));
daysBeforeField = new JIntegerField();
lastOccurrenceField = new JDateField();
p.add(autoEnterCheckBox, cc.xy(1, 1));
p.add(daysBeforeField, cc.xy(3, 1));
p.add(new JLabel(rb.getString("Label.LastOccurrence")), cc.xy(1, 3));
p.add(lastOccurrenceField, cc.xy(3, 3));
// clear the date
lastOccurrenceField.setValue(null);
lastOccurrenceField.setEditable(false);
return p;
}
use of jgnash.ui.components.JIntegerField in project jgnash by ccavanaugh.
the class NetworkOptions method initComponents.
private void initComponents() {
proxyCheckBox = new JCheckBox(rb.getString("Button.UseProxy"));
hostField = new JTextFieldEx();
portField = new JIntegerField();
authCheckBox = new JCheckBox(rb.getString("Button.HTTPAuth"));
nameField = new JTextFieldEx();
passwordField = new JPasswordField();
SpinnerNumberModel model = new SpinnerNumberModel(ConnectionFactory.getConnectionTimeout(), ConnectionFactory.MIN_TIMEOUT, ConnectionFactory.MAX_TIMEOUT, 1);
connectionTimeout = new JSpinner(model);
}
use of jgnash.ui.components.JIntegerField in project jgnash by ccavanaugh.
the class AccountPanel method initComponents.
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);
}
Aggregations