Closed GoogleCodeExporter closed 9 years ago
Original comment by kenneth....@gmail.com
on 16 Aug 2009 at 7:24
Hi Meli,
Can you let me know if you still see this issue against the latest build?
You'll find the latest Mac Widgets for
Java build here:
http://www.macwidgetsforjava.com/downloads/latest/mac_widgets.jar
Thanks,
-Ken
Original comment by kenneth....@gmail.com
on 21 Aug 2009 at 10:59
Hi Ken,
thanks for the update. I tried the new jar with the following code attached as
Main.java
and it still does not look unified (see picture attached).
Thanks,
Melissa
Original comment by meli.amo...@gmail.com
on 21 Aug 2009 at 2:10
Attachments:
Hi Melissa,
It looks like your missing this call:
MacUtils.makeWindowLeopardStyle(frame.getRootPane());
Let me know if that fixes it.
-Ken
Original comment by kenneth....@gmail.com
on 21 Aug 2009 at 2:33
It looks better but still not unified. Here is a screenshot so you can compare.
thanks,
Original comment by meli.amo...@gmail.com
on 27 Aug 2009 at 12:43
Attachments:
I am facing the same problem with the unified toolbar. It can be avoided by
setting
System.setProperty("apple.awt.brushMetalLook", "true");
and not using the UnifiedToolbar afterwards.
One can still use the unifiedToolBarButtons though.
Example:
JPanel toolBar = new JPanel(new FlowLayout(FlowLayout.LEFT));
toolBar.add(MacButtonFactory
.makeUnifiedToolBarButton(myButton));
Unfortunately, the property apple.awt.brushMetalLook seems to be not working
correctly in 10.5 and the
latest Java 1.6 version.
Original comment by dra...@gmail.com
on 31 Aug 2009 at 11:22
I turned on custom background painting, but it sounds like I can let OS X do
the Unified Toolbar painting. I'll
look at this as soon as I install Snow Leopard.
Original comment by kenneth....@gmail.com
on 31 Aug 2009 at 1:54
Issue 124 has been merged into this issue.
Original comment by kenneth....@gmail.com
on 31 Aug 2009 at 5:24
I found out it's also possible to just use
MacUtils.makeWindowLeopardStyle(this.getRootPane()) instead of the Apple
System Property awt.brushMetalLook. The following code creates a toolbar which
fits nicely into the Snow Leopard l&f:
MacUtils.makeWindowLeopardStyle(this.getRootPane());
JPanel toolBar = new JPanel(new FlowLayout(FlowLayout.LEFT));
toolBar.add(MacButtonFactory.makeUnifiedToolBarButton(myButton));
this.add(toolBar, BorderLayout.NORTH);
Original comment by dra...@gmail.com
on 31 Aug 2009 at 9:29
The fix for this is available here:
http://www.macwidgetsforjava.com/downloads/latest/mac_widgets.jar
Please let me know if there are any issues.
Original comment by kenneth....@gmail.com
on 5 Sep 2009 at 6:49
It works, I've tested it on 10.6 and 10.5.
Thanks for the fast bugfix, keep up the good work!
Original comment by dra...@gmail.com
on 7 Sep 2009 at 7:17
Great, thanks for the feedback.
Original comment by kenneth....@gmail.com
on 7 Sep 2009 at 11:39
Original issue reported on code.google.com by
meli.amo...@gmail.com
on 13 Aug 2009 at 1:51