Ben tu peux par example lire la javadoc de JTable
* The "Table" directory in the examples/demo area gives a number of
complete
* examples of <code>JTable</code> usage, covering how the
<code>JTable</code> can be used to provide
* an editable view of data taken from a database and how to modify the
columns
* in the display to use specialized renderers and editors. For example,
overriding
* <code>AbstractTableModel</code>'s <code>getColumnClass</code> method to
return a value of
* <code>ImageIcon.class</code> for a given column allows icons to be
displayed,
* while returning a value of <code>Number.class</code> allows digits to be
* right-justified in the column.
Tu surchage la method getColumnClass de ton TableModel qui doit retourner
ImageIcon.class dans le cas d'une image.
Dominique
|---------+---------------------------->
| | "Clement |
| | Delalande" |
| | <[EMAIL PROTECTED]|
| | .net> |
| | |
| | 20/06/2003 19:11 |
| | Please respond to|
| | java |
| | |
|---------+---------------------------->
>------------------------------------------------------------------------------------------------------------------------------|
|
|
| To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
|
| cc: (bcc: Dominique Gallot/BRU/MASTERCARD)
|
| Subject: Re: rafraichir un JScrollPane
|
>------------------------------------------------------------------------------------------------------------------------------|
bonjour,
quelqu'un sait si on peut mettre un ImageIcon dans un JTable, quand
j'essaye le JTable m'affiche le path de l'image
une solution ?
merci a tous
clement
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************