
|
Problem with comboboxs that have custom renderer

Some parts of this message have been removed.
Learn more about Nabble's security policy.
Hi,
Comboboxs that have a custom renderer don’t render
rollover effects and selected item.
Attached is a sample small application that shows this
problem.
Thanks =)
P.S.: This does not happen with substance 4
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...
|

|
Re: Problem with comboboxs that have custom renderer
|

|
Re: Problem with comboboxs that have custom renderer

Some parts of this message have been removed.
Learn more about Nabble's security policy.
Not sure what did you mean in your reply - i haven't yet looked into the original question by Pedro. Thanks Kirill
|

|
Re: Problem with comboboxs that have custom renderer

Some parts of this message have been removed.
Learn more about Nabble's security policy.
Please see if [1] has the answer to your question. If marking your custom renderer as non-opaque doesn't work, i will take a look at this. Thanks Kirill [1] https://substance.dev.java.net/servlets/ReadMsg?list=users&msgNo=667 ----- Original Message ---- From: Pedro Duque Vieira < pedro.duquevieira@...> To: users@...Sent: Thursday, June 26, 2008 10:27:58 AM Subject: Problem with comboboxs that have custom renderer
Hi,
Comboboxs that have a custom renderer don’t render
rollover effects and selected item.
Attached is a sample small application that shows this
problem.
Thanks =)
P.S.: This does not happen with substance 4
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@...For additional commands, e-mail: users-help@...
|

|
RE: Problem with comboboxs that have custom renderer

Some parts of this message have been removed.
Learn more about Nabble's security policy.
Hi
Tried marking it as non-opaque
but still doesn’t work.
Thanks.
From: Kirill Grouchnikov
[mailto:kirillcool@...]
Sent: quinta-feira, 26 de Junho de 2008 22:07
To: users@...
Subject: Re: Problem with comboboxs that have custom renderer
Please see if [1] has the answer to your
question. If marking your custom renderer as non-opaque doesn't work, i will
take a look at this.
Thanks
Kirill
[1] https://substance.dev.java.net/servlets/ReadMsg?list=users&msgNo=667
----- Original Message ----
From: Pedro Duque Vieira <pedro.duquevieira@...>
To: users@...
Sent: Thursday, June 26, 2008 10:27:58 AM
Subject: Problem with comboboxs that have custom renderer
Hi,
Comboboxs that have a custom renderer don’t render rollover
effects and selected item.
Attached is a sample small application that shows this
problem.
Thanks =)
P.S.: This does not happen with substance 4
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...
|

|
Re: Problem with comboboxs that have custom renderer

Some parts of this message have been removed.
Learn more about Nabble's security policy.
Hi, There are two separate issues. The issue mentioned before was on the selected item. If you set your renderer to be non-opaque, you will have the highlight gradient painted beneath it (in 5.0). The second issue is the elements in the popup list itself. In version 5.0 the list cells are rendered differently than in 4.3. If the list cell renderer is not SubstanceDefautlListCellRenderer (or its extension), Substance will just ask the basic UI delegate to render the cell - this means no rollover and no selection highlights (just like in core look-and-feels). This has been a concious decision after seeing applications (especially NB) doing "crazy" things in their custom renderers, overriding paint(), paintComponent(), relying
on opacity behavior and other quirks. To get the full functionality of Substance highlight effects, it has always been recommended to extend SubstanceDefault*Renderer classes and not override the paint / paintComponent methods. Thanks Kirill ----- Original Message ---- From: Pedro Duque Vieira < pedro.duquevieira@...> To: users@...Sent: Thursday, June 26, 2008 2:33:10 PM Subject: RE: Problem with comboboxs that have custom renderer
Hi Tried marking it as non-opaque
but still doesn’t work. Thanks. From: Kirill Grouchnikov
[mailto:kirillcool@...] Sent: quinta-feira, 26 de Junho de 2008 22:07 To: users@... Subject: Re: Problem with comboboxs that have custom renderer Please see if [1] has the answer to your
question. If marking your custom renderer as non-opaque doesn't work, i will
take a look at this.
Thanks
Kirill
[1] https://substance.dev.java.net/servlets/ReadMsg?list=users&msgNo=667 ----- Original Message ----
From: Pedro Duque Vieira <pedro.duquevieira@...>
To: users@...
Sent: Thursday, June 26, 2008 10:27:58 AM
Subject: Problem with comboboxs that have custom renderer Hi, Comboboxs that have a custom renderer don’t render rollover
effects and selected item. Attached is a sample small application that shows this
problem. Thanks =) P.S.: This does not happen with substance 4 ---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...
|

|
Re: Problem with comboboxs that have custom renderer
Kirill Grouchnikov wrote:
> To get the full functionality of Substance highlight effects, it has
> always been recommended to extend SubstanceDefault*Renderer classes and
> not override the paint / paintComponent methods.
great extending the SubstanceDefaultListCellRenderer class and all works fine!
|

|
Re: Problem with comboboxs that have custom renderer

Some parts of this message have been removed.
Learn more about Nabble's security policy.
For comboboxes it would be SubstanceDefaultComboBoxRenderer Thanks Kirill
|

|
RE: Problem with comboboxs that have custom renderer

Some parts of this message have been removed.
Learn more about Nabble's security policy.
Hello Kirill,
I made my renderer extend
SubstanceDefaultRenderer instead of just implementing ListCellRenderer, and now
it works fine.
Thanks.
From: Kirill Grouchnikov
[mailto:kirillcool@...]
Sent: quinta-feira, 26 de Junho de 2008 23:40
To: users@...
Subject: Re: Problem with comboboxs that have custom renderer
Hi,
There are two separate issues. The issue mentioned before was on the selected
item. If you set your renderer to be non-opaque, you will have the highlight
gradient painted beneath it (in 5.0).
The second issue is the elements in the popup list itself. In version 5.0 the
list cells are rendered differently than in 4.3. If the list cell renderer is
not SubstanceDefautlListCellRenderer (or its extension), Substance will just
ask the basic UI delegate to render the cell - this means no rollover and no selection
highlights (just like in core look-and-feels). This has been a concious
decision after seeing applications (especially NB) doing "crazy"
things in their custom renderers, overriding paint(), paintComponent(), relying
on opacity behavior and other quirks.
To get the full functionality of Substance highlight effects, it has always
been recommended to extend SubstanceDefault*Renderer classes and not override
the paint / paintComponent methods.
Thanks
Kirill
----- Original Message ----
From: Pedro Duque Vieira <pedro.duquevieira@...>
To: users@...
Sent: Thursday, June 26, 2008 2:33:10 PM
Subject: RE: Problem with comboboxs that have custom renderer
Hi
Tried marking it as non-opaque
but still doesn’t work.
Thanks.
From: Kirill Grouchnikov
[mailto:kirillcool@...]
Sent: quinta-feira, 26 de Junho de 2008 22:07
To: users@...
Subject: Re: Problem with comboboxs that have custom renderer
Please see if [1] has the answer to your
question. If marking your custom renderer as non-opaque doesn't work, i will
take a look at this.
Thanks
Kirill
[1] https://substance.dev.java.net/servlets/ReadMsg?list=users&msgNo=667
----- Original Message ----
From: Pedro Duque Vieira <pedro.duquevieira@...>
To: users@...
Sent: Thursday, June 26, 2008 10:27:58 AM
Subject: Problem with comboboxs that have custom renderer
Hi,
Comboboxs that have a custom renderer don’t render rollover
effects and selected item.
Attached is a sample small application that shows this
problem.
Thanks =)
P.S.: This does not happen with substance 4
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...
|

|
Re: Problem with comboboxs that have custom renderer

Some parts of this message have been removed.
Learn more about Nabble's security policy.
Hi, I'm glad to hear that it works now. Thanks Kirill ----- Original Message ---- From: Pedro Duque Vieira < pedro.duquevieira@...> To: users@...Sent: Friday, June 27, 2008 8:05:15 AM Subject: RE: Problem with comboboxs that have custom renderer
Hello Kirill,
I made my renderer extend
SubstanceDefaultRenderer instead of just implementing ListCellRenderer, and now
it works fine.
Thanks.
From: Kirill Grouchnikov
[mailto:kirillcool@...]
Sent: quinta-feira, 26 de Junho de 2008 23:40
To: users@...
Subject: Re: Problem with comboboxs that have custom renderer
Hi,
There are two separate issues. The issue mentioned before was on the selected
item. If you set your renderer to be non-opaque, you will have the highlight
gradient painted beneath it (in 5.0).
The second issue is the elements in the popup list itself. In version 5.0 the
list cells are rendered differently than in 4.3. If the list cell renderer is
not SubstanceDefautlListCellRenderer (or its extension), Substance will just
ask the basic UI delegate to render the cell - this means no rollover and no selection
highlights (just like in core look-and-feels). This has been a concious
decision after seeing applications (especially NB) doing "crazy"
things in their custom renderers, overriding paint(), paintComponent(), relying
on opacity behavior and other quirks.
To get the full functionality of Substance highlight effects, it has always
been recommended to extend SubstanceDefault*Renderer classes and not override
the paint / paintComponent methods.
Thanks
Kirill
----- Original Message ----
From: Pedro Duque Vieira <pedro.duquevieira@...>
To: users@...
Sent: Thursday, June 26, 2008 2:33:10 PM
Subject: RE: Problem with comboboxs that have custom renderer
Hi
Tried marking it as non-opaque
but still doesn’t work.
Thanks.
From: Kirill Grouchnikov
[mailto:kirillcool@...]
Sent: quinta-feira, 26 de Junho de 2008 22:07
To: users@...
Subject: Re: Problem with comboboxs that have custom renderer
Please see if [1] has the answer to your
question. If marking your custom renderer as non-opaque doesn't work, i will
take a look at this.
Thanks
Kirill
[1] https://substance.dev.java.net/servlets/ReadMsg?list=users&msgNo=667
----- Original Message ----
From: Pedro Duque Vieira <pedro.duquevieira@...>
To: users@...
Sent: Thursday, June 26, 2008 10:27:58 AM
Subject: Problem with comboboxs that have custom renderer
Hi,
Comboboxs that have a custom renderer don’t render rollover
effects and selected item.
Attached is a sample small application that shows this
problem.
Thanks =)
P.S.: This does not happen with substance 4
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...
|