1 | getRootPane().setDefaultButton(closeButton);↵ | | 1 | getRootPane().setDefaultButton(closeButton);↵
|
2 | getRootPane().registerKeyboardAction(this, "CLOSE",↵ | | 2 | getRootPane().registerKeyboardAction(this, "CLOSE",↵
|
3 | KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0),↵ | | 3 | KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0),↵
|
4 | JComponent.WHEN_IN_FOCUSED_WINDOW);↵ | | 4 | JComponent.WHEN_IN_FOCUSED_WINDOW);↵
|
|
5 | // associate with JavaHelp↵ | | 5 | // associate with JavaHelp↵
|
6 | HelpManager.getInstance().enableHelpOnButton(helpButton,↵ | | 6 | HelpManager.getInstance().enableHelpOnButton(helpButton,↵
|
7 | "extending_columba_2");↵ | | 7 | "organising_and_managing_your_email_5");↵
|
8 | HelpManager.getInstance().enableHelpKey(getRootPane(),↵ | | 8 | HelpManager.getInstance().enableHelpKey(getRootPane(),↵
|
9 | "extending_columba_2");↵ | | 9 | "organising_and_managing_your_email_5");↵
|
10 | }↵ | | 10 | }↵
|
|
11 | private JPanel createPanel() {↵ | | 11 | private JPanel createPanel() {↵
|
12 | JPanel jpanel1 = new JPanel();↵ | | 12 | JPanel jpanel1 = new JPanel();↵
|
13 | FormLayout formlayout1 = new FormLayout(↵ | | 13 | FormLayout formlayout1 = new FormLayout(↵
|
14 | "FILL:DEFAULT:GROW(1.0),3DLU,FILL:DEFAULT:NONE",↵ | | 14 | "FILL:DEFAULT:GROW(1.0),3DLU,FILL:DEFAULT:NONE",↵
|
15 | "CENTER:DEFAULT:NONE,1DLU,FILL:DEFAULT:GROW(1.0),3DLU,CENTER:DEFAULT:NONE");↵ | | 15 | "CENTER:DEFAULT:NONE,1DLU,FILL:DEFAULT:GROW(1.0),3DLU,CENTER:DEFAULT:NONE");↵
|
16 | CellConstraints cc = new CellConstraints();↵ | | 16 | CellConstraints cc = new CellConstraints();↵
|
17 | jpanel1.setBorder(BorderFactory.createEmptyBorder(12, 12, 12, 12));↵ | | 17 | jpanel1.setBorder(BorderFactory.createEmptyBorder(12, 12, 12, 12));↵
|
18 | jpanel1.setLayout(formlayout1);↵ | | 18 | jpanel1.setLayout(formlayout1);↵
|
|
19 | JLabel jlabel1 = new JLabel();↵ | | 19 | JLabel jlabel1 = new JLabel();↵
|
20 | jlabel1.setText("External Tools:");↵ | | 20 | jlabel1.setText("Select Folders:");↵
|
21 | jpanel1.add(jlabel1, cc.xy(1, 1));↵ | | 21 | jpanel1.add(jlabel1, cc.xy(1, 1));↵
|
|
22 | JScrollPane scrollPane = new JScrollPane(list);↵ | | 22 | JScrollPane scrollPane = new JScrollPane(tree);↵
|
23 | scrollPane.setPreferredSize(new Dimension(250, 150));↵ | | 23 | scrollPane.setPreferredSize(new Dimension(350, 250));↵
|
24 | jpanel1.add(scrollPane, cc.xy(1, 3));↵ | | 24 | jpanel1.add(scrollPane, cc.xy(1, 3));↵
|
|
25 | jpanel1.add(createPanel1(), new CellConstraints(3, 3, 1, 1,↵ | | 25 | jpanel1.add(createPanel1(), new CellConstraints(3, 3, 1, 1,↵
|
26 | CellConstraints.DEFAULT, CellConstraints.TOP));↵ | | 26 | CellConstraints.DEFAULT, CellConstraints.TOP));↵
|
|
27 | return jpanel1;↵ | | 27 | return jpanel1;↵
|
28 | }↵ | | 28 | }↵
|
|
29 | private JPanel createPanel1() {↵ | | 29 | private JPanel createPanel1() {↵
|
30 | JPanel jpanel1 = new JPanel();↵ | | 30 | JPanel jpanel1 = new JPanel();↵
|
31 | FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE",↵ | | 31 | FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE",↵
|
32 | "CENTER:DEFAULT:NONE,3DLU,CENTER:DEFAULT:NONE,3DLU,CENTER:DEFAULT:NONE");↵ | | 32 | "CENTER:DEFAULT:NONE,3DLU,CENTER:DEFAULT:NONE,3DLU,CENTER:DEFAULT:NONE");↵
|
33 | CellConstraints cc = new CellConstraints();↵ | | 33 | CellConstraints cc = new CellConstraints();↵
|
34 | jpanel1.setLayout(formlayout1);↵ | | 34 | jpanel1.setLayout(formlayout1);↵
|
|
35 | jpanel1.add(configButton, cc.xy(1, 1));↵ | | 35 | jpanel1.add(exportButton, cc.xy(1, 1));↵
|
|
36 | jpanel1.add(infoButton, cc.xy(1, 3));↵ | | 36 | jpanel1.add(selectAllButton, cc.xy(1, 3));↵
|
|
37 | return jpanel1;↵ | | 37 | return jpanel1;↵
|
38 | }↵ | | 38 | }↵
|
|
39 | private JPanel createBottomPanel() {↵ | | 39 | private JPanel createBottomPanel() {↵
|
40 | JPanel bottomPanel = new JPanel(new BorderLayout());↵ | | 40 | JPanel bottomPanel = new JPanel(new BorderLayout());↵
|
41 | bottomPanel.setBorder(new SingleSideEtchedBorder(SwingConstants.TOP));↵ | | 41 | bottomPanel.setBorder(new SingleSideEtchedBorder(SwingConstants.TOP));↵
|
|
42 | JPanel buttonPanel = new JPanel(new GridLayout(1, 3, 6, 0));↵ | | 42 | JPanel buttonPanel = new JPanel(new GridLayout(1, 3, 6, 0));↵
|
43 | buttonPanel.setBorder(BorderFactory.createEmptyBorder(12, 12, 12, 12));↵ | | 43 | buttonPanel.setBorder(BorderFactory.createEmptyBorder(12, 12, 12, 12));↵
|
|
44 | closeButton = new ButtonWithMnemoni | | 44 | closeButton = new ButtonWithMnemoni
|