0

I'm trying to create my own JTable, with every row containing 5 check boxes
meaning that I have 5 columns and I want them all to have check boxes
When I try that the table goes blank and nothing appears at all, so I can only put 1 per row.
1 2 3 4 5
----------------------------------------------------
I1 | CB | CB | CB | CB | CB
I2 | CB | CB | CB | CB | CB
I3 | CB | CB | CB | CB | CB
I4 | CB | CB | CB | CB | CB

private Object[][] data = {
	    {"I1",new Boolean (false) ,
	     new Boolean (true), new Boolean (true), new Boolean (true)}
2
Contributors
1
Reply
4
Views
6 Years
Discussion Span
Last Post by mKorbel
0
private Object[][] data = {
{"I1",new Boolean (false) , new Boolean (true), new Boolean (true), new Boolean (true), {"I1",new Boolean (false) , new Boolean (true), new Boolean (true), new Boolean (true),{"I1",new Boolean (false) , new Boolean (true), new Boolean (true), new Boolean (true),{"I1",new Boolean (false) , new Boolean (true), new Boolean (true), new Boolean (true),{"I1",new Boolean (false) , new Boolean (true), new Boolean (true), new Boolean (true),}
new Boolean (false)

is useless definifion if is correctly set Column#Class, then is sufficient declare only

(false)

Edited by mKorbel: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.