java - JTable: how to add data without displaying? -


i have column images. attach additional text information read not display.

how can achieve ? looking "ghost" column.

looking way store persistent data stores temporarily on client java application, , later uploads server.

  1. create tablemodel 2 columns of data
  2. create jtable using tablemodel
  3. get tablecolumnmodel jtable
  4. remove tablecolumn (from tablecolumnmodel) don't want displayed in table. not delete data in model, won't paint column in view of table.

now when want reference data in hidden column need data tablemodel, not jtable:

object celldata = table.getmodel().getvalueat(...); 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -