Solved

JXFindPanel and Jlist

Posted on 2010-11-10
3
596 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 27

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

785 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