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)}
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)
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.