|
#1
| |||
| |||
|
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 |
|
#2
| |||
| |||
|
i think u could develop ur UI though interface builder! then use the Java-Cocoa API and get things working!
|
|
#3
| ||||
| ||||
|
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 |
|
#4
| |||
| |||
| 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 |
![]() |
| Bookmarks |
| Thread Tools | |
|
|
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 |