- @SuppressWarnings("override")
- public void actionPerformed(ActionEvent e) {
- //Set up the file chooser.
- File sdir = new File(paramDir.getText());
- System.out.println(sdir.toPath());
- if (sdir.isDirectory()) {
- fc = new JFileChooser(sdir);
- }
- else {
- fc = new JFileChooser();
- }
+ class SelectButtonAction implements java.awt.event.ActionListener
+ {
+ @SuppressWarnings("override")
+ public void actionPerformed(ActionEvent e) {
+ //Set up the file chooser.
+ File sdir = new File(paramDir.getText());
+ System.out.println(sdir.toPath());
+ if (sdir.isDirectory()) {
+ fc = new JFileChooser(sdir);
+ }
+ else {
+ fc = new JFileChooser();
+ }