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.
Thanks
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,
Jos
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
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,
Jos
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
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.
db
Re: Drawing an arrow between 2JCheckBoxes
Not really, I'll look at it, thank you