use of javax.swing.JTextPane in project jgnash by ccavanaugh.
the class ImportOne method initComponents.
private void initComponents() {
accountCombo = new AccountListComboBox();
helpPane = new JTextPane();
helpPane.setEditable(false);
helpPane.setEditorKit(new StyledEditorKit());
helpPane.setBackground(getBackground());
helpPane.setText(TextResource.getString("ImportOne.txt"));
}
use of javax.swing.JTextPane in project jgnash by ccavanaugh.
the class PartialOne method initComponents.
private void initComponents() {
accountCombo = new AccountListComboBox();
helpPane = new JTextPane();
helpPane.setEditable(false);
helpPane.setEditorKit(new StyledEditorKit());
helpPane.setBackground(getBackground());
helpPane.setText(TextResource.getString("QifOne.txt"));
/* Create the combo for date format selection */
dateFormatCombo = new JComboBox<>(DateFormat.values());
dateFormatCombo.addActionListener(this);
dateFormatCombo.setSelectedIndex(pref.getInt(DATE_FORMAT, 0));
accountCombo.addActionListener(this);
/* Try a set the comboBox to the last selected account */
String lastAccount = pref.get(LAST_ACCOUNT, "");
final Engine engine = EngineFactory.getEngine(EngineFactory.DEFAULT);
Objects.requireNonNull(engine);
final Account last = engine.getAccountByUuid(lastAccount);
if (last != null) {
setAccount(last);
}
}
Aggregations