Prevent horizontal scrollbar appearing in zone windows.

This commit is contained in:
drdev
2014-11-26 17:19:40 +00:00
parent 4ba11947ca
commit 037b7e62ee
3 changed files with 7 additions and 1 deletions

View File

@@ -23,6 +23,9 @@ public class FScrollPane extends SkinnedScrollPane {
public FScrollPane(boolean showBorder0) {
this(null, showBorder0);
}
public FScrollPane(boolean showBorder0, final int vertical0, final int horizontal0) {
this(null, showBorder0, false, vertical0, horizontal0);
}
public FScrollPane(final Component c0, boolean showBorder0) {
this(c0, showBorder0, false, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
}

View File

@@ -46,6 +46,8 @@ import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import javax.swing.ScrollPaneConstants;
public class FloatingCardArea extends CardArea {
private static final long serialVersionUID = 1927906492186378596L;
@@ -131,7 +133,7 @@ public class FloatingCardArea extends CardArea {
};
private FloatingCardArea(PlayerView player0, ZoneType zone0) {
super(new FScrollPane(false));
super(new FScrollPane(false, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER));
window.add(getScrollPane(), "grow, push");
getScrollPane().setViewportView(this);
setOpaque(false);