From your post I gather that you have added all the fields of a table to an internal frame. And Now you want to draw relationship lines between the two internal frmaes those contain the tables.
If that is is the case I don't think it is going to be easy. If internal frames would have reported "Dragg" events then you could have used some intelligent drawing making use of the fact that JDesktopPane extends JLayeredPane. But unfortunately Internal frames don't report any "Drag events."
Here youe longest shot could be extending JDesktopPane to provide a desktop pane that supports the relationship drwaing you want. But That would be tooooo deficult.
In best case, I suggest that you develop a custom component that can show your tables and their relationships.
If the application you are developing is an open source application I would be pleased to help in details.
Pritam Barhate<br />A magic combination of <b>Code</b> & <b>Fire</b> : <a href="http://www.jroller.org/page/codefire/Weblog" target="_blank" rel="nofollow">codefire</a><br />----------------------------------- <br />My Open Source Projects:<br /><a href="https://acemdi.dev.java.net/" target="_blank" rel="nofollow">AceMDI</a>: A easy, yet powerful MDI framework that manages windows as Tabs.
Joined: Jun 24, 2003
Dear Pritam Barhate,
I red your message and I'm so glad of your reply but I don't understand something you write so may u explain it for me please.
What you mean by developing a custom component that show me the tables and relations??
Also I'm so sorry to say that it's not an open source project it's just an application we try to develop so are you interested to share me in that.