From 4d01f18906a338d6fa5531468a05bddf67f610ff Mon Sep 17 00:00:00 2001 From: Dave Hoover Date: Tue, 9 Jun 2009 17:36:27 +0000 Subject: [PATCH] We've got enough of these in yohoho now that with some text settings, you get two columns of tabs, which is...Bad. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5819 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 5d2dd3e45..298129dc8 100644 --- a/src/java/com/threerings/admin/client/ConfigEditorPanel.java +++ b/src/java/com/threerings/admin/client/ConfigEditorPanel.java @@ -66,11 +66,14 @@ public class ConfigEditorPanel extends JPanel // create our objects tabbed pane add(_oeditors = new JTabbedPane(JTabbedPane.LEFT)); + // If they don't fit, make them scroll, since wrapped vertical tabs eats insane sceen space + _oeditors.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT); + // add a handy label at the bottom - add(new JLabel("Fields outline in red have been modified " + - "but not yet committed."), VGroupLayout.FIXED); - add(new JLabel("Press return in a modified field to commit " + - "the change."), VGroupLayout.FIXED); + add(new JLabel("Fields outline in red have been modified but not yet committed."), + VGroupLayout.FIXED); + add(new JLabel("Press return in a modified field to commit the change."), + VGroupLayout.FIXED); } @Override