Results 1 to 5 of 5
Thread: need help for drawing...
- 12-06-2011, 04:27 PM #1
Member
- Join Date
- Dec 2011
- Posts
- 2
- Rep Power
- 0
need help for drawing...
Hi!
need help for drawing java application for:
1) allows for placement of 2 points with the mouse (click the left button, the point is a circle of radius 5 pixels) and draw a square with a diagonal of two points.
2)mouse click inside the square circle drawn with a different color, but outside of it - no.
thank you in advance,mates
- 12-06-2011, 04:28 PM #2
Re: need help for drawing...
And which part of this are you having trouble with? What have you tried? Where are you stuck?
How to Ask Questions the Smart Way
Static Void Games - GameDev tutorials, free Java and JavaScript hosting!
Static Void Games forum - Come say hello!
- 12-06-2011, 04:31 PM #3
Member
- Join Date
- Dec 2011
- Posts
- 2
- Rep Power
- 0
- 12-06-2011, 04:33 PM #4
Re: need help for drawing...
Okay, still, which part of that? Can you draw anything at all? Can you draw a square? Can you use a MouseListener? Can you get input from a MouseListener and use it in paintComponent?
Break your problem up into smaller pieces, and create an SSCCE that demonstrates the piece you're stuck on.How to Ask Questions the Smart Way
Static Void Games - GameDev tutorials, free Java and JavaScript hosting!
Static Void Games forum - Come say hello!
- 12-06-2011, 04:34 PM #5
Moderator
- Join Date
- Apr 2009
- Posts
- 13,541
- Rep Power
- 27
Similar Threads
-
Drawing an arc
By berkeleybross in forum Java 2DReplies: 10Last Post: 12-09-2010, 02:32 AM -
Drawing out triangles
By leiferouis in forum New To JavaReplies: 24Last Post: 01-16-2009, 09:18 PM -
drawing images
By diggitydoggz in forum New To JavaReplies: 4Last Post: 01-02-2009, 04:15 AM -
Drawing a map
By Karp in forum AWT / SwingReplies: 4Last Post: 11-07-2008, 01:26 PM -
Help with 2-D Drawing
By Deathmonger in forum New To JavaReplies: 4Last Post: 06-18-2008, 03:23 AM
Bookmarks