src/demo/share/java2d/J2DBench/src/j2dbench/Group.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2002, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
@@ -42,10 +42,11 @@
import java.io.PrintWriter;
import javax.swing.BoxLayout;
import javax.swing.JComponent;
import javax.swing.JPanel;
+import javax.swing.JScrollPane;
import javax.swing.JTabbedPane;
import javax.swing.border.TitledBorder;
import java.util.NoSuchElementException;
import j2dbench.ui.CompactLayout;
@@ -197,11 +198,11 @@
JComponent comp = node.getJComponent();
if (comp != null) {
p.add(comp);
}
}
- return p;
+ return new JScrollPane(p);
}
}
public void addEnableButtons(JPanel p) {
p.add(new EnableButton(this, EnableButton.DEFAULT));