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);
}
Aggregations