Solved

JXFindPanel and Jlist

Posted on 2010-11-10
3
583 Views
Last Modified: 2012-08-14
Imagine that i have a JList<String> listValue and i want create a JXFindPanel, insert JList in a JXFindPanel and use a JXFindPanel  search option to search any word on JList.

How can i do it?
0
Comment
Question by:jomgsantos
3 Comments
 
LVL 7

Accepted Solution

by:
sailingbye earned 250 total points
ID: 34120216
1. Create a JXList from your JList,
2. Create a JXFindPanel using the Searchable inner class of the JXList,
3. Use the JXFindPanel

Example code below.

Hope this helps.
// 1.
JXList jxlist = new JXList(jlist.getModel());

// 2. 
JXFindPanel jxfindpanel = new JXFindPanel(jxlist.getSearchable());

// 3. 
jxfindpanel.findNext();

Open in new window

0
 
LVL 26

Expert Comment

by:mrcoffee365
ID: 37445781
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
bunnyEars challenge 6 64
allStar challenge 1 41
HashMap Vs TreeMap 12 49
Strange loading of website behaviour 3 23
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now