OSDN Git Service

i18n, reformat, Java8
[importpicture/importpicture.git] / importPicture / src / osm / jp / gpx / matchtime / gui / ParameterPanelImageFile.java
index 243e142..e672786 100644 (file)
@@ -7,16 +7,16 @@ import javax.swing.JFileChooser;
 
 @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);
@@ -26,10 +26,11 @@ public class ParameterPanelImageFile extends ParameterPanel implements ActionLis
         
         //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());