Results 1 to 7 of 7
Like Tree4Likes
  • 1 Post By DarrylBurke
  • 3 Post By Fubarable

Thread: How to draw trees on JPanel

  1. #1
    memo.baghdady is offline Member
    Join Date
    Jul 2012
    Posts
    7
    Rep Power
    0

    Question How to draw trees on JPanel

    Hi , can anyone explain me a simple short way to draw trees on JPanel ??

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,254
    Rep Power
    19

    Default Re: How to draw trees on JPanel

    Read the API for JTree

    db
    memo.baghdady likes this.
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    memo.baghdady is offline Member
    Join Date
    Jul 2012
    Posts
    7
    Rep Power
    0

    Default Re: How to draw trees on JPanel

    Thanks a lot ,Actually I mean a Tree data structure that is an output of Stanford natural language parser and it is different from JTree class
    if your excellency had used that parser before. you can think of the trouble that evolved my self in.

    Thanks to reply

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: How to draw trees on JPanel

    Quote Originally Posted by memo.baghdady View Post
    Thanks a lot ,Actually I mean a Tree data structure that is an output of Stanford natural language parser and it is different from JTree class
    I think you misunderstand his advice. It doesn't matter how you get your tree data, if you want to display a tree like structure of data on a JPanel, the easiest way is with a JTree. The API and the tutorial will show you the best ways to use this component. If you've tried this and it doesn't work, or if you can post a significant reason why this cannot work for you, please let us know including any and all specifics.

    if your excellency had used that parser before. you can think of the trouble that evolved my self in.
    Your sarcasm is duly noted.

  5. #5
    memo.baghdady is offline Member
    Join Date
    Jul 2012
    Posts
    7
    Rep Power
    0

    Default Re: How to draw trees on JPanel

    please I'm not kidding as you can see I'm new member and I don't know how to get the API of the JTree
    if you have a direct link to it please post it back, and even I don't know how to post to this forum in right way
    forgive me for that
    i'm in trouble because of this kind of ambiguous Data Structure which is Tree of Stanford Natural Language parser
    and I should submit my project in less than a month but I did not any think useful yet

    please help

  6. #6
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: How to draw trees on JPanel

    Here are the specific links you requested as well as some generally useful and in fact necessary links if you are going to do any significant Java programming:

    Last edited by Fubarable; 07-25-2012 at 12:27 AM.

  7. #7
    memo.baghdady is offline Member
    Join Date
    Jul 2012
    Posts
    7
    Rep Power
    0

    Default Re: How to draw trees on JPanel

    I really appreciate your reply , you make me a favor that I had never imagine
    you own me

    Thanks to all of that

Similar Threads

  1. Draw Strings on JPanel
    By susieferrari in forum New To Java
    Replies: 1
    Last Post: 04-18-2012, 04:59 PM
  2. How To Draw Objects Not On A JPanel
    By anthropamorphic in forum New To Java
    Replies: 18
    Last Post: 08-11-2011, 05:55 AM
  3. Draw on JPanel?
    By PhQ in forum New To Java
    Replies: 2
    Last Post: 07-16-2010, 11:19 PM
  4. How to: draw line between 2 nodes of 2 trees
    By kholostoi in forum Java 2D
    Replies: 1
    Last Post: 09-03-2009, 07:10 PM
  5. Draw on JPanel, Help
    By carl in forum Java 2D
    Replies: 1
    Last Post: 07-31-2007, 06:56 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
  •