public void propertyChange(PropertyChangeEvent ev)
{
// If help pane was garbage collected, remove this listener from preferences
HelpPane helpPane = this.helpPane.get();
UserPreferences preferences = (UserPreferences) ev.getSource();
if (helpPane == null)
{
preferences.removePropertyChangeListener(UserPreferences.Property.LANGUAGE, this);
}
else
{
// Update frame title and search label with new locale
if (helpPane.frame != null)
{
helpPane.frame.setTitle(preferences.getLocalizedString(HelpPane.class, "helpFrame.title"));
helpPane.frame.applyComponentOrientation(ComponentOrientation.getOrientation(Locale.getDefault()));
}
helpPane.searchLabel
.setText(SwingTools.getLocalizedLabelText(preferences, HelpPane.class, "searchLabel.text"));
helpPane.searchTextField.setText("");
helpPane.setMnemonics(preferences);
}
}
HelpPane.java 文件源码
java
阅读 28
收藏 0
点赞 0
评论 0
项目:SweetHome3D
作者:
评论列表
文章目录