Sign in to follow this  
Oniviper

[java] help with drawing

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this