• 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

RowFilter dont show rows in JTable

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

hi

im using sorter object (TableRowSorter) to filter and sort rows in jtable, but when i trying filter rows dont show the rows in jtable



when i type (a) on filterText object, jtable shows rows who values on column 1 had letter a (for now all is right), but when i hit backspace key on my keyboard
sorter.setRowFilter( null ); line is run, jtable dont show all rows (i think need update something to change take effect), and when i type (a) again jtable dont show
any rows...

i need something like sorter.update() method or something? or on jtable?

any help?

thanks in advance. (sorry for my english)
 
Sheriff
Posts: 22781
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check your console - you probably got a PatternSyntaxException, since "(a" is not a valid regular expression. This probably messes up your entire application.
 
a. arevalo
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks for answer Rob Prime, but no, the sintaxys is ok, when i type (a) for firts time all is right, and the excepcions dont show on console i catched on JOptionPane, the thing is jtable dont show(paint) the rows...

 
a. arevalo
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi

i found the way to rows can repaint, only need set the row sorter on table again... thanks =)



 
reply
    Bookmark Topic Watch Topic
  • New Topic