Frage

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?

War es hilfreich?

Lösung

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top