• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Linking internal frames with a line

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear All,

hope all of you are ok.

My Problem is: "Linking internal frames with a line"

I'm in the process of making an ERD Diagram that show the tables of the databases and its relations.

I'm already did the entities or tables but I face a problem now which is:

How I can link or draw the relation line between the entities or tables??

So please advice.

looking forward to hear from you as soon as possible.

Thanks for you all

Aabed

Best regards
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Abed Rabie
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

Thanks alot for your reply

Aabed
 
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 
Abed Rabie
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear friend Craig Wood ,

Thanks alot for your reply and you help. I appreciate your work too much.

But i have a question. If i need to link the internal cells of the jtable that will be drawn at this JInternal frame "Is it possible to do so".

I mean as in ERD diagram the line drawn between entities is pointing to certain field in the table so it's between two cells in two tables.
Again "Is it possible to do this".

Thanks alot for your help and your quick reply.

Best regards

Aabed
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

[ November 30, 2004: Message edited by: Craig Wood ]
 
Abed Rabie
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear friend,

Thanks alot for your reply and helping me.

Best regards

Aabed
reply
    Bookmark Topic Watch Topic
  • New Topic