mirror of
https://github.com/igniterealtime/Spark.git
synced 2026-08-18 11:10:02 +00:00
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:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user