View Single Post
  #3  
Old April 12th, 2003, 05:44 AM
symphonix's Avatar
symphonix symphonix is offline
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