Search in sources :

Example 1 with DataStoreTypeCombo

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

the class NewFileOne method initComponents.

private void initComponents() {
    helpPane = new JEditorPane();
    helpPane.setEditable(false);
    helpPane.setEditorKit(new StyledEditorKit());
    helpPane.setBackground(getBackground());
    helpPane.setText(TextResource.getString("NewFileOne.txt"));
    dbNameButton = new JButton("...");
    dbNameButton.addActionListener(this);
    overwriteLabel = new JLabel(rb.getString("Message.OverwriteDB"));
    overwriteLabel.setIcon(UIManager.getIcon("OptionPane.warningIcon"));
    overwriteLabel.setFont(overwriteLabel.getFont().deriveFont(Font.ITALIC));
    typeCombo = new DataStoreTypeCombo();
    typeCombo.addActionListener(this);
    dbNameField.addCaretListener(e -> checkForOverwrite());
    typeCombo.setSelectedItem(DataStoreType.BINARY_XSTREAM);
}
Also used : StyledEditorKit(javax.swing.text.StyledEditorKit) JEditorPane(javax.swing.JEditorPane) JButton(javax.swing.JButton) JLabel(javax.swing.JLabel) DataStoreTypeCombo(jgnash.ui.components.DataStoreTypeCombo)

Aggregations

JButton (javax.swing.JButton)1 JEditorPane (javax.swing.JEditorPane)1 JLabel (javax.swing.JLabel)1 StyledEditorKit (javax.swing.text.StyledEditorKit)1 DataStoreTypeCombo (jgnash.ui.components.DataStoreTypeCombo)1