Wednesday, 15 April 2015

java - Changing Content of JTable Cells Individually -



java - Changing Content of JTable Cells Individually -

so suppose create jtable specific number of columns , rows. possible add together jpanel specific cell after jtable initialized? jtable empty @ first , alter cell @ row x , column y instead contain jpanel contain amount of imageicons. don't have code set here really, need know have utilize accomplish , how. give thanks you.

to alter info in table use:

table.setvalueat(...);

this update info in tablemodel.

however, adding jpanel table not way table designed used. typically add together info model. utilize renderer display info in cell.

start reading section swing tutorial on using custom renderers more info , examples.

java jtable jpanel cell imageicon

No comments:

Post a Comment