1 | protected JComponent createComponent() {↵ | | 1 | protected JComponent createComponent() {↵
|
2 | JComponent component = new JPanel();↵ | | 2 | JComponent component = new JPanel();↵
|
3 | component.setLayout(new BoxLayout(component, BoxLayout.Y_AXIS));↵ | | 3 | component.setLayout(new BoxLayout(component, BoxLayout.Y_AXIS));↵
|
4 | component.add(new MultiLineLabel(AddressbookResourceLoader.getString(↵ | | 4 | component.add(new MultiLineLabel(MailResourceLoader.getString(↵
|
5 | "dialog", "addressbookimport", "location_text")));↵ | | 5 | "dialog", "mailboximport", "location_text")));↵
|
6 | component.add(Box.createVerticalStrut(40));↵ | | 6 | component.add(Box.createVerticalStrut(40));↵
|
|
7 | WizardTextField middlePanel = new WizardTextField();↵ | | 7 | WizardTextField middlePanel = new WizardTextField();↵
|
|
8 | LabelWithMnemonic sourceLabel = new LabelWithMnemonic(AddressbookResourceLoader.getString(↵ | | 8 | LabelWithMnemonic sourceLabel = new LabelWithMnemonic(MailResourceLoader.getString(↵
|
9 | "dialog", "addressbookimport", "source"));↵ | | 9 | "dialog", "mailboximport", "source"));↵
|
10 | middlePanel.addLabel(sourceLabel);↵ | | 10 | middlePanel.addLabel(sourceLabel);↵
|
11 | sourceButton = new JButton("...");↵ | | 11 | sourceButton = new JButton("...");↵
|
12 | sourceButton.addActionListener(this);↵ | | 12 | source↵
|
13 | sourceLabel.setLabelFor(sourceButton↵ | | 13 | Label.setLabelFor(sourceButton);↵
|
14 | );↵ | | 14 | sourceButton.addActionListener(this);↵
|
15 | middlePanel.addTextField(sourceButton);↵ | | 15 | middlePanel.addTextField(sourceButton);↵
|
16 | middlePanel.addExample(new JLabel());↵ | | 16 | middlePanel.addExample(new JLabel());↵
|
|
17 | LabelWithMnemonic destinationLabel = new LabelWithMnemonic(AddressbookResourceLoader.getString(↵ | | 17 | LabelWithMnemonic destinationLabel = new LabelWithMnemonic(MailResourceLoader.getString(↵
|
18 | "dialog", "addressbookimport", "destination"));↵ | | 18 | "dialog", "mailboximport", "destination"));↵
|
19 | middlePanel.addLabel(destinationLabel);↵ | | 19 | middlePanel.addLabel(destinationLabel);↵
|
20 | destinationButton = new JButton("...");↵ | | 20 | destinationButton = new JButton("...");↵
|
21 | destinationButton.addActionListener(this);↵ | | 21 | destination↵
|
22 | destinationLabel.setLabelFor(destinationButton↵ | | 22 | Label.setLabelFor(destinationButton);↵
|
23 | );↵ | | 23 | destinationButton.addActionListener(this);↵
|
24 | middlePanel.addTextField(destinationButton);↵ | | 24 | middlePanel.addTextField(destinationButton);↵
|
25 | middlePanel.addExample(new JLabel(AddressbookResourceLoader.getString(↵ | | 25 | middlePanel.addExample(new JLabel(MailResourceLoader.getString(↵
|
26 | "dialog", "addressbookimport", "explanation")));↵ | | 26 | "dialog", "mailboximport", "explanation")));↵
|
27 | component.add(middlePanel);↵ | | 27 | component.add(middlePanel);↵
|
|
28 | return component;↵ | | 28 | return component;↵
|
29 | | | 29 |
|