• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to apply RowFilter in JXTreeTable

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
Am using JXTreeTable in my model and i need to set up certain filters to hide some node.
In JTable we can make use of RowFilter and in setRowSorter is overridden with blank implementation. when am trying to set filter, TableRowSorter doesn't accept JXTreeTable even though it extends JTable i couldn't cast the instance.
Is there any way to customize RowFilter option in JXTreeTable.
When i get the model behind the object it return MapTable object so it couldn't cast to TableModel.
Appreciated if any one could suggest me how to work Filter in JXTreeTable.

Thanks in advance.
 
Ranch Hand
Posts: 151
 
Rancher
Posts: 3324
32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
also: http://forums.oracle.com/forums/thread.jspa?threadID=2165209&tstart=0

http://faq.javaranch.com/java/BeForthrightWhenCrossPostingToOtherSites Be Forthright When Cross Posting To Other Sites
 
Sheriff
Posts: 3837
66
Netbeans IDE Oracle Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Read the documentation for the JXTable (parent of JXTreeTable). It has its own devices to do row filtering. The documentation does not mention anything about filtering in the JXTreeTable, so I assume that it inherits the capabilities from JXTable, but I'm just guessing.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic