Merci à toi GodConan,
C'est exactement ce que je cherchais. En fait dans la javadoc (car j'ai un peu cherché) ils préconisent d'utiliser :
taTable.getColumnModel().getColumn( index_de_colonne ).setPreferredWidth( taille );
Dans tous les cas tu m'a mis sur le chemin pour trouver ce que j'étais venu chercher, merci bien. En ce moment je suis summergé et j'étais bien content que tu me rende ce service.
:question) 8-) 8-) koukounet 8-) 8-) :question)
Voici ce qui est dis dans la javadoc à propos de la méthode setWidth():
This method should not be used to set the widths of columns in the
JTable, use setPreferredWidth instead.
Like a layout manager in the AWT, the jTable adjusts a column's width automatically whenever the table itself changes size, or a column's preferred width is changed.
Setting widths programmatically therefore has no long term effect.
This method sets this column's width to width.
If width exceeds the minimum or maximum width,
it is adjusted to the appropriate limiting value.