Search in sources :

Example 1 with JIntegerField

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"));
}
Also used : JIntegerField(jgnash.ui.components.JIntegerField) JCheckBox(javax.swing.JCheckBox) JFloatField(jgnash.ui.components.JFloatField) DatePanel(jgnash.ui.components.DatePanel) JButton(javax.swing.JButton) JTextFieldEx(jgnash.ui.components.JTextFieldEx)

Example 2 with JIntegerField

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);
}
Also used : JIntegerField(jgnash.ui.components.JIntegerField) JButton(javax.swing.JButton) JTextFieldEx(jgnash.ui.components.JTextFieldEx)

Example 3 with JIntegerField

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;
}
Also used : FormLayout(com.jgoodies.forms.layout.FormLayout) JCheckBox(javax.swing.JCheckBox) JIntegerField(jgnash.ui.components.JIntegerField) JDateField(jgnash.ui.components.JDateField) JPanel(javax.swing.JPanel) JLabel(javax.swing.JLabel) CellConstraints(com.jgoodies.forms.layout.CellConstraints)

Example 4 with JIntegerField

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);
}
Also used : JCheckBox(javax.swing.JCheckBox) JIntegerField(jgnash.ui.components.JIntegerField) SpinnerNumberModel(javax.swing.SpinnerNumberModel) JPasswordField(javax.swing.JPasswordField) JSpinner(javax.swing.JSpinner) JTextFieldEx(jgnash.ui.components.JTextFieldEx)

Example 5 with JIntegerField

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);
}
Also used : JIntegerField(jgnash.ui.components.JIntegerField) JCheckBox(javax.swing.JCheckBox) Dimension(java.awt.Dimension) CurrencyComboBox(jgnash.ui.components.CurrencyComboBox) JButton(javax.swing.JButton) JTextFieldEx(jgnash.ui.components.JTextFieldEx) Dimension(java.awt.Dimension) JTextArea(javax.swing.JTextArea)

Aggregations

JIntegerField (jgnash.ui.components.JIntegerField)7 JButton (javax.swing.JButton)5 JTextFieldEx (jgnash.ui.components.JTextFieldEx)5 JCheckBox (javax.swing.JCheckBox)4 Dimension (java.awt.Dimension)2 CurrencyComboBox (jgnash.ui.components.CurrencyComboBox)2 DatePanel (jgnash.ui.components.DatePanel)2 JFloatField (jgnash.ui.components.JFloatField)2 CellConstraints (com.jgoodies.forms.layout.CellConstraints)1 FormLayout (com.jgoodies.forms.layout.FormLayout)1 JLabel (javax.swing.JLabel)1 JPanel (javax.swing.JPanel)1 JPasswordField (javax.swing.JPasswordField)1 JSpinner (javax.swing.JSpinner)1 JTextArea (javax.swing.JTextArea)1 SpinnerNumberModel (javax.swing.SpinnerNumberModel)1 JDateField (jgnash.ui.components.JDateField)1 QuoteSourceComboBox (jgnash.ui.components.QuoteSourceComboBox)1 SecurityComboBox (jgnash.ui.components.SecurityComboBox)1 ChartPanel (org.jfree.chart.ChartPanel)1