This may no longer be one of those since we can scroll the tabs on our

config editor


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5825 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Dave Hoover
2009-06-16 22:13:45 +00:00
parent 3a2fe8329c
commit 09b965dae5
@@ -21,6 +21,7 @@
package com.threerings.admin.client;
import java.awt.Component;
import java.util.Comparator;
import javax.swing.JLabel;
@@ -95,10 +96,12 @@ public class ConfigEditorPanel extends JPanel
// when we're hidden, we want to clear out our subscriptions
int ccount = _oeditors.getComponentCount();
for (int ii = 0; ii < ccount; ii++) {
JScrollPane scrolly = (JScrollPane)_oeditors.getComponent(ii);
ObjectEditorPanel opanel = (ObjectEditorPanel)
scrolly.getViewport().getView();
opanel.cleanup();
Component comp = _oeditors.getComponent(ii);
if (comp instanceof JScrollPane) {
JScrollPane scrolly = (JScrollPane)comp;
ObjectEditorPanel opanel = (ObjectEditorPanel)scrolly.getViewport().getView();
opanel.cleanup();
}
}
_oeditors.removeAll();
}