Results 1 to 3 of 3
  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 Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    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

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 javax.swing
    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
  •