How To Hide JTable Column

To hide a JTable column but still retain its column data intact is very easy. Check the line of code below.

This scenario is a good and quick hack if you want your table entries to have a reference to its id but you do not want the id’s column to be displayed. To access the column that contains the ids, what you need to do is to access the JTable’s table model.

Related Posts Plugin for WordPress, Blogger...

Leave a Reply

Your email address will not be published. Required fields are marked *