Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jtable row  RSS feed

 
Martin Borovnik
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi!
i want to make tablerows invisible, but i can't find a way to do that!
can anybody help me?

kind regards

martin
 
Rob Spoor
Sheriff
Posts: 21087
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Java 6, check TableRowSorter and its good buddy RowFilter.

Basically, you create a TableRowSorter with your table's model; if you don't want sorting you can turn off sorting for each column using setSortable.

Next up, you create a RowFilter. You can use one of the static methods in that class, or create your own subclass which implements the include method. You set that for your TableRowSorter, then set the TableRowSorter for your table.
 
Martin Borovnik
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey! thanks for your request.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!