Search in sources :

Example 1 with QuoteSourceComboBox

use of jgnash.ui.components.QuoteSourceComboBox in project jgnash by ccavanaugh.

the class SecurityModifyPanel method initComponents.

private void initComponents() {
    securityList = new JList<>();
    securityList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    symbolField = new JTextFieldEx();
    descriptionField = new JTextFieldEx();
    scaleField = new JIntegerField();
    scaleField.setToolTipText(rb.getString("ToolTip.Scale"));
    isinField = new JTextFieldEx();
    isinField.setToolTipText(rb.getString("ToolTip.ISIN"));
    sourceComboBox = new QuoteSourceComboBox();
    currencyCombo = new CurrencyComboBox();
    currencyCombo.setSelectedNode(engine.getDefaultCurrency());
    newButton = new JButton(rb.getString("Button.New"));
    deleteButton = new JButton(rb.getString("Button.Delete"));
    cancelButton = new JButton(rb.getString("Button.Cancel"));
    applyButton = new JButton(rb.getString("Button.Apply"));
    applyButton.addActionListener(this);
    cancelButton.addActionListener(this);
    deleteButton.addActionListener(this);
    newButton.addActionListener(this);
    buildLists();
}
Also used : JIntegerField(jgnash.ui.components.JIntegerField) CurrencyComboBox(jgnash.ui.components.CurrencyComboBox) JButton(javax.swing.JButton) JTextFieldEx(jgnash.ui.components.JTextFieldEx) QuoteSourceComboBox(jgnash.ui.components.QuoteSourceComboBox)

Aggregations

JButton (javax.swing.JButton)1 CurrencyComboBox (jgnash.ui.components.CurrencyComboBox)1 JIntegerField (jgnash.ui.components.JIntegerField)1 JTextFieldEx (jgnash.ui.components.JTextFieldEx)1 QuoteSourceComboBox (jgnash.ui.components.QuoteSourceComboBox)1