• Post Reply Bookmark Topic Watch Topic
  • New Topic

MacLookAndFeel  RSS feed

 
Stephen Zhang
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

is there any other way to implement MacLookAndFeel on Windows OS since "plaf.mac.MacLookAndFeel" has been removed from "javax.swing" ??? Any library can be used to make frame looks like Mac does on Winodws OS?


cheers!
 
Brian Cole
Author
Ranch Hand
Posts: 936
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're trying to do this for testing, you can
download MacMetrics.jar from here and invoke it with javax.swing.plaf.metal.MetalLookAndFeel.setCurrentTheme(new MacMetricsTheme()).

This doesn't give you the mac LnF, but it alters
metal so that its widgets match sizes with the
mac LnF. Or at least it did four years ago, I
don't think it has been updated since then.
 
Stephen Zhang
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Brain,

the MacMetrics.jar did work, but didn't change frame too much. still appreciate it.

so, "MacLookAndFeel" can only native to MAC OS ???
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I know, it's not a technical issue, but rather a licensing issue preventing the use of the MacLookAndFeel on platforms other than Macs.
 
Kirill Grouchnikov
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The default theme of Substance look-and-feel [1] can be used to provide something similar to Aqua. In addition, the Quaqua look-and-feel [2] provides much better emulation, but it's officially supported only on Mac. The main reasons for MacLookAndFeel not being available on Windows, as well as WindowsLookAndFeel not being available on Mac is that the implementation uses native API to render the controls.

[1] https://substance.dev.java.net
[2] http://www.randelshofer.ch/quaqua/download.html
 
Stephen Zhang
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot for helpful info and urls, Kirill!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!