• Post Reply Bookmark Topic Watch Topic
  • New Topic

drawing lines between two internal frames on a desktop pane  RSS feed

 
Aakriti Jain
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,
Need some expertize suggesions...Please help me out!!!
I have many internal frames on a desktop pane.
In each internal frame i've a scroll pane in which i've one table which is populated from database.
now these internal frames will act like source and targets, depends on the table type(Source or Target).
the task is that i've to draw lines between a source and a targets and these line will be a kind of relationship between two table's rows...like 1st row of source table is mapped/related to 2nd row of target table..likewise.
i've achieved the task till populating the tables but now i'm stuck to draw lines between them.
Additional requirement is if i move these internal frames on the desktop pane..those line which are drawn should be able to move , similarly while expanding/shrinking the internal frame or moving the scrollpane which is inside the scroll pane, lines should be moved and should be stick to linked rows.
Is this possible in Swing?
screenshot..JPG
[Thumbnail for screenshot..JPG]
screenshot
 
K. Tsang
Bartender
Posts: 3648
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure if Swing can have a Canvas (drawing area) with components (JInternalFrames) on top. You can try this add Canvas to scroll pane the add internal frame to the canvas and draw lines or whatever and see what happens.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!