Skip to main content
gamedev.net
🔒 Locked

[java] help with drawing

Started by Oniviper Jul 5, 2008 at 8:08 PM 0 replies 1.1k views
Original Post
Oniviper
Oniviper
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.
Glass_Knife
Glass_Knife
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!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.