Daniel Schneller
Daniel Schneller

Reputation: 13926

Swing tweaks for Mac OS X

I remember having once seen a list of properties that could be set on Swing components to make them look more native on Mac OS X. This included ways to mark "dirty" documents with the "dot" in the window close button, open dialogs as sheets (not sure about that, but sure would be nice) etc.

I know Apple has let Java down as a "primary" programming language, but as they recently updated Java and even offer Java 6, I wonder if there is a comprehensive and current list - ideally with examples - on what you can do to make Swing apps look better without much effort on the Mac.


After receiving some answers, I put this into community wiki mode and started the following list to be expanded if need be:


Upvotes: 13

Views: 2829

Answers (4)

Daniel Hiller
Daniel Hiller

Reputation: 3485

My personal link collection:

When clicking on some old links I'd been redirected to Java Design Guidelines and Java Guides, seems as though I have to update my links...

Upvotes: 1

Csaba_H
Csaba_H

Reputation: 8245

The Quaqua site may be interesting as well. From the site:

"The Quaqua Look and Feel (Quaqua) is a user interface library for Java applications which wish to closely adhere to the Apple Human Interface Guidelines for Mac OS X. ... It runs on top of Apple's Aqua Look and Feel, and provides fixes and enhancements for it."

It has a fairly good user guide with examples as well.

Upvotes: 3

Barry Wark
Barry Wark

Reputation: 107754

The Java Development Guide for Mac OS X has a Mac OS X Integration for Java section that is probably what you're looking for.

Upvotes: 2

pgb
pgb

Reputation: 25001

You can check this PDF at Apple, but it's marked as legacy.

On some applications, I'm still using com.apple.macos.useScreenMenuBar to have the Java application use the Mac OS X menu bar, and it still works in Leopard.

Upvotes: 1

Related Questions