Results 1 to 5 of 5
  1. #1
    sniffer139 is offline Member
    Join Date
    Feb 2010
    Posts
    19
    Rep Power
    0

    Question action to a node in a jtree

    may i know how to add an action to a jtree compnent...dat is when i click on a node it must perform so action................
    SNIFFER

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

    Default

    Read the API for JTree and follow the link to the Swing tutorial on How to Use Trees where you will find a section Responding to Node Selection.

    Next time round, do that before posting a question.

    db

  3. #3
    sniffer139 is offline Member
    Join Date
    Feb 2010
    Posts
    19
    Rep Power
    0

    Talking thnx

    hi Darryl,
    thanks for the suggestion........................................ .
    SNIFFER

  4. #4
    Fluffy93 is offline Member
    Join Date
    Aug 2014
    Posts
    29
    Rep Power
    0

    Default Re: action to a node in a jtree

    Don't suppose you know the method for display data once a node is clicked?

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

    Default Re: action to a node in a jtree

    You've got your own thread. Was it really necessary to wake up this one?

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

Similar Threads

  1. JTree Programmatic Node Expansion and Selection Probelm
    By hemanthjava in forum AWT / Swing
    Replies: 3
    Last Post: 01-16-2013, 07:23 AM
  2. Multiple components as one node in JTree
    By Amnuriak in forum AWT / Swing
    Replies: 8
    Last Post: 11-04-2009, 02:47 PM
  3. Replies: 1
    Last Post: 06-22-2009, 02:39 AM
  4. How to add JCheckbox as a node in JTree
    By shajuantony in forum New To Java
    Replies: 0
    Last Post: 04-09-2009, 07:19 AM
  5. Node selection in jtree
    By Preethi in forum AWT / Swing
    Replies: 4
    Last Post: 06-19-2008, 11:25 PM

Posting Permissions

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