United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-8000435 [macosx] Button painting error under Java 7 on Mac
JDK-8000435 : [macosx] Button painting error under Java 7 on Mac

Details
Type:
Bug
Submit Date:
2012-10-04
Status:
Closed
Updated Date:
2013-12-06
Project Name:
JDK
Resolved Date:
2013-03-18
Component:
client-libs
OS:
os_x
Sub-Component:
java.awt
CPU:
Priority:
P2
Resolution:
Fixed
Affected Versions:
7u6
Fixed Versions:

Related Reports
Backport:
Backport:

Sub Tasks

Description
JButtons are painted when embedded in JToolBars on Java 7 in combination with using the "segmentedTextured" client property button type seems not work well on Mac

Check screenshots for running demo app under Java 6 and Java 7 on Mac (OS X Mountain Lion):

Java 6:

The rightmost buttons have been polished to look more "Macish" with the help of the following code:
putClientProperty("JButton.buttonType", "segmentedTextured");


Java 7:

Executing the same code on Java 7 shows that the "segmentedTextured" client property of the buttons in the rightmost toolbar breaks the painting. At least it doesn't look good to have the buttons only painted to the left and right. When adding a 20x20 px icon to a button, it actually paints ok, so pretty certain that this is a painting bug.

Attached an executable jar file for this demo app and the source code.
                                    

Comments
Has this fix been integrated to the  master? 

It shows as fixed in build 'team'. That will be updated automatically when the integration takes place? 

-Roger

                                     
2013-03-28
Yes. it will be updated automatically.
                                     
2013-03-28
URL:   http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/4bf5a5a72664
User:  lana
Date:  2013-04-02 17:50:39 +0000

                                     
2013-04-02
Mac evaluation is needed.
                                     
2012-10-09
it is a showstopper issue that keep the CAP member from releasing their apps on Mac
                                     
2012-12-05
his painting bug sadly still persists on build 1.7.0_15-b03 for Mac OSX. This issue keeps CAP member from releasing jAlbum in AppStore bundled with Java 7 and should be addressed asap.


                                     
2013-03-05
Suggested fix:
http://cr.openjdk.java.net/~serb/8000435/
                                     
2013-03-12
URL:   http://hg.openjdk.java.net/jdk8/awt/jdk/rev/4bf5a5a72664
User:  serb
Date:  2013-03-18 18:11:56 +0000

                                     
2013-03-18
PS. jAlbum is i pretty frequent use these days. There are about 7000 new jAlbum albums being uploaded to the internet every day. However, this issue, sadly they still do development on JDK6 for this reason.
                                     
2013-03-28
CAP member had verified this issue had been resolved in the JDK8 b84 and hope got it back port to 7u release asap, so they could migrate to 7u release.
                                     
2013-04-08
Verified!
                                     
2013-05-15



Hardware and Software, Engineered to Work Together