From 4fbbcb5e06443cd8a0a879034cd365ca70f6450b Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 11 Jun 2011 04:16:58 +0200 Subject: Scrollable option tab in SettingsPanel git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@415 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/view/impl/SettingsPanel.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/jrummikub/view/impl/SettingsPanel.java b/src/jrummikub/view/impl/SettingsPanel.java index 9536838..a509e8b 100644 --- a/src/jrummikub/view/impl/SettingsPanel.java +++ b/src/jrummikub/view/impl/SettingsPanel.java @@ -463,7 +463,10 @@ class SettingsPanel extends JPanel implements ISettingsPanel { tabbedPane.addTab("Spieler", playerSetupPanel); createOptionsPanel(); - tabbedPane.addTab("Optionen", optionsPanel); + JScrollPane scrollPane = new JScrollPane(optionsPanel, + JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, + JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); + tabbedPane.addTab("Optionen", scrollPane); GridBagConstraints c = new GridBagConstraints(); c.fill = GridBagConstraints.BOTH; -- cgit v1.2.3