【问题标题】:UIManager strings [duplicate]UIManager 字符串 [重复]
【发布时间】:2012-09-21 15:09:26
【问题描述】:

可能重复:
Location of String keys in L&F

这是我的代码中的一行:

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

这将返回一个string,表示打印在JFileChooser的保存按钮上的文本

它从哪里获取string? 我尝试挖掘 src.zip,但我找不到它...

【问题讨论】:

标签: java swing jfilechooser nimbus uimanager


【解决方案1】:
  1. 看看(方法受到保护,然后无法从外部访问)

  2. 更好的方法(我的观点)可能是忽略BasicXxxUI 并将JFileChooser 派生到元素,从而返回JFileChoosers JComponents

  3. 寻找Custom JFilechooerUIanother list of methods

猜你喜欢
  • 2017-12-28
  • 2010-09-12
  • 2021-10-18
  • 1970-01-01
  • 2020-04-20
  • 2010-09-17
  • 1970-01-01
  • 2023-03-09
相关资源
最近更新 更多