> JOptionPane or JList can handle array values correctly, however when I
> use a table I get something like L[java.langString... when I expect a
> combobox. I tried to modify model of table to specify String[].class
> as type of cell, but it didn't help. Any ideas?
you need proper TableCellRenderer.
____________
http://reader.imagero.com the best java image reader.
Steve W. Jackson - 12 Jan 2004 20:01 GMT
>:> JOptionPane or JList can handle array values correctly, however when I
>:> use a table I get something like L[java.langString... when I expect a
>:> combobox. I tried to modify model of table to specify String[].class
>:> as type of cell, but it didn't help. Any ideas?
>:
>:you need proper TableCellRenderer.
As a matter of fact, the API documentation includes a reference link to
the tutorial material that addresses this subject pretty well. It's
where I turned recently when working on a new feature that needed to
have a well behaved JTable. It's at <http://java.sun.com/docs/books/tutorial/uiswing/components/table.html>.
= Steve =

Signature
Steve W. Jackson
Montgomery, Alabama