HelpPane.java 文件源码

java
阅读 28 收藏 0 点赞 0 评论 0

项目:SweetHome3D 作者:
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);
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号