Results 1 to 7 of 7
- 07-17-2012, 06:58 PM #1
Member
- Join Date
- Feb 2012
- Posts
- 26
- Rep Power
- 0
Drawing an arrow between 2JCheckBoxes
Hi,
I'm trying to draw an arrow which connects 2 JCheckBoxes (starts at one JCheckBox and ends at another).
I managed to get the location (x and y co-ordinates for the checkboxes), but now I'm stuck on drawing the arrow from one checkbox to the other.
Any help would be really appreciated.
ThanksLast edited by Ami; 07-17-2012 at 07:01 PM.
- 07-17-2012, 08:09 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,405
- Blog Entries
- 7
- Rep Power
- 17
Re: Drawing an arrow between 2JCheckBoxes
If the arrow crosses at least one other component, consider drawing on the glass pane of the parent window.
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 07-18-2012, 04:31 PM #3
Member
- Join Date
- Feb 2012
- Posts
- 26
- Rep Power
- 0
Re: Drawing an arrow between 2JCheckBoxes
Thank you for your help, but the arrow shouldn't cross through any other components. Any suggestions will be appreciated. Thanks
- 07-18-2012, 04:58 PM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,405
- Blog Entries
- 7
- Rep Power
- 17
Re: Drawing an arrow between 2JCheckBoxes
Does the arrow leave one JCheckBox and enters the other one? If so, my suggestion still applies; if not, please explain.
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 07-18-2012, 09:47 PM #5
Member
- Join Date
- Feb 2012
- Posts
- 26
- Rep Power
- 0
Re: Drawing an arrow between 2JCheckBoxes
The arrow should start at the end of one checkbox and end at the start of the other, the arrow should not cross through any of the checkboxes, thanks
- 07-18-2012, 10:33 PM #6
Re: Drawing an arrow between 2JCheckBoxes
Do you know anything at all about how to do custom painting?
Lesson: Performing Custom Painting (The Java™ Tutorials > Creating a GUI With JFC/Swing)
Moving this thread to the AWT/Swing section.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 07-26-2012, 09:34 PM #7
Member
- Join Date
- Feb 2012
- Posts
- 26
- Rep Power
- 0
Similar Threads
-
Arrow Keys?
By Alerhau in forum New To JavaReplies: 10Last Post: 06-17-2011, 07:45 PM -
Help in bow and arrow game
By sahildave1991 in forum AWT / SwingReplies: 6Last Post: 10-18-2010, 02:34 PM -
Arrow Button Example
By Java Tip in forum SWTReplies: 0Last Post: 07-11-2008, 04:44 PM -
Draw an arrow
By Albert in forum SWT / JFaceReplies: 3Last Post: 02-01-2008, 08:11 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks