• R/O
  • HTTP
  • SSH
  • HTTPS

importpicture: Commit


Commit MetaInfo

Revision959d9bab05bcfcc206dcfa743640b5947d025b60 (tree)
Time2019-10-09 19:37:46
Authorhaya4 <hayashi.yuu@gmai...>
Commiterhaya4

Log Message

対象フォルダが入力されたら次のパネルを有効にする

Change Summary

Incremental Difference

--- a/src/osm/jp/gpx/matchtime/gui/AdjustTime.java
+++ b/src/osm/jp/gpx/matchtime/gui/AdjustTime.java
@@ -276,7 +276,11 @@ public class AdjustTime extends JFrame
276276
277277 // 基準時刻:
278278 String str310 = String.format("  %s: ", i18n.getString("label.310"));
279- arg3_basetime = new ParameterPanel(str310, ImportPicture.TIME_FORMAT_STRING);
279+ arg3_basetime = new ParameterPanelTime(
280+ str310,
281+ ImportPicture.TIME_FORMAT_STRING,
282+ arg2_baseTimeImg
283+ );
280284 argsPanel.add(arg3_basetime);
281285 card.mainPanel.add(argsPanel, BorderLayout.NORTH);
282286
@@ -463,7 +467,7 @@ public class AdjustTime extends JFrame
463467 openButton.addActionListener(lSymAction);
464468 zoomOutButton.addActionListener(lSymAction);
465469 zoomInButton.addActionListener(lSymAction);
466- arg2_baseTimeImg.argField.addActionListener(lSymAction);
470+ //arg2_baseTimeImg.argField.addActionListener(lSymAction);
467471 arg2_baseTimeImg.openButton.addActionListener(lSymAction);
468472 doButton.addActionListener(lSymAction);
469473 outputIMG_all.addActionListener(lSymAction);
--- a/src/osm/jp/gpx/matchtime/gui/PanelAction.java
+++ b/src/osm/jp/gpx/matchtime/gui/PanelAction.java
@@ -2,4 +2,10 @@ package osm.jp.gpx.matchtime.gui;
22
33 public interface PanelAction {
44 void openAction();
5+
6+ /**
7+ * 入力条件が満たされているかどうか
8+ * @return
9+ */
10+ boolean isEnable();
511 }
--- a/src/osm/jp/gpx/matchtime/gui/ParamAction.java
+++ b/src/osm/jp/gpx/matchtime/gui/ParamAction.java
@@ -2,4 +2,6 @@ package osm.jp.gpx.matchtime.gui;
22
33 public interface ParamAction {
44 boolean isEnable();
5+ void setText(String text);
6+ String getText();
57 }
--- /dev/null
+++ b/src/osm/jp/gpx/matchtime/gui/ParameterData.java
@@ -0,0 +1,23 @@
1+package osm.jp.gpx.matchtime.gui;
2+
3+import java.util.Observable;
4+
5+public class ParameterData extends Observable {
6+ String content = "";
7+
8+ String getContent() {
9+ return content;
10+ }
11+
12+ void setContent(String content) {
13+ this.content = content;
14+ setChanged();
15+ super.notifyObservers(content);
16+ clearChanged();
17+ }
18+
19+ @Override
20+ public void notifyObservers(Object arg) {
21+ setContent(arg.toString());
22+ }
23+}
--- a/src/osm/jp/gpx/matchtime/gui/ParameterPanel.java
+++ b/src/osm/jp/gpx/matchtime/gui/ParameterPanel.java
@@ -1,7 +1,6 @@
11 package osm.jp.gpx.matchtime.gui;
22
33 import java.awt.Dimension;
4-import java.awt.event.ActionListener;
54 import java.util.ResourceBundle;
65
76 import javax.swing.BoxLayout;
@@ -13,7 +12,7 @@ import javax.swing.JTextField;
1312 * パラメータを設定する為のパネル。
1413 * この1インスタンスで、1パラメータをあらわす。
1514 */
16-public abstract class ParameterPanel extends JPanel implements ActionListener,ParamAction {
15+public abstract class ParameterPanel extends JPanel implements ParamAction {
1716 private static final long serialVersionUID = 4629824800747170556L;
1817 public JTextField argField;
1918 public JLabel argLabel;
@@ -43,11 +42,12 @@ public abstract class ParameterPanel extends JPanel implements ActionListener,Pa
4342 return this;
4443 }
4544
46- public ParameterPanel setText(String text) {
45+ @Override
46+ public void setText(String text) {
4747 this.argField.setText(text);
48- return this;
4948 }
5049
50+ @Override
5151 public String getText() {
5252 return this.argField.getText();
5353 }
--- a/src/osm/jp/gpx/matchtime/gui/ParameterPanelFolder.java
+++ b/src/osm/jp/gpx/matchtime/gui/ParameterPanelFolder.java
@@ -1,13 +1,14 @@
11 package osm.jp.gpx.matchtime.gui;
22
33 import java.awt.event.ActionEvent;
4+import java.awt.event.ActionListener;
45 import java.io.File;
56 import java.io.FileNotFoundException;
67 import javax.swing.JButton;
78 import javax.swing.JFileChooser;
89
910 @SuppressWarnings("serial")
10-public class ParameterPanelFolder extends ParameterPanel
11+public class ParameterPanelFolder extends ParameterPanel implements ActionListener
1112 {
1213 JFileChooser fc;
1314 JButton openButton;
@@ -37,7 +38,7 @@ public class ParameterPanelFolder extends ParameterPanel
3738 super.setEnabled(f);
3839 openButton.setEnabled(f);
3940 }
40-
41+
4142 public File getDirectory() throws FileNotFoundException {
4243 String path = this.argField.getText();
4344 if (path == null) {
@@ -79,8 +80,22 @@ public class ParameterPanelFolder extends ParameterPanel
7980 }
8081 }
8182
83+ /**
84+ * 有効な値が設定されているかどうか
85+ * @return
86+ */
8287 @Override
8388 public boolean isEnable() {
84- throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
89+ String text = this.argField.getText();
90+ if (text == null) {
91+ return false;
92+ }
93+ try {
94+ File dir = new File(text);
95+ return (dir.exists() && dir.isDirectory());
96+ }
97+ catch (Exception e) {
98+ return false;
99+ }
85100 }
86101 }
\ No newline at end of file
--- a/src/osm/jp/gpx/matchtime/gui/ParameterPanelGpx.java
+++ b/src/osm/jp/gpx/matchtime/gui/ParameterPanelGpx.java
@@ -54,4 +54,13 @@ public class ParameterPanelGpx extends ParameterPanel implements ActionListener
5454 }
5555 }
5656 }
57+
58+ /**
59+ * このフィールドに有効な値が設定されているかどうか
60+ * @return
61+ */
62+ @Override
63+ public boolean isEnable() {
64+ throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
65+ }
5766 }
--- a/src/osm/jp/gpx/matchtime/gui/ParameterPanelImageFile.java
+++ b/src/osm/jp/gpx/matchtime/gui/ParameterPanelImageFile.java
@@ -1,12 +1,14 @@
11 package osm.jp.gpx.matchtime.gui;
22
33 import java.awt.event.ActionEvent;
4+import java.awt.event.ActionListener;
45 import java.io.File;
6+import java.io.FileNotFoundException;
57 import javax.swing.JButton;
68 import javax.swing.JFileChooser;
79
810 @SuppressWarnings("serial")
9-public class ParameterPanelImageFile extends ParameterPanel {
11+public class ParameterPanelImageFile extends ParameterPanel implements ActionListener {
1012 JFileChooser fc;
1113 public JButton openButton;
1214 public ParameterPanelFolder paramDir;
@@ -66,6 +68,24 @@ public class ParameterPanelImageFile extends ParameterPanel {
6668 */
6769 @Override
6870 public boolean isEnable() {
69- throw new UnsupportedOperationException("Not supported yet.");
71+ if (this.paramDir.isEnable()) {
72+ String text = this.argField.getText();
73+ if (text != null) {
74+ try {
75+ File dir = this.paramDir.getDirectory();
76+ File file = new File(dir, text);
77+ if (file.exists() && file.isFile()) {
78+ String name = file.getName().toUpperCase();
79+ if (name.endsWith(".JPG") || name.endsWith(".JPEG")) {
80+ return true;
81+ }
82+ }
83+ }
84+ catch (FileNotFoundException e) {
85+ return false;
86+ }
87+ }
88+ }
89+ return false;
7090 }
7191 }
\ No newline at end of file
--- a/src/osm/jp/gpx/matchtime/gui/ParameterPanelTime.java
+++ b/src/osm/jp/gpx/matchtime/gui/ParameterPanelTime.java
@@ -2,33 +2,47 @@ package osm.jp.gpx.matchtime.gui;
22
33 import java.awt.event.ActionEvent;
44 import java.awt.event.ActionListener;
5-import javax.swing.JButton;
6-import javax.swing.JFileChooser;
5+import java.text.DateFormat;
6+import java.text.SimpleDateFormat;
77
8-@SuppressWarnings("serial")
8+/**
9+ * パラメータを設定する為のパネル。
10+ * この1インスタンスで、1パラメータをあらわす。
11+ */
912 public class ParameterPanelTime extends ParameterPanel implements ActionListener {
10- JFileChooser fc;
11- public JButton doButton;
13+ SimpleDateFormat sdf = (SimpleDateFormat)DateFormat.getDateTimeInstance();
14+ ParameterPanelImageFile imageFile;
1215
13- @SuppressWarnings({"OverridableMethodCallInConstructor", "LeakingThisInConstructor"})
14- public ParameterPanelTime(String label, String text) {
16+ @SuppressWarnings("OverridableMethodCallInConstructor")
17+ public ParameterPanelTime(
18+ String label,
19+ String text,
20+ ParameterPanelImageFile imageFile
21+ ) {
1522 super(label, text);
16-
17- doButton = new JButton("処理実行", AdjustTime.createImageIcon("images/media_playback_start.png"));
18- doButton.addActionListener(this);
19- this.add(doButton);
23+ this.imageFile = imageFile;
2024 }
21-
25+
2226 @Override
23- public void actionPerformed(ActionEvent e) {
27+ public void actionPerformed(ActionEvent arg0) {
28+ throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
2429 }
2530
26- /**
27- * このフィールドに有効な値が設定されているかどうか
28- * @return
29- */
3031 @Override
3132 public boolean isEnable() {
32- throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
33+ if (this.imageFile.isEnable()) {
34+ String text = this.argField.getText();
35+ if (text != null) {
36+ try {
37+ sdf.applyPattern("yyyy.MM.dd HH:mm:ss z");
38+ sdf.parse(text);
39+ return true;
40+ }
41+ catch (Exception e) {
42+ return false;
43+ }
44+ }
45+ }
46+ return false;
3347 }
34-}
\ No newline at end of file
48+}
--- /dev/null
+++ b/src/osm/jp/gpx/matchtime/gui/SimpleDocumentListener.java
@@ -0,0 +1,25 @@
1+package osm.jp.gpx.matchtime.gui;
2+
3+import javax.swing.event.DocumentEvent;
4+import javax.swing.event.DocumentListener;
5+
6+@FunctionalInterface
7+public interface SimpleDocumentListener extends DocumentListener {
8+ void update(DocumentEvent e);
9+
10+ @Override
11+ default void insertUpdate(DocumentEvent e) {
12+ update(e);
13+ }
14+
15+ @Override
16+ default void removeUpdate(DocumentEvent e) {
17+ update(e);
18+ }
19+
20+ @Override
21+ default void changedUpdate(DocumentEvent e) {
22+ update(e);
23+ }
24+}
25+
--- a/src/osm/jp/gpx/matchtime/gui/restamp/CardCorectTime.java
+++ b/src/osm/jp/gpx/matchtime/gui/restamp/CardCorectTime.java
@@ -14,22 +14,22 @@ import static osm.jp.gpx.matchtime.gui.AdjustTime.createImageIcon;
1414 import static osm.jp.gpx.matchtime.gui.AdjustTime.i18n;
1515 import osm.jp.gpx.matchtime.gui.Card;
1616 import osm.jp.gpx.matchtime.gui.PanelAction;
17-import osm.jp.gpx.matchtime.gui.ParameterPanel;
17+import osm.jp.gpx.matchtime.gui.ParameterPanelTime;
1818
1919 /**
2020 * [基準画像(開始)]選択パネル
2121 * @author yuu
2222 */
23-public class CardCorectTime extends Card {
23+public class CardCorectTime extends Card implements PanelAction {
2424 JPanel argsPanel; // パラメータ設定パネル (上部)
25- ParameterPanel arg3_basetime; // 基準時刻:
25+ ParameterPanelTime arg_basetime; // 開始画像の基準時刻:
2626
2727 /**
2828 * コンストラクタ
2929 * @param tabbe parent panel
30- * @param arg3_basetime
30+ * @param arg3_basetime 開始画像の基準時刻:
3131 */
32- public CardCorectTime(JTabbedPane tabbe, ParameterPanel arg3_basetime) {
32+ public CardCorectTime(JTabbedPane tabbe, ParameterPanelTime arg3_basetime) {
3333 super(tabbe, AdjustTime.i18n.getString("tab.restamp.300"), 1, 3);
3434
3535 argsPanel = new JPanel();
@@ -46,7 +46,7 @@ public class CardCorectTime extends Card {
4646 argsPanel.add(label3);
4747
4848 // 基準時刻:
49- this.arg3_basetime = arg3_basetime;
49+ this.arg_basetime = arg3_basetime;
5050 arg3_basetime.setLabel(String.format("  %s: ", i18n.getString("label.310")));
5151 arg3_basetime.setLabel(ImportPicture.TIME_FORMAT_STRING);
5252 argsPanel.add(arg3_basetime);
@@ -68,4 +68,19 @@ public class CardCorectTime extends Card {
6868 buttonPanel.add(zoomOutButton);
6969 this.mainPanel.add(buttonPanel, BorderLayout.SOUTH);
7070 }
71+
72+ @Override
73+ @SuppressWarnings("empty-statement")
74+ public void openAction() {
75+ ; // 何もしない
76+ }
77+
78+ /**
79+ * 入力条件が満たされているかどうか
80+ * @return
81+ */
82+ @Override
83+ public boolean isEnable() {
84+ return this.arg_basetime.isEnable();
85+ }
7186 }
--- a/src/osm/jp/gpx/matchtime/gui/restamp/CardFirstFile.java
+++ b/src/osm/jp/gpx/matchtime/gui/restamp/CardFirstFile.java
@@ -19,17 +19,19 @@ import osm.jp.gpx.matchtime.gui.ParameterPanelImageFile;
1919 */
2020 public class CardFirstFile extends Card implements PanelAction {
2121 JPanel argsPanel; // パラメータ設定パネル (上部)
22- ParameterPanelImageFile arg2_baseTimeImg;
23-
22+ ParameterPanelImageFile arg_baseTimeImg;
23+
2424 /**
2525 * コンストラクタ
2626 * @param tabbe parent panel
2727 * @param arg2_baseTimeImg
2828 */
29- public CardFirstFile(JTabbedPane tabbe, ParameterPanelImageFile arg2_baseTimeImg) {
29+ public CardFirstFile(
30+ JTabbedPane tabbe,
31+ ParameterPanelImageFile arg2_baseTimeImg
32+ ) {
3033 super(tabbe, AdjustTime.i18n.getString("tab.restamp.200"), 0, 2);
31- this.arg2_baseTimeImg = arg2_baseTimeImg;
32-
34+ this.arg_baseTimeImg = arg2_baseTimeImg;
3335 this.mainPanel.add(new JLabel(i18n.getString("label.200")), BorderLayout.NORTH);
3436
3537 argsPanel = new JPanel();
@@ -38,15 +40,18 @@ public class CardFirstFile extends Card implements PanelAction {
3840 this.mainPanel.add(argsPanel, BorderLayout.CENTER);
3941 }
4042
43+ /**
44+ * 入力条件が満たされているかどうか
45+ * @return
46+ */
47+ @Override
48+ public boolean isEnable() {
49+ return this.arg_baseTimeImg.isEnable();
50+ }
51+
4152 @Override
53+ @SuppressWarnings("empty-statement")
4254 public void openAction() {
43- try {
44- File dir = arg2_baseTimeImg.paramDir.getDirectory();
45- } catch (FileNotFoundException ex) {
46- arg2_baseTimeImg.setText(null);
47- }
48- if (arg2_baseTimeImg.getText() == null) {
49- }
50- throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
55+ ; // 何もしない
5156 }
5257 }
--- a/src/osm/jp/gpx/matchtime/gui/restamp/CardSourceFolder.java
+++ b/src/osm/jp/gpx/matchtime/gui/restamp/CardSourceFolder.java
@@ -16,22 +16,33 @@ import osm.jp.gpx.matchtime.gui.ParameterPanelFolder;
1616 * @author yuu
1717 */
1818 public class CardSourceFolder extends Card implements PanelAction {
19+ ParameterPanelFolder arg_srcFolder; // 対象フォルダ
1920
2021 /**
2122 * コンストラクタ
2223 * @param tabbe parent panel
23- * @param arg1_srcFolder 対象フォルダ
24+ * @param arg_srcFolder 対象フォルダ
2425 */
25- public CardSourceFolder(JTabbedPane tabbe, ParameterPanelFolder arg1_srcFolder) {
26+ public CardSourceFolder(JTabbedPane tabbe, ParameterPanelFolder arg_srcFolder) {
2627 super(tabbe, AdjustTime.i18n.getString("tab.100"), -1, 1);
28+ this.arg_srcFolder = arg_srcFolder;
2729 this.mainPanel.add(new JLabel(i18n.getString("label.100")), BorderLayout.NORTH);
2830
2931 JPanel argsPanel = new JPanel(); // パラメータ設定パネル (上部)
3032 argsPanel.setLayout(new BoxLayout(argsPanel, BoxLayout.Y_AXIS));
31- argsPanel.add(arg1_srcFolder);
33+ argsPanel.add(arg_srcFolder);
3234 this.mainPanel.add(argsPanel, BorderLayout.CENTER);
3335 }
3436
37+ /**
38+ * 入力条件が満たされているかどうか
39+ * @return
40+ */
41+ @Override
42+ public boolean isEnable() {
43+ return this.arg_srcFolder.isEnable();
44+ }
45+
3546 @Override
3647 @SuppressWarnings("empty-statement")
3748 public void openAction() {
--- a/src/osm/jp/gpx/matchtime/gui/restamp/RestampDialog.java
+++ b/src/osm/jp/gpx/matchtime/gui/restamp/RestampDialog.java
@@ -4,20 +4,24 @@ import java.awt.event.ActionEvent;
44 import java.io.File;
55 import java.io.IOException;
66 import java.util.Date;
7+import java.util.Observable;
8+import java.util.Observer;
79 import javax.swing.*;
10+import javax.swing.event.DocumentEvent;
811 import osm.jp.gpx.AppParameters;
912 import osm.jp.gpx.matchtime.gui.AdjustTime;
1013 import osm.jp.gpx.matchtime.gui.Card;
1114 import osm.jp.gpx.matchtime.gui.ImageFileView;
1215 import osm.jp.gpx.matchtime.gui.ImageFilter;
1316 import osm.jp.gpx.matchtime.gui.ImagePreview;
14-import osm.jp.gpx.matchtime.gui.ParameterPanel;
1517 import osm.jp.gpx.matchtime.gui.ParameterPanelFolder;
1618 import osm.jp.gpx.matchtime.gui.ParameterPanelImageFile;
1719 import static osm.jp.gpx.matchtime.gui.AdjustTime.i18n;
20+import osm.jp.gpx.matchtime.gui.ParameterPanelTime;
21+import osm.jp.gpx.matchtime.gui.SimpleDocumentListener;
1822
1923 @SuppressWarnings("serial")
20-public class RestampDialog extends Dialog
24+public class RestampDialog extends Dialog implements Observer
2125 {
2226 //{{DECLARE_CONTROLS
2327 java.awt.Label label1;
@@ -26,16 +30,27 @@ public class RestampDialog extends Dialog
2630 JLabel imageLabel; // 開始画像の基準時刻画像表示
2731 JTabbedPane cardPanel; // ウィザード形式パネル(タブ型)
2832 JScrollPane imageSPane; // スクロールパネル
29- JPanel[] cards;
33+ Card[] cards;
3034 ParameterPanelFolder arg1_srcFolder; // 対象フォルダ
3135 ParameterPanelImageFile arg2_baseTimeImg; // 開始画像ファイルパス
32- ParameterPanel arg3_basetime; // 開始画像の基準時刻:
36+ ParameterPanelTime arg2_basetime; // 開始画像の基準時刻:
3337 AppParameters params;
3438 //}}
3539
3640 // Used for addNotify redundency check.
3741 boolean fComponentsAdjusted = false;
3842
43+ /**
44+ *
45+ * @param arg0
46+ * @param arg1
47+ */
48+ @Override
49+ public void update(Observable arg0, Object arg1) {
50+ String str = (String) arg1;
51+ System.out.println("私はAです。観察対象の通知を検知したよ。" + str);
52+ }
53+
3954 class SymWindow extends java.awt.event.WindowAdapter
4055 {
4156 @Override
@@ -101,7 +116,7 @@ public class RestampDialog extends Dialog
101116
102117 //---------------------------------------------------------------------
103118 params = new AppParameters();
104- cards = new JPanel[3];
119+ cards = new Card[3];
105120 cardPanel = new JTabbedPane(JTabbedPane.LEFT);
106121 mainPanel.add(cardPanel, BorderLayout.CENTER);
107122 int cardNo = 0;
@@ -113,6 +128,16 @@ public class RestampDialog extends Dialog
113128 i18n.getString("label.110") +": ",
114129 params.getProperty(AppParameters.IMG_SOURCE_FOLDER)
115130 );
131+ arg1_srcFolder.argField
132+ .getDocument()
133+ .addDocumentListener(
134+ new SimpleDocumentListener() {
135+ @Override
136+ public void update(DocumentEvent e) {
137+ toEnable(0, arg1_srcFolder.isEnable());
138+ }
139+ }
140+ );
116141
117142 Card card = new CardSourceFolder(cardPanel, arg1_srcFolder);
118143 cardPanel.addTab(card.getTitle(), card);
@@ -130,6 +155,16 @@ public class RestampDialog extends Dialog
130155 null,
131156 arg1_srcFolder
132157 );
158+ arg2_baseTimeImg.argField
159+ .getDocument()
160+ .addDocumentListener(
161+ new SimpleDocumentListener() {
162+ @Override
163+ public void update(DocumentEvent e) {
164+ toEnable(1, arg2_baseTimeImg.isEnable());
165+ }
166+ }
167+ );
133168
134169 CardFirstFile card = new CardFirstFile(cardPanel, arg2_baseTimeImg);
135170 cardPanel.addTab(card.getTitle(), card);
@@ -142,9 +177,23 @@ public class RestampDialog extends Dialog
142177 // 2a. 開始画像の本当の時刻を設定の入力画面
143178 {
144179 // 2a. 基準時刻:
145- arg3_basetime = new ParameterPanel();
180+ arg2_basetime = new ParameterPanelTime(
181+ i18n.getString("label.310"),
182+ null,
183+ arg2_baseTimeImg
184+ );
185+ arg2_basetime.argField
186+ .getDocument()
187+ .addDocumentListener(
188+ new SimpleDocumentListener() {
189+ @Override
190+ public void update(DocumentEvent e) {
191+ toEnable(2, arg2_basetime.isEnable());
192+ }
193+ }
194+ );
146195
147- CardCorectTime card = new CardCorectTime(cardPanel, arg3_basetime);
196+ CardCorectTime card = new CardCorectTime(cardPanel, arg2_basetime);
148197 cardPanel.addTab(card.getTitle(), card);
149198 cardPanel.setEnabledAt(cardNo, false);
150199 cards[cardNo] = card;
@@ -158,6 +207,21 @@ public class RestampDialog extends Dialog
158207 closeButton.addActionListener(lSymAction);
159208 //}}
160209 }
210+
211+
212+ void toEnable(final int cardNo, final boolean enable) {
213+ if ((cardNo >= 0) && (cardNo < cards.length)) {
214+ cardPanel.setEnabledAt(cardNo, enable);
215+ if ((cardNo -1) >= 0) {
216+ cards[cardNo -1].nextButton.setEnabled(enable);
217+ }
218+ if ((cardNo +1) < cards.length) {
219+ cardPanel.setEnabledAt(cardNo+1, enable);
220+ cards[cardNo +1].backButton.setEnabled(enable);
221+ cards[cardNo].nextButton.setEnabled(enable);
222+ }
223+ }
224+ }
161225
162226 @SuppressWarnings("OverridableMethodCallInConstructor")
163227 public RestampDialog(Frame parent, String title, boolean modal) throws IOException {
@@ -229,7 +293,7 @@ public class RestampDialog extends Dialog
229293
230294 File timeFile = new File(path);
231295 long lastModifyTime = timeFile.lastModified();
232- arg3_basetime.argField.setText(AdjustTime.dfjp.format(new Date(lastModifyTime)));
296+ arg2_basetime.argField.setText(AdjustTime.dfjp.format(new Date(lastModifyTime)));
233297
234298 int size_x = imageSPane.getWidth() - 8;
235299 ImageIcon tmpIcon = new ImageIcon(path);
Show on old repository browser