taoujouti / macwidgets

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

JDialog won't turn into Leopard style #115

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
MacUtils.makeWindowLeopardStyle(getRootPane());

Doesn't seem to work on JDialogs.

Original issue reported on code.google.com by Nephir...@gmail.com on 25 Jul 2009 at 9:27

GoogleCodeExporter commented 9 years ago
http://explodingpixels.wordpress.com/2008/05/02/sexy-swing-app-the-unified-toolb
ar/

Just found that blog post where there is discussion going on about it. Since 
it's a client property, I suppose it's 
Apple's problem?

Original comment by Nephir...@gmail.com on 25 Jul 2009 at 9:35

GoogleCodeExporter commented 9 years ago
I've added code to workaround the issue, though I haven't tried it on JDialogs. 
What happens when you call:

MacUtils.makeWindowLeopardStyle(getRootPane());

Nothing at all? How about when you manually try to install client properties 
other than the textured window one 
(e.g. apple.awt.draggableWindowBackground)?

Original comment by kenneth....@gmail.com on 27 Jul 2009 at 3:04

GoogleCodeExporter commented 9 years ago
The Dialog doesn't change at all, no. And no, I haven't tried that.

Original comment by Nephir...@gmail.com on 27 Jul 2009 at 4:02

GoogleCodeExporter commented 9 years ago
Apple bug.

Original comment by kenneth....@gmail.com on 27 Jul 2009 at 4:35

GoogleCodeExporter commented 9 years ago
Worked around by making it a JFrame.

Original comment by Nephir...@gmail.com on 27 Jul 2009 at 4:41