Get the size of table from 2 textFields

Hy!I want to make a table with number of rows and columns took from 2 texfields!I have 2 textFieldsfor row and column number and a Create button!I add 2 valkues for the textFields,for ex 6,7 and i push the create button and the table created has 6 rows and 7 columns!How can i do that?Any help?

Thanks

[314 byte] By [killer8685a] at [2007-11-27 11:40:55]
# 1

RTFM

http://java.sun.com/javase/6/docs/api/javax/swing/table/DefaultTableModel.html#DefaultTableModel(int, int)

tjacobs01a at 2007-7-29 17:34:47 > top of Java-index,Desktop,Core GUI APIs...
# 2

Cross post from Swing. Ha already received that answer, but says he is getting a nullpointerexception, but as of yet has not posted his code.

masijade.a at 2007-7-29 17:34:47 > top of Java-index,Desktop,Core GUI APIs...