UIManager字符串 [英] UIManager strings

查看:135
本文介绍了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...

推荐答案

  1. 已查看(方法受保护,因此无法从外部访问)

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

  • 方法摘要

    更好的方式(我的观点)可能是忽略BasicXxxUI并将派生JFileChooser到元素,该元素返回JFileChooser s JComponent s

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

    查找自定义JFilechooerUI 查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆