Results 1 to 6 of 6
  1. #1
    macwadu is offline Member
    Join Date
    Jun 2010
    Posts
    29
    Rep Power
    0

    Default Need help with a construction of a tree of objects

    Hi there can you help me with ideas of how to do something like this images. i'm a newbie in java

    Tanks for the help
    Attached Thumbnails Attached Thumbnails Need help with a construction of a tree of objects-1.jpg   Need help with a construction of a tree of objects-2.jpg  

  2. #2
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Location
    Zurich, Switzerland
    Posts
    962
    Rep Power
    6

    Default

    Quote Originally Posted by macwadu View Post
    Hi there can you help me with ideas of how to do something like this images. i'm a newbie in java

    Tanks for the help

    the component in the windows of the second jpeg look like jtables, so for details look here How to Use Tables (The Javaô Tutorials > Creating a GUI With JFC/Swing > Using Swing Components)

  3. #3
    macwadu is offline Member
    Join Date
    Jun 2010
    Posts
    29
    Rep Power
    0

    Default

    Yes they are, but how do i link the Jinternalframes one to each others?

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,599
    Rep Power
    20

    Default

    Custom painting in the JDesktopPane.

    db

  5. #5
    macwadu is offline Member
    Join Date
    Jun 2010
    Posts
    29
    Rep Power
    0

    Default

    But can i move the objects and the lines are going after the objects?

  6. #6
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,878
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by macwadu View Post
    But can i move the objects and the lines are going after the objects?
    Nothing happens automagically; if you want to move those connecting lines when those JInternalFrames move, you have to do that yourself. You can add a ComponentListener to the frames; it is notified after a component has moved; that's the event when you should redraw those lines.

    kind regards,

    Jos

Similar Threads

  1. Replies: 0
    Last Post: 04-04-2010, 07:40 AM
  2. Help Tree Set
    By ShuiYinDeng in forum New To Java
    Replies: 2
    Last Post: 10-29-2009, 11:45 AM
  3. Creating a Tree and then saving the Tree
    By jackmatt2 in forum New To Java
    Replies: 0
    Last Post: 08-22-2009, 12:51 PM
  4. Replies: 1
    Last Post: 01-22-2009, 05:25 PM
  5. AVL-tree construction
    By student89 in forum Advanced Java
    Replies: 0
    Last Post: 10-27-2008, 06:33 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •