• Advertisement
Sign in to follow this  

[java] help with drawing

This topic is 3580 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello. I've been programming for the past 10 years, but as of the past 2 years i haven't been able to at all because i didn't have a computer. I'm trying to get back into it, but i'm quite a bit rusty. I'm trying to create a java program that allows the user to draw to a windowed screen. Simple things like rectangles, circles, straight lines, freehand, etc. Kinda like paint. Does anyone have any sample code or any tips to get me started? Thank you.

Share this post


Link to post
Share on other sites
Advertisement
I wrote an article about basic keyboard and mouse input. There is a simple example that draws lines with the mouse.

Maybe it will help...

http://www.gamedev.net/reference/programming/features/javainput/default.asp

Good Luck!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement