dacracot
dacracot

Reputation: 22348

How do I change the number of columns in a JTable using NetBeans 7.4 GUI designer?

I've created a JTable object using NetBeans 7.4. By default it has four columns. I only need two. There is a columnCount property, but it is greyed out, so I can't change it. How do I set my column count to two?

Upvotes: 1

Views: 7210

Answers (1)

Jan Trienes
Jan Trienes

Reputation: 2571

Within the properties of the JTable you can access a menu which is called "Model". There you will get inside an editor, where you can edit the appearance of your JTable.

enter image description here

Upvotes: 9

Related Questions