简体   繁体   English

广泛的L&F修改

[英]Extensive L&F modification

I want to use multiple L&Fs in my application, but that makes translating my application very complicated, due to differences between various L&Fs... 我想在我的应用程序中使用多个L&F,但由于各种L&F之间的差异,这使得我的应用程序翻译变得非常复杂......

So I thought to myself, why don't I download L&F I want to use and then edit them in a way they all have, eg same key for same component name parts, making translating it during runtime far more simple... 所以我想,为什么我不下载我想要使用的L&F然后以他们所有的方式编辑它们,例如相同组件名称部分的相同键,使得在运行时翻译它更简单...

It'd like to use, for one, Nimbus L&F, but I don't know where to find the it's source code (or files) that I can edit... 它想使用Nimbus L&F,但我不知道在哪里可以找到我可以编辑的源代码(或文件)......

I know it's included in newest Java (which I have, both JRE and SDK), but I just don't know where to find it... Google just keeps showing pages on how to set it... 我知道它包含在最新的Java(我有JRE和SDK)中,但我只是不知道在哪里找到它...谷歌只是一直在显示如何设置它...

Well the complete source for the JDK is at the path: 那么JDK的完整源代码就在路径上:

C:\\Program Files\\Java\\jdk1.7.0_06\\src.zip C:\\ Program Files \\ Java \\ jdk1.7.0_06 \\ src.zip

and within that zip the path to nimbus source is: 在那个zip中,nimbus源的路径是:

C:\\Program Files\\Java\\jdk1.7.0_06\\src.zip\\javax\\swing\\plaf\\nimbus\\ C:\\ Program Files \\ Java \\ jdk1.7.0_06 \\ src.zip \\ javax \\ swing \\ plaf \\ nimbus \\

Of course this is windows only, but *mix systems shouldnt differ in this respective apart from replacing C:\\Program Files\\ with the appropriate corresponding one 当然这只是windows,但是* mix系统除了用相应的相应的C:\\ Program Files \\替换之外不应该有所不同

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM