UIManager strings [duplicate]

大兔子大兔子 提交于 2019-12-24 18:27:41

问题


Possible Duplicate:
Location of String keys in L&F

This here is a line in my code:

UIManager.getString("FileChooser.saveButtonText", l);

This will return a string that represents text printed on save button of JFileChooser

Where does it fetch that string from? I tried digging around src.zip, but I couldn't find it...


回答1:


  1. have look at (methods are protected, then not accesible from outside)

    • JButton getDefaultButton(JFileChooser fc)

    • Method Summary

  2. better way(my view) could be to ignore BasicXxxUI and to derive JFileChooser to the elements, that returns JFileChoosers JComponents

  3. look for Custom JFilechooerUI and another list of methods



来源:https://stackoverflow.com/questions/12533253/uimanager-strings

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!