Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

JXFindPanel and Jlist

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
eclipse shortcuts 9 62
replace a word with other 1 44
Bot application - advice 3 36
Java Eclipse Loop 3 20
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…
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
The viewer will learn how to implement Singleton Design Pattern in Java.

789 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