OSDN Git Service

AdjustTime
[importpicture/importpicture.git] / src / main / java / osm / jp / gpx / matchtime / gui / restamp / DialogCorectTime.java
index e026cce..89e81c3 100644 (file)
@@ -13,9 +13,9 @@ import javax.swing.JDialog;
 import javax.swing.JLabel;
 import javax.swing.JPanel;
 import javax.swing.JScrollPane;
-import osm.jp.gpx.matchtime.gui.AdjustTime;
-import static osm.jp.gpx.matchtime.gui.AdjustTime.createImageIcon;
-import static osm.jp.gpx.matchtime.gui.AdjustTime.i18n;
+import osm.jp.gpx.matchtime.gui.AdjustTerra;
+import static osm.jp.gpx.matchtime.gui.AdjustTerra.createImageIcon;
+import static osm.jp.gpx.matchtime.gui.AdjustTerra.i18n;
 import osm.jp.gpx.matchtime.gui.PanelAction;
 import osm.jp.gpx.matchtime.gui.ParameterPanelTime;
 
@@ -24,7 +24,8 @@ import osm.jp.gpx.matchtime.gui.ParameterPanelTime;
  * @author yuu
  */
 public class DialogCorectTime extends JDialog implements PanelAction {
-    public JPanel mainPanel;
+       private static final long serialVersionUID = -3573167730473345932L;
+       public JPanel mainPanel;
     ParameterPanelTime arg_basetime;   // 開始画像の基準時刻(parent)
     ParameterPanelTime basetime;       // 開始画像の基準時刻(tempolarry)
     java.awt.Button closeButton;
@@ -39,9 +40,8 @@ public class DialogCorectTime extends JDialog implements PanelAction {
      * @param arg3_basetime       開始画像の基準時刻:
      * @param owner
      */
-    @SuppressWarnings("OverridableMethodCallInConstructor")
     public DialogCorectTime(ParameterPanelTime arg3_basetime, Window owner) {
-        super(owner, AdjustTime.i18n.getString("tab.restamp.300"), Dialog.ModalityType.DOCUMENT_MODAL);
+        super(owner, AdjustTerra.i18n.getString("tab.restamp.300"), Dialog.ModalityType.DOCUMENT_MODAL);
         this.arg_basetime = arg3_basetime;
         
         // INIT_CONTROLS
@@ -87,11 +87,11 @@ public class DialogCorectTime extends JDialog implements PanelAction {
         // 画像ファイル選択ダイアログを起動するボタン
         JPanel buttonPanel = new JPanel();
         buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.X_AXIS));
-        expandButton = new JButton(createImageIcon(java.util.ResourceBundle.getBundle("i18n_ja_JP").getString("IMAGES/FIT16.GIF")));
+        expandButton = new JButton(createImageIcon("/images/Fit16.gif"));
         buttonPanel.add(expandButton);
-        zoomInButton = new JButton(createImageIcon("images/ZoomIn16.gif"));
+        zoomInButton = new JButton(createImageIcon("/images/ZoomIn16.gif"));
         buttonPanel.add(zoomInButton);
-        zoomOutButton = new JButton(createImageIcon("images/ZoomOut16.gif"));
+        zoomOutButton = new JButton(createImageIcon("/images/ZoomOut16.gif"));
         buttonPanel.add(zoomOutButton);
         centerPanel.add(buttonPanel, BorderLayout.SOUTH);
         
@@ -152,7 +152,6 @@ public class DialogCorectTime extends JDialog implements PanelAction {
      * 選択された画像ファイルを表示する
      * 基準画像ボタンがクリックされた時に、基準時刻フィールドに基準画像の作成日時を設定する。
      */
-    @SuppressWarnings("UseSpecificCatch")
     public void imageView_Action() {
         try {
             String path = basetime.getImageFile().getImageFile().getAbsolutePath();
@@ -214,7 +213,6 @@ public class DialogCorectTime extends JDialog implements PanelAction {
     }
 
     @Override
-    @SuppressWarnings("empty-statement")
     public void openAction() {
        ; // 何もしない
     }