Skip to content

Commit f497b22

Browse files
committed
Update aesthetics
1 parent 807f8d7 commit f497b22

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/main/java/com/aceshooting/imageprocessing/ImageAverager16Bit.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -235,15 +235,18 @@ public boolean accept(File dir, String name) {
235235
}
236236
});
237237

238+
progressMonitor = new ProgressMonitor(this, "Loading values...", "", 0, 100);
239+
progressMonitor.setMillisToDecideToPopup(1);
240+
progressMonitor.setMillisToPopup(2);
241+
238242
for (File file : files) {
239243
if (file.isFile()) {
240-
System.out.println(file.getCanonicalPath());
244+
progressMonitor.setNote("Loaded: "+file.getCanonicalPath());
241245
results.add(file.getCanonicalPath());
242246
}
243247
}
244248

245-
progressMonitor = new ProgressMonitor(this, "Loading values...", "", 0, 100);
246-
progressMonitor.setMillisToDecideToPopup(10);
249+
247250

248251
operation = new Calculate(results, directoryName);
249252
operation.addPropertyChangeListener(this);
@@ -256,14 +259,12 @@ public boolean accept(File dir, String name) {
256259
}
257260

258261
} else {
259-
System.out
260-
.println("No Selection.Please Select the Folder containing TIFF Images.");
261262
go.setEnabled(true);
262263
}
263264
}
264265

265266
public Dimension getPreferredSize() {
266-
return new Dimension(200, 200);
267+
return new Dimension(400, 100);
267268
}
268269

269270
}

0 commit comments

Comments
 (0)