image
image

Go Back   macosx.com > Design, Media, Programming & Scripting > Software Programming & Web Scripting

Reply
 
LinkBack Thread Tools
  #1  
Old April 11th, 2003, 08:14 PM
Official Mac User
 
Join Date: Sep 2001
Location: WN, Germany
Posts: 298
Thanks: 0
Thanked 0 Times in 0 Posts
Dradts is on a distinguished road
Question Brushed metal LaF in Java Apps?

Hi y'all,

I wonder whether its possible to activate the brushed metal UI in Java apps? I've written a small app for document version management. Currently its using the standard Aqua UI, but I guess the app would look much better with brushed metal on it. Is there anything I can do?
Like a system property or something?

Thx in advance,
Dradts
__________________
iMac DV SE 500 / 640 MB RAM / 30 GB HD / 8 MB ATI RAGE PRO 128 / MacOS 9.2.2 / MacOS X 10.2.2 ; Performa 5300 / 32 MB RAM / 1,2 GB HD / 1 MB VRAM / MacOS 9.1 ; Performa 630 / 24 MB RAM / 500 MB HD / 1 MB VRAM / DOS Compatible / MacOS 8
Reply With Quote
  #2  
Old April 12th, 2003, 01:04 AM
wiz wiz is offline
Registered User
 
Join Date: Jul 2002
Location: Sol
Posts: 537
Thanks: 0
Thanked 0 Times in 0 Posts
wiz is on a distinguished road
i think u could develop ur UI though interface builder! then use the Java-Cocoa API and get things working!
Reply With Quote
  #3  
Old April 12th, 2003, 06:44 AM
symphonix's Avatar
Scratch & Sniff Committee
 
Join Date: Jul 2001
Location: The Australian Jungles
Posts: 4,025
Thanks: 2
Thanked 5 Times in 4 Posts
symphonix is on a distinguished road
I could not find the Cocoa-metal look-and-feel anywhere in the Apple Java API, but I'm confident it should be in there somewhere... but it probably isn't actually listed or might require a bit of hacking-around to figure out.

You can, however, use Java's metal Look-&-Feel (or Motif, or Windows L&F apparently)

Here's a code snippet for you:

// Set Look & Feel
try
{
UIManager.setLookAndFeel("com.sun.javax.swing.plaf.metal.MetalLookAndFeel");
}
catch (ClassNotFoundException e) {}
catch (InstantiationException e) {}
catch (UnsupportedLookAndFeelException e) {}
catch (IllegalAccessException e) {}
__________________
- iMac G5 1.8GHZ 17" | SuperDrive | 160GB | 512MB | Airport Extreme | Bluetooth Keyboard & Mouse | Wacom Intuos II
- Pentax *ist DL - JVC MiniDV Camcorder - Airport Express - iPod Nano 1gb white
Reply With Quote
  #4  
Old April 12th, 2003, 07:00 AM
Official Mac User
 
Join Date: Sep 2001
Location: WN, Germany
Posts: 298
Thanks: 0
Thanked 0 Times in 0 Posts
Dradts is on a distinguished road
BM

Hi Symphonix,

I know how to use the standard Swing Look and Feels. I've already implemented a switch for easy changing between Aqua, Metal and Motif (which is in my opinion the ugliest interface I've ever seen) LaF. I just want to also implement a switch to be able to switch from "normal" System look and feel to brushed metal look and feel on MacOS. I don't want to implement a nib-file for the user interface because the application needs to be able to be run on MacOS X, Windows and Linux without recompiling it.
I know that its not possible to have the bm-LaF on Windows or Linux, but it would be cool to have that on the mac-side.
But it seems to me that theres not yet a way to implement that. Hopefully apple will change that soon. Like having a system property "com.apple.mrj.LaF.setBrushedMetal","True" 8-)
__________________
iMac DV SE 500 / 640 MB RAM / 30 GB HD / 8 MB ATI RAGE PRO 128 / MacOS 9.2.2 / MacOS X 10.2.2 ; Performa 5300 / 32 MB RAM / 1,2 GB HD / 1 MB VRAM / MacOS 9.1 ; Performa 630 / 24 MB RAM / 500 MB HD / 1 MB VRAM / DOS Compatible / MacOS 8
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting 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 Off
Pingbacks are Off
Refbacks are Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Brushed metal UI weaselworld Mac OS X System & Mac Software 7 January 17th, 2003 10:06 PM
theming error, brushed apps messed up! ...HELP! ~~NeYo~~ Mac OS X System & Mac Software 4 January 14th, 2003 02:15 PM
Window Widgets Disapeared in Brushed Metal Apps Sogni Mac OS X System & Mac Software 3 December 31st, 2002 05:31 PM
Brushed Metal lonny Apple News, Rumors & Discussion 8 May 10th, 2002 08:38 AM
I need to learn Java Nachohat Apple News, Rumors & Discussion 42 October 8th, 2001 10:05 PM


All times are GMT -5. The time now is 08:34 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC1
Copyright 2000-2010 DigitalCrowd, Inc.