Mustang and Mac OS X, Part 2
In the meantime to my last blog about Mustang on Mac OS X Apple release three more developer previews. Today I want write about the news in DP5 which you can get here.
( 4110491 ) apple.awt.brushMetalRounded is broken for JFrames is fixed
When I remember right, brushMetalRounded come with Mac OS X 10.4, but was broken all the time. So now Java developer also can use the iTunes 5, iCal or addressbook stile.

Mustang has new Modality API, and DP5 brings a nice property for this.
If you create code like this:
JFrame f = new JFrame();
You get this, with all native effects:
JDialog d = new JDialog(f, Dialog.ModalityType.DOCUMENT_MODAL);
d.getRootPane().putClientProperty("apple.awt.documentModalSheet", "true");

apple.awt.smallTitleBar, what should I say about? Example:
JFrame f = new JFrame();
Screenshot:
f.getRootPane().putClientProperty("apple.awt.smallTitleBar", "true");

This is not all, check out the release note.
- Login or register to post comments
- Printer-friendly version
- lordy's blog
- 1344 reads





