From 09b965dae5ddfda439e74b27399ab424b5c5035e Mon Sep 17 00:00:00 2001 From: Dave Hoover Date: Tue, 16 Jun 2009 22:13:45 +0000 Subject: [PATCH] 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 --- .../threerings/admin/client/ConfigEditorPanel.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/java/com/threerings/admin/client/ConfigEditorPanel.java b/src/java/com/threerings/admin/client/ConfigEditorPanel.java index 298129dc8..e968271f4 100644 --- a/src/java/com/threerings/admin/client/ConfigEditorPanel.java +++ b/src/java/com/threerings/admin/client/ConfigEditorPanel.java @@ -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(); }