Changing properties in JTable

Hi

New to Java but with extensive Borland Delphi/C++ experience.

Using NetBeans I've added a form to my project and added a JTable to the form. However I cannot seem to be able to alter the rowCount or the columnCount in a JTable's properties....why is that?

And how do change their values?

[318 byte] By [mma_dka] at [2007-11-27 11:55:54]
# 1

What do you mean? What would those properties do?

The JTable uses a TableModel, and the model has column and row count.

Kaj

kajbja at 2007-7-29 19:04:35 > top of Java-index,Java Essentials,New To Java...
# 2

in netbeans just right-click on one of the created rows in jtable

not on the empty space in jtable because that would take you to the

properties of jscrollpane(netbeans automatically put jtable on jscrollpane). After doing that just reduce the number of rows and

columns.

Yannixa at 2007-7-29 19:04:35 > top of Java-index,Java Essentials,New To Java...
# 3

Better yet, don't use a GUI builder until you know what you're doing.

dwga at 2007-7-29 19:04:35 > top of Java-index,Java Essentials,New To Java...
# 4

Hi

and thanks for you constructive suggestion. I already figured this out and chose properties down the bottom, but these particular properties row/columnCount are sort of greyish and cannot be changed.

best regards

Mads

mma_dka at 2007-7-29 19:04:35 > top of Java-index,Java Essentials,New To Java...
# 5

So much for reply #3.

BigDaddyLoveHandlesa at 2007-7-29 19:04:35 > top of Java-index,Java Essentials,New To Java...
# 6

Hi

Thanks again to those of you who responded properly to my question. I figured it out how that part works with NetBeans

/Mads

mma_dka at 2007-7-29 19:04:35 > top of Java-index,Java Essentials,New To Java...
# 7

> Thanks again to those of you who responded properly

> to my question.

You're welcome.

dwga at 2007-7-29 19:04:35 > top of Java-index,Java Essentials,New To Java...
# 8

> Hi

>

> Thanks again to those of you who responded properly

> to my question. I figured it out how that part works

> with NetBeans

>

Thanks for being an arrogant dolt!

cotton.ma at 2007-7-29 19:04:35 > top of Java-index,Java Essentials,New To Java...