简体   繁体   中英

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?

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.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM