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.

But we are still waiting for Apple Mail 2.1 and iTunes 6 stile.
Mustang has new Modality API, and DP5 brings a nice property for this.
If you create code like this:
JFrame f = new JFrame();<br/>
JDialog d = new JDialog(f, Dialog.ModalityType.DOCUMENT_MODAL);<br/>
d.getRootPane().putClientProperty("apple.awt.documentModalSheet", "true");<br/>You get this, with all native effects:

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

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





