Results 1 to 2 of 2
  1. #1
    Psyclone is offline Member
    Join Date
    Jan 2010
    Posts
    81
    Rep Power
    0

    Default JLists - Filtering

    Can someone point me in a good direction for ways to filter my JList?

    I have a list that I will want to sort based on filters the user can select from RadioButtons. It would work best if there was a way to "hide" items from the list so they actually retain their original index if possible.

    I don't want to add and delete items to and from the list... I just want to filter them. Is it possible to change the visibility of specific indexes from a JList?

  2. #2
    mrmatt1111's Avatar
    mrmatt1111 is offline Senior Member
    Join Date
    Aug 2009
    Location
    San Jose, CA, USA
    Posts
    320
    Rep Power
    5

    Default

    I would keep all my data in master list, probably an ArrayList, and when an action build a new ArrayList with the subset of data, with that smaller subset set the JList's model data.
    My Hobby Project: LegacyClone

Similar Threads

  1. Mouse event filtering?
    By Taiko in forum AWT / Swing
    Replies: 12
    Last Post: 08-10-2011, 02:00 PM
  2. Filtering data in a JSF dataTable
    By Iori Yagami in forum JavaServer Faces (JSF)
    Replies: 1
    Last Post: 03-17-2010, 11:17 PM
  3. looping and filtering
    By javafanatic in forum New To Java
    Replies: 14
    Last Post: 02-09-2010, 09:48 AM
  4. filtering data in jsf
    By bbq in forum JavaServer Faces (JSF)
    Replies: 2
    Last Post: 07-04-2007, 08:52 AM
  5. Jsf, Filtering Data In A Table
    By Freddie in forum JavaServer Faces (JSF)
    Replies: 2
    Last Post: 05-11-2007, 12:59 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •