|
|
@@ -7,6 +7,13 @@ import java.awt.GridBagLayout;
|
|
|
import javax.swing.JPanel;
|
|
|
import javax.swing.JScrollPane;
|
|
|
|
|
|
+/**
|
|
|
+ * An object whose purpose is to wrap together multiple child panels
|
|
|
+ * where each child should themselves be wrapped in a scrollable panel.
|
|
|
+ *
|
|
|
+ * @author Samuel Jaffe
|
|
|
+ *
|
|
|
+ */
|
|
|
@SuppressWarnings("serial")
|
|
|
public class MultiScrollable extends JPanel {
|
|
|
public MultiScrollable(Component...components) {
|
|
|
@@ -25,6 +32,12 @@ public class MultiScrollable extends JPanel {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param length The number of components within this object
|
|
|
+ * @return And array of doubles of 1 + length matching the GBL format of
|
|
|
+ * {@code}{1.0, 1.0, ..., 1.0, Double.MIN_VALUE}{@code}
|
|
|
+ */
|
|
|
private double[] prepareDoubles(int length) {
|
|
|
double[] dbls = new double[length+1];
|
|
|
for (int i = 0; i < length; ++i) {
|