1 | FilePanel(String title) {↵ | | 1 | ReportFilePanel(String title) {↵
|
2 | this.title = title;↵ | | 2 | this.title = title;↵
|
3 | init();↵ | | 3 | init();↵
|
4 | }↵ | | 4 | }↵
|
|
5 | public FilePanel(String title, String filetype) {↵ | | 5 | public ReportFilePanel(String title, String filetype) {↵
|
6 | this(title);↵ | | 6 | this(title);↵
|
7 | this.filetype = filetype;↵ | | 7 | this.filetype = filetype;↵
|
8 | }↵ | | 8 | }↵
|
|
9 | /**↵ | | 9 | /**↵
|
10 | * Constructor for the FilePanel object.↵ | | 10 | * Constructor for the FilePanel object.↵
|
11 | */↵ | | 11 | */↵
|
12 | public FilePanel(ChangeListener l, String title) {↵ | | 12 | public ReportFilePanel(ChangeListener l, String title) {↵
|
13 | this.title = title;↵ | | 13 | this.title = title;↵
|
14 | init();↵ | | 14 | init();↵
|
15 | listeners.add(l);↵ | | 15 | listeners.add(l);↵
|
16 | }↵ | | 16 | }↵
|
|
17 | public void addChangeListener(ChangeListener l) {↵ | | 17 | public void addChangeListener(ChangeListener l) {↵
|
18 | listeners.add(l);↵ | | 18 | listeners.add(l);↵
|
19 | }↵ | | 19 | }↵
|
|
20 | private void init() {↵ | | 20 | private void init() {↵
|
21 | setBorder(BorderFactory.createTitledBorder(title));↵ | | 21 | setBorder(BorderFactory.createTitledBorder(title));↵
|
22 | add(label);↵ | | 22 | add(label);↵
|
23 | add(Box.createHorizontalStrut(5));↵ | | 23 | add(Box.createHorizontalStrut(5));↵
|
24 | add(filename);↵ | | 24 | add(filename);↵
|
25 | add(Box.createHorizontalStrut(5));↵ | | 25 | add(Box.createHorizontalStrut(5));↵
|
26 | filename.addActionListener(this);↵ | | 26 | filename.addActionListener(this);↵
|
27 | add(browse);↵ | | 27 | add(browse);↵
|
28 | browse.setActionComman | | 28 | browse.setActionComman
|