File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/main/java/io/github/linyimin/plugin/ui Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ public class DatasourceDialog extends JDialog {
3737 private JButton addConfiguration ;
3838 private JButton deleteButton ;
3939
40- private JTextField nameText ;
41- private JComboBox <String > nameComboBox ;
40+ private final JTextField nameText = new JTextField () ;
41+ private final JComboBox <String > nameComboBox = new ComboBox <>() ;
4242
4343 private final Project project ;
4444 private final BackgroundTaskQueue backgroundTaskQueue ;
@@ -55,8 +55,6 @@ public DatasourceDialog(Project project) {
5555 setLocationRelativeTo (null );
5656 getRootPane ().setDefaultButton (saveConfiguration );
5757
58- nameComboBox = new ComboBox <>();
59- nameText = new JTextField ();
6058 namePanel .setLayout (new BorderLayout ());
6159
6260 host .getDocument ().addDocumentListener (new DatasourceChangeListener ());
You can’t perform that action at this time.
0 commit comments