1 | ();↵ | | 1 | ();↵
|
2 | ↵ | | 2 | ↵
|
3 | JPanel panelMain = new JPanel(layout);↵ | | 3 | JPanel panelMain = new JPanel(layout);↵
|
4 | panelMain.setBorder(BorderFactory.createEmptyBorder(12,12,12,12));↵ | | 4 | panelMain.setBorder(BorderFactory.createEmptyBorder(12,12,12,12));↵
|
5 | ↵ | | 5 | ↵
|
|
6 | panelMain.add(createInputPanel(), cc.xy(1,1));↵ | | 6 | panelMain.add(createInputPanel(),cc.xy(1,1));↵
|
7 | panelMain.add(createButtonPanel(),cc.xywh(3,1,1,3));↵ | | 7 | panelMain.add(createButtonPanel(),cc.xywh(3,1,1,3));↵
|
8 | panelMain.add(createOptionPanel(),cc.xy(1,3));↵ | | 8 | panelMain.add(createOptionPanel(),cc.xy(1,3));↵
|
9 | ↵ | | 9 | ↵
|
10 | getContentPane().add(panelMain,BorderLayout.SOUTH);↵ | | 10 | getContentPane().add(panelMain,BorderLayout.SOUTH);↵
|
11 | getContentPane().add(↵ | | 11 | getContentPane().add(↵
|
12 | new DialogHeaderPanel(GlobalResourceLoader.getString(RESOURCE_PATH,↵ | | 12 | new DialogHeaderPanel(GlobalResourceLoader.getString(RESOURCE_PATH,↵
|
13 | "findreplace", "header_title"), GlobalResourceLoader↵ | | 13 | "find", "header_title"), GlobalResourceLoader↵
|
14 | .getString(RESOURCE_PATH, "findreplace", "header_description"),↵ | | 14 | .getString(RESOURCE_PATH, "find", "header_description"),↵
|
15 | ImageLoader.getIcon(IconKeys.SEARCH)),↵ | | 15 | ImageLoader.getIcon(IconKeys.SEARCH)),↵
|
16 | BorderLayout.NORTH);↵ | | 16 | BorderLayout.NORTH);↵
|
17 | }↵ | | 17 | }↵
|
| | | 18 | ↵
|
18 | private JPanel createInputPanel(){↵ | | 19 | private JPanel createInputPanel(){↵
|
19 | FormLayout layout = new FormLayout("left:pref, 6dlu, left:pref",↵ | | 20 | FormLayout layout = new FormLayout("left:pref, 6dlu, pref",↵
|
20 | "pref, 3dlu, pref");↵ | | 21 | "pref");↵
|
21 | CellConstraints cc = new CellConstraints();↵ | | 22 | CellConstraints cc = new CellConstraints();↵
|
22 | JPanel inputPanel = new JPanel(layout);↵ | | 23 | JPanel inputPanel = new JPanel(layout);↵
|
23 | ↵ | | 24 | ↵
|
24 | inputPanel.add(findLabel,cc.xy(1,1));↵ | | 25 | inputPanel.add(findLabel,cc.xy(1,1));↵
|
25 | findLabel.setLabelFor(findTextField);↵ | | 26 | findLabel.setLabelFor(findTextField);↵
|
26 | inputPanel.add(findTextField,cc.xy(3,1)) | | 27 | inputPanel.add(findTextField,cc.xy(3,1))
|