Hi Les,

First of all to see the background color on your custom renderer you must do
the following:


             public SampleRenderer() {
                 fLabel = new ULCLabel();
>>>>             fLabel.setOpaque(true);
             }

If you do this, the selection shows up, even in Windows Look And Feel.

Now why is setOpaque affecting display of selected value in Windows Look And
Feel? I will look at Swing source to figure this out and let you know.

In the meantime you can get going by making the above change.

BTW, I have created an issue about the error in Javadoc of
IComboBoxCellRenderer:
https://www.canoo.com/jira/browse/UBA-7069

Thanks and regards,

Janak


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Les Thomas
Sent: Thursday, October 26, 2006 2:45 AM
To: [EMAIL PROTECTED]
Cc: 'Les Thomas'
Subject: [ULC-developer] Windows LNF ComboBoxRenderer bug


Hi,

I discovered a bug with ComboBoxCellRenderer  when using the Windows Look
and Feel.  The selected item doesn't show in the ComboBox.   I used the
example renderer from the Canoo api.   Attached is a test case.

Any suggestions?  I assume I will need to create an extension.

Thanks,

Les

_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer

Reply via email to