Connect JButtons!!!

Does anybody know how to create al anchor to put together two or more jButtons?
[86 byte] By [kandua] at [2007-11-27 8:04:35]
# 1
? maybe BoxLayout.
j_shadinataa at 2007-7-12 19:47:00 > top of Java-index,Desktop,Core GUI APIs...
# 2
or a gridlayout if they are the same size?
petes1234a at 2007-7-12 19:47:00 > top of Java-index,Desktop,Core GUI APIs...
# 3

No, they actually have different sizes.

My project is to connect one box to another using an arrow. Then I found out that this boxes could be jButtons, so I could drag and drop them easily

I thought that maybe I could do it by linking a small jButton to the "box", so whe the user clicks the small jButton, and drags the mouse to another small jButton, then, an arrow is drawn connecting the two boxes...

By the way, there is something very similar to what I want to do in this page: http://jdsp.asu.edu/jdsp.html

Any suggestions? thanks a lot

kandua at 2007-7-12 19:47:00 > top of Java-index,Desktop,Core GUI APIs...
# 4
use null layout.
j_shadinataa at 2007-7-12 19:47:00 > top of Java-index,Desktop,Core GUI APIs...
# 5
Shadinata, sorry to bother again, but I'm trying to set the null layout to the jButtons, but the change it to the overlay layout... Do you know how to change it? And, how does the null layout help me with it? Thank you
kandua at 2007-7-12 19:47:00 > top of Java-index,Desktop,Core GUI APIs...
# 6
Shadinata, I have to go, but tomorrow I'll be online again. Thanks for your help
kandua at 2007-7-12 19:47:00 > top of Java-index,Desktop,Core GUI APIs...
# 7
null layout tutorial: http://java.sun.com/docs/books/tutorial/uiswing/layout/none.html
j_shadinataa at 2007-7-12 19:47:00 > top of Java-index,Desktop,Core GUI APIs...
# 8
Try this http://java-sl.com/connector.htmlRegards,Stas
StanislavLa at 2007-7-12 19:47:00 > top of Java-index,Desktop,Core GUI APIs...
# 9
Thank you! very useful information
kandua at 2007-7-12 19:47:00 > top of Java-index,Desktop,Core GUI APIs...
# 10
Thanks!
kandua at 2007-7-12 19:47:00 > top of Java-index,Desktop,Core GUI APIs...