to create and maintain links inbetween Internal frames


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: to create and maintain links inbetween Internal frames

Hybrid View

  1. #1
    Join Date
    Jul 2005
    Posts
    4

    Talking to create and maintain links inbetween Internal frames

    hi
    i want to create and maintain links(arrowed lines) inbetween two or more Internal frames .these links(arrowed lines are created by dragging mouse from one internal frame to other internal frame

  2. #2
    Join Date
    Oct 2004
    Posts
    311
    to do this, you would probably have to keep track of both the location of both frames and the size of both frames. When you got those variables, you can calculate the shortest distance between them, and draw the corresponding line on the underlying JPanel.

  3. #3
    Join Date
    Jul 2005
    Posts
    4
    Thanx for ur response but what about maintaining them while dragging frames?
    i can use repaininting but please send some source code....
    Regards Naren

  4. #4
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560
    Sorry, I have no code ready made for that, but maintaining arrows while you drag
    an internal frame would require implemetation of the proper windowlisteners for the
    internal frames, and those event handlers would in turn repaint the underlying pane.
    eschew obfuscation

  5. #5
    Join Date
    Jul 2005
    Posts
    4
    thanx for ur suggestion sir

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center