Domanda

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?

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top