
Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
> I suppose it is theoretically possible to put a JComboBox in a
> datatable, and render it with a custom component that adds it to a
It is absolutely possible.
If renderer doesn't know how to handle (draw) given class
- it will call toString() and show it.
Example:
javax.swing.JComboBox[,0,0,0x0,invalid,layout=javax.swing.plaf.metal.MetalComboBoxUI$MetalComboBoxLayoutManager,alignmentX=null,alignmentY=null,border=,flags=328,maximumSize=,minimumSize=,preferredSize=,isEditable=false,lightWeightPopupEnabled=true,maximumRowCount=8,selectedItemReminder=]
Roedy Green - 09 Oct 2005 01:03 GMT
>It is absolutely possible.
>If renderer doesn't know how to handle (draw) given class
>- it will call toString() and show it.
>Example:
>javax.swing.JComboBox[,0,0,0x0,invalid,layout=javax.swing.plaf.metal.MetalComboBoxUI$MetalComboBoxLayoutManager,alignmentX=null,alignmentY=null,border=,flags=328,maximumSize=,minimumSize=,preferredSize=,isEditable=false,lightWeightPopupEnabled=true,maximumRowCount=8,selectedItemReminder=]
Which would be a good candidate for best violation of the principle of
least surprise. Oddly that is not what he was claiming happened. For
some reason his application "crashed" though he has not made clear
what he meant by that.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.