else if (aComponent instanceof UserPanel) {
else if (aComponent.getClass() == UserPanel.class) {
    private int tabUpdate(String tabTitle, String message) {        int indexOfTab = findTab(tabbedPane, tabTitle);        if (indexOfTab != -1) {            Component aComponent = tabbedPane.getComponentAt(indexOfTab);            if (aComponent instanceof ChannelPanel) {                ( (ChannelPanel) aComponent).updateTextArea(message);                if (tabbedPane.getSelectedIndex() != indexOfTab) {                    tabbedPane.setBackgroundAt(indexOfTab, Color.red);                }                tabbedPane.revalidate();            }            else if (aComponent instanceof UserPanel) {                ( (UserPanel) aComponent).updateTextArea(message);                if (tabbedPane.getSelectedIndex() != indexOfTab) {                    tabbedPane.setBackgroundAt(indexOfTab, Color.red);                }                tabbedPane.revalidate();            }            else if (aComponent instanceof InitPanel) {                ( (InitPanel) aComponent).updateTextArea(message);                if (tabbedPane.getSelectedIndex() != indexOfTab) {                    tabbedPane.setBackgroundAt(indexOfTab, Color.red);                }                tabbedPane.revalidate();            }        }        return indexOfTab;    }