它是如何做到的?以及如何在我的Swing应用程序中获得类似Intellij IDEA的外观和感觉呢?
Konstantin Bulenkov - 2013年6月12日 我找不到任何最近的跟进信息。"I'm working on making Darcula a stand alone LaF. The work is almost done and I'm ready to release Darcula v 1.0 alpha or something. This means that you will be able to run you apps like this:
$ java -cp "darcula.jar:myapplication.jar" -Dswing.laf=Darcula MainClass
And everything should work
I'll do an announce when Darcula is ready for publishing"
当前的IntelliJ IDEA版本中提供了3个主题:
Darcula主题作为一个独立的开源项目可供重用在你自己的应用中。
2011年的原始回答:
默认情况下,IDEA使用Alloy Look&Feel。它是一种商业的L&F,已经相当陈旧,并且没有更新。其中一个主要问题是它在大多数平台上都不支持反锯齿。
因此,对于Windows,我建议使用Windows L&F。对于Mac,IDEA已经使用了Mac特定的L&F。只有在Linux上,Alloy可能值得使用,因为大多数其他的L&F看起来非常丑陋,不过GTK可能是更好的选择。
非常感谢CrazyCoder,Harry Joy。
默认情况下,Intellij IDEA使用Alloy Look&Feel。这是一种商业L&F,已经相当老了,也没有更新。其中一个主要问题是它不支持大多数平台上的抗锯齿。
为了在不同的操作系统(如Mac OS X、Win、Linux)中保持一致性,Alloy Look&Feel可能是一个不错的选择。然而,我会使用像JGoodies这样的开源L&F。