0

How to draw whit java?

I know I doesn't work in sololearn but I still want to know how Is it done? I will soon download a IDE that are able to draw

24th Sep 2025, 6:22 PM
Pou10mine
Pou10mine - avatar
2 ответов
0
draw on a JPanel https://docs.oracle.com/javase/8/docs/api/javax/swing/JPanel.html with Graphics2D https://docs.oracle.com/javase/8/docs/api/java/awt/Graphics2D.html You can also use Canvas and Graphics, but they are older APIs.
24th Sep 2025, 6:50 PM
「HAPPY TO HELP」
「HAPPY TO HELP」 - avatar
0
My recommendation is to use the java.awt and javax.swing APIs. Using things like graphics/graphics2D(this one has more options) and a JFrame and JPanel. There are plenty of good tutorials on YouTube.
24th Sep 2025, 7:05 PM
Luca