jcamilodo / seaglass

Automatically exported from code.google.com/p/seaglass
0 stars 0 forks source link

Disabled JButtons on JToolBar should disable both the button icons and text. #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a JToolbar with a disabled JButton with an icon

What is the expected output? What do you see instead?
     The JButton's icon is grayed out but the text is not. The text and icon of a toolbar button should both be grayed out.

What version of the product are you using? On what operating system? What
JRE version?
     Java 6u16. Windows XP, SP3

Please provide any additional information below.
     I've been told this is a problem in Nimbus too, so as the remaining Nimbus deps disappear this might provide a chance to fix it.

Original issue reported on code.google.com by mcbain....@gmail.com on 14 Jun 2010 at 4:50

GoogleCodeExporter commented 9 years ago
We'll fix it in Sea Glass. We have no control over Nimbus.

Original comment by kahuxtable on 5 Jul 2010 at 1:29

GoogleCodeExporter commented 9 years ago
Actually, I can't verify this. It seems to work for me with Java 1.6.0_20-b02 
on Windows XP SP3.

Can you upgrade your Java and verify? We document this as working with 1.6u17 
and later.

(In fact, I know it won't work with 1.7, but that's not technically released 
yet.)

Original comment by kahuxtable on 9 Jul 2010 at 2:33

GoogleCodeExporter commented 9 years ago
I added an icon to "button3" in TestToolBar in seaglass-demo. I can't replicate 
the behavior.

Original comment by kahuxtable on 9 Jul 2010 at 2:36

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Sorry, it still happens here. I'll attach a test case and an image. This is 
with Java 1.6 update 21. It seems to me that the text doesn't gray out like the 
icon does. It still appears black.

With the cross-platform L&F, both the icon and the text go gray.

Original comment by mcbain....@gmail.com on 9 Jul 2010 at 6:06

Attachments:

GoogleCodeExporter commented 9 years ago
Okay, I can replicate it. Thanks!

Original comment by kahuxtable on 9 Jul 2010 at 7:07

GoogleCodeExporter commented 9 years ago
I can't see that the presence or absence of an icon makes a difference. It's 
having the button be in a toolbar. Hmm...

Original comment by kahuxtable on 9 Jul 2010 at 7:26

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1568.

Original comment by kahuxtable on 9 Jul 2010 at 7:45