+ 2

Drawing images in java

Do u guys know how to draw images in java on desktop

18th Aug 2025, 1:45 PM
deep key
deep key - avatar
4 Answers
+ 3
You can't do it with the Sololearn compiler but Java can do it. Look up awt.Images for example
18th Aug 2025, 2:13 PM
Ausgrindtube
Ausgrindtube - avatar
+ 2
Saw a question like this and thought I would give a better answer here as well. Java.AWT is old technology that draws images using the CPU, it's great for low frame rate animation or applications that don't require excessive repainting(like a calculator) but for games(which requires a lot of drawing) id recommend an external library like libGDX which will run much faster since it can utilize the GPU and is generally more efficient
26th Oct 2025, 12:42 AM
Luca
+ 1
classic tutorial https://docs.oracle.com/javase/tutorial/2d/index.html there are also external libraries javaFX Processing https://processing.org/examples LibGDX jMonkeyEngine LWJGL
19th Aug 2025, 12:36 AM
zemiak
+ 1
Sololearn wont let you but you could learn how to use java.awt and javax
27th Aug 2025, 9:26 PM
Luca