Jump to content
  • Advertisement
Sign in to follow this  
Oniviper

[java] help with drawing

This topic is 3757 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!