void (PropertyChangeEvent e) { if (Content.PROP_DISPLAY_NAME.equals(e.getPropertyName())) { Content content = (Content)e.getSource(); int index = myTabbedPaneWrapper.indexOfComponent(content.getComponent()); if (index != -1) { myTabbedPaneWrapper.setTitleAt(index, content.getTabName()); } } else if (Content.PROP_DESCRIPTION.equals(e.getPropertyName())) { Content content = (Content)e.getSource(); int index = myTabbedPaneWrapper.indexOfComponent(content.getComponent()); if (index != -1) { myTabbedPaneWrapper.setToolTipTextAt(index, content.getDescription()); } } else if (Content.PROP_COMPONENT.equals(e.getPropertyName())) { Content content = (Content)e.getSource(); JComponent oldComponent = (JComponent)e.getOldValue(); int index = myTabbedPaneWrapper.indexOfComponent(oldComponent); if (index != -1) { boolean hasFocus = IJSwingUtilities.hasFocus2(oldComponent); myTabbedPaneWrapper.setComponentAt(index, content.getComponent()); if (hasFocus) { content.getComponent().requestDefaultFocus(); } } } else if (Content.PROP_ICON.equals(e.getPropertyName())) { Content content = (Content)e.getSource(); int index = myTabbedPaneWrapper.indexOfComponent(content.getComponent()); if (index != -1) { myTabbedPaneWrapper.setIconAt(index, (Icon)e.getNewValue()); } } }