java - How to hide the Jtable column data? -


i want hide data of column of jtable, not hide column view,just data. column contain data profit , customer doesn't want show profit in code use values of column , when user select specified row.

how achieve customer need , still able values of column when selecting after hiding data(displaying column empty still has values)?

you need remove tablecolumn tablecolumnmodel of jtable. example:

table.removecolumn( table.getcolumn(...) ); 

now column not display in table, data still available in tablemodel. access data use:

table.getmodel().getvalueat(...); 

Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -