public void propertyChange(PropertyChangeEvent ev) {
// If panel was garbage collected, remove this listener from preferences
FurnitureCatalogListPanel furnitureCatalogPanel = this.furnitureCatalogPanel.get();
UserPreferences preferences = (UserPreferences)ev.getSource();
if (furnitureCatalogPanel == null) {
preferences.removePropertyChangeListener(UserPreferences.Property.LANGUAGE, this);
} else {
furnitureCatalogPanel.categoryFilterLabel.setText(preferences.getLocalizedString(
FurnitureCatalogListPanel.class, "categoryFilterLabel.text"));
furnitureCatalogPanel.searchLabel.setText(preferences.getLocalizedString(
FurnitureCatalogListPanel.class, "searchLabel.text"));