-
Bug
-
Resolution: Fixed
-
P2
-
7u6
-
b84
-
os_x
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8018682 | 7u45 | Sergey Bylokhov | P2 | Closed | Fixed | b01 |
JDK-8013197 | 7u40 | Sergey Bylokhov | P2 | Closed | Fixed | b23 |
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.
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.
- backported by
-
JDK-8013197 [macosx] Button painting error under Java 7 on Mac
- Closed
-
JDK-8018682 [macosx] Button painting error under Java 7 on Mac
- Closed