Solved

JTree- simulating a selection event

Posted on 2000-02-18
3
456 Views
Last Modified: 2008-03-17
Is there a way that I can simulate a TreeSelectionEvent in my code.  I would like to have some events occur without the user having to explicitly select a node.
0
Comment
Question by:tblackwe
3 Comments
 

Accepted Solution

by:
sadhu earned 50 total points
ID: 2537140
Hi,
  Hope this will solve ur problem
  Jtree tree ;
   tree.setSelectionRow(int rowno)
0
 
LVL 16

Expert Comment

by:heyhey_
ID: 2537980
>> I would like to have some events occur without the user having to explicitly select a node.


just call your event-handling method directly ?
0
 

Author Comment

by:tblackwe
ID: 2546787
Thanks sadhu....that worked perfectly.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
servlet doXXX methods 3 62
ejb on wildfly 5 30
SequenceInputStream example 3 19
Eclipse Help Java EE 5,6,7 Documentation, why not Java EE 8 8 30
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question