Solved

JXFindPanel and Jlist

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Systems talking to each other 5 126
what is the difference between "sudo su" and "su - root" 6 106
bitbucket vs gitbucket 3 58
servlet example issue 6 33
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

863 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

22 Experts available now in Live!

Get 1:1 Help Now