Hi guys, I'm really new to graphics and im trying to pick it up but struggling with a few points. Can someone provide some code on how i can set where a graphics shape should be created/spawn? eg like (32, 11) 32 pixels on the horizontal axis and 11 pixels down. How do i set a circle shape to be created there?

Recommended Answers

All 3 Replies

You could start with the 2D Graphics tutorial.

Hi mate, yeah i've seen that, im still having a bit of a problem with it. I remember it bein pretty good, will have another look.

You could also take a look at this post that demonstrates the absolute basics of drawing a couple of lines on a JPanel. If you check the Graphics (and Graphics2D) API, you'll find other methods for drawing other shapes.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.