Fixed duplicate room when roomname is the same.

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@4972 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Derek DeMoro
2006-08-19 03:15:56 +00:00
committed by derek
parent 86832813d0
commit 47bff7fdd9

View File

@ -152,7 +152,7 @@ public class SparkTabbedPane extends JPanel implements MouseListener {
tabs.add(tab);
// Add Component to main panel
mainPanel.add(tab.getActualText(), component);
mainPanel.add(Integer.toString(component.hashCode()), component);
tab.addMouseListener(this);
// Add Close Button
@ -401,7 +401,8 @@ public class SparkTabbedPane extends JPanel implements MouseListener {
public void setSelectedTab(SparkTab tab) {
CardLayout cl = (CardLayout)mainPanel.getLayout();
cl.show(mainPanel, tab.getActualText());
Component comp = getComponentInTab(tab);
cl.show(mainPanel, Integer.toString(comp.hashCode()));
tab.setBoldWhenActive(isActiveButtonBold());
deselectAllTabsExcept(tab);