CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: JTree problem

  1. #1
    Join Date
    Jul 1999
    Posts
    2

    JTree problem

    sir!

    I am trying to do developing JTree with the features when I pressed a node it should be expanded as well as it should be show the contents of that component in the viewport area.but I haven't get this please help me.


  2. #2
    Join Date
    May 1999
    Location
    Pune, MH, India.
    Posts
    453

    Re: JTree problem

    I'm also doing R&D in this area. May be it will help u. What I am trying is...

    Create a ExpansionAdapter and add it to the JTree using 'addExpansionListener'.

    Now when I get 'TreeExpansionEvent', I am trying to identify the node which is expanded by the method 'TreeExpansionEvent.getPath().getLastParentComponent()'. And depending on the item expanded, I am intending to do my stuff for that item.


    - UnicMan
    http://members.tripod.com/unicman

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured