Skip to content

Commit 2a08f34

Browse files
committed
Get size of default image while running a Jar file
1 parent 140aad1 commit 2a08f34

File tree

6 files changed

+1
-1
lines changed

6 files changed

+1
-1
lines changed

jar/Image Resizer.jar

-35.2 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

src/com/marwaeltayeb/fir/controller/MainController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ private void showImageDetails(String path) {
139139
File file;
140140
Image img;
141141
if(path.equals(defaultImagePath)){
142-
file = new File("src/" + path);
142+
file = new File("../src/" + path);
143143
img = new Image(path);
144144
}else {
145145
file = new File(path);

0 commit comments

Comments
 (0)