• 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

drawing lines between two internal frames on a desktop pane

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic