Small UI tweaks to Fastpath.

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@4961 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Derek DeMoro 2006-08-18 04:41:36 +00:00 committed by derek
parent 21d564cb3b
commit d538849af2

View File

@ -317,12 +317,9 @@ public class SparkTabbedPane extends JPanel implements MouseListener {
}
public void removeComponent(Component comp) {
Component[] comps = mainPanel.getComponents();
for (int i = 0; i < comps.length; i++) {
Component c = comps[i];
if (c == comp) {
}
int index = indexOfComponent(comp);
if (index != -1) {
removeTabAt(index);
}
}