@SuppressWarnings("serial")
public class ParameterPanelImageFile extends ParameterPanel implements ActionListener {
- JFileChooser fc;
- JButton openButton;
- ParameterPanelFolder paramDir;
+ JFileChooser fc;
+ JButton openButton;
+ ParameterPanelFolder paramDir;
- public ParameterPanelImageFile(String label, String text, ParameterPanelFolder paramDir) {
- super(label, text);
+ @SuppressWarnings("OverridableMethodCallInConstructor")
+ public ParameterPanelImageFile(String label, String text, ParameterPanelFolder paramDir) {
+ super(label, text);
- //Create the open button. We use the image from the JLF
- //Graphics Repository (but we extracted it from the jar).
- openButton = new JButton("選択...");
+ // "選択..."
+ openButton = new JButton(i18n.getString("button.select"));
/*
openButton.addActionListener(this);
//Create a file chooser
this.paramDir = paramDir;
- }
+ }
- public void actionPerformed(ActionEvent e) {
- /*
+ @SuppressWarnings("override")
+ public void actionPerformed(ActionEvent e) {
+ /*
//Set up the file chooser.
File sdir = new File(paramDir.getText());
System.out.println(sdir.toPath());