sizing JTable columns

Hello

I have a couple of tables with two columns, and I want to make one column about 80% of the width, and the other the rest. I can currently do this through the UI, but I can't figure out a way to have it come up that way automaticaly. One thing I was thinking of was to get a TableColumn and then SetPreferedSize, but when I look at my table the identifier for both columns is set to null so I don't know what to feed the table's GetTableColumn. And I am not sure where I'm suposed to set the identifier. The Table is made from a TableModel. Any suggestions? Or am I going about it in the wrong way and maybe need to do something with layouts maybe? Thanks.

[678 byte] By [zkajana] at [2007-11-27 6:38:48]
# 1
do some like thisdatosPrecaptura.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);(datosPrecaptura.getColumnModel().getColumn(0)).setPreferredWidth( 60 );(datosPrecaptura.getColumnModel().getColumn(1)).setPreferredWidth( 485 );
filihca at 2007-7-12 18:07:37 > top of Java-index,Java Essentials,Java Programming...
# 2
Thanks you! Just what I was looking for.
zkajana at 2007-7-12 18:07:37 > top of Java-index,Java Essentials,Java Programming...