UIManager字符串 [英] UIManager strings
本文介绍了UIManager字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能重复:
L& F中字符串键的位置
Possible Duplicate:
Location of String keys in L&F
这是我的代码中的一行:
This here is a line in my code:
UIManager.getString("FileChooser.saveButtonText", l);
这将返回一个string
,代表在JFileChooser
This will return a string
that represents text printed on save button of JFileChooser
它从哪里获取string
?
我尝试在src.zip中进行挖掘,但是找不到它...
Where does it fetch that string
from?
I tried digging around src.zip, but I couldn't find it...
推荐答案
-
已查看(方法受保护,因此无法从外部访问)
have look at (methods are protected, then not accesible from outside)
-
更好的方式(我的观点)可能是忽略
BasicXxxUI
并将派生JFileChooser
到元素,该元素返回JFileChooser
sJComponent
sbetter way(my view) could be to ignore
BasicXxxUI
and to deriveJFileChooser
to the elements, that returnsJFileChooser
sJComponent
s查找自定义JFilechooerUI 和 查看全文