taun
taun
JCHJava Community | Help. Code. Learn.
Created by taun on 11/15/2024 in #java-help
unable to locate png from location on pc
try {
image = ImageIO.read(new File("C:\\Users\\mikso\\IdeaProjects\\UPT\\src\\main\\resources\\draggg.png"));
} catch (IOException e) {
e.printStackTrace();
image = null;
}
try {
image = ImageIO.read(new File("C:\\Users\\mikso\\IdeaProjects\\UPT\\src\\main\\resources\\draggg.png"));
} catch (IOException e) {
e.printStackTrace();
image = null;
}
I'm trying to load the image from the path on my pc. If I copy paste the link to my search bar, it opens up the image just fine. Any ideas?
6 replies
JCHJava Community | Help. Code. Learn.
Created by taun on 11/9/2024 in #java-help
Compiling manually via CMD
No description
12 replies
JCHJava Community | Help. Code. Learn.
Created by taun on 10/23/2024 in #java-help
button way too tall
No description
7 replies
JCHJava Community | Help. Code. Learn.
Created by taun on 1/27/2024 in #java-help
Unable to get height
No description
32 replies
JCHJava Community | Help. Code. Learn.
Created by taun on 12/4/2023 in #java-help
Changing primary display with Java
Would it be possible to change the primary display with Java? e.g monitor 1 is my primary one, but I want to set monitor 2 to the primary one in certain conditions.
10 replies
JCHJava Community | Help. Code. Learn.
Created by taun on 4/15/2023 in #java-help
Selecting multiple images
No description
13 replies