The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
November 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

columns

Posted by Chin Loong on November 26, 2001 at 3:49 AM


[JTable].getColumn((String)[Vector].elementAt(1)).setMinWidth([int]);

i.e.
JTable : list
column Vector : colnames
column to set size : 1
max int : MAX_SIZE

list.getColumn((String)colnames.elementAt(1)).setMinWidth(MAX_SIZE);

any easier way out there, guys? this is what i use :p and i'm dang inefficient heheh



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us