Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > brushed metal in java

brushed metal in java
Thread Tools
Mac Elite
Join Date: Jun 2003
Location: Alabama
Status: Offline
Reply With Quote
Aug 18, 2004, 08:23 PM
 
does anyone know how to apply the panther brushed metal interface in java (not cocoa java). would be much appreciated.


mafia
http://www.mafia-designs.com
     
Mac Elite
Join Date: Aug 2001
Status: Offline
Reply With Quote
Aug 18, 2004, 08:38 PM
 
Just say No to brushed metal

No idea, my guess is that it's not supported, but they might have made a look and feel for it.
     
Mafia  (op)
Mac Elite
Join Date: Jun 2003
Location: Alabama
Status: Offline
Reply With Quote
Aug 18, 2004, 08:51 PM
 
it is supported in 1.4

apple has a pdf about it but does not say how to set it


mafia
http://www.mafia-designs.com
     
Registered User
Join Date: Feb 2003
Status: Offline
Reply With Quote
Aug 19, 2004, 07:14 AM
 
It is an .plist property

Look here:

file:///Developer/Documentation/Java/Reference/Java141SysProperties/System_Properties/index.html

The one of interest is apple.awt.brushMetalLook

Then you set it in your main function like this:

System.setProperty("apple.awt.showGrowBox", "true");
System.setProperty("apple.awt.antialiasing", "true");
System.setProperty("apple.awt.window.position.forc eSafeUserPositioning", "true");
System.setProperty("apple.awt.brushMetalLook", "true");

Or in the plist file when you package as a bundles. Play with it I got it working a while back.
     
Mac Elite
Join Date: Sep 2000
Location: in front of the keyboard
Status: Offline
Reply With Quote
Aug 19, 2004, 09:58 AM
 
Just like you would any other look and feel.

http://java.sun.com/docs/books/tutor...misc/plaf.html
signatures are a waste of bandwidth
especially ones with political tripe in them.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:10 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2