summaryrefslogtreecommitdiff
path: root/src/main/java/com/c2kernel/gui/collection/CollectionFrame.java
diff options
context:
space:
mode:
authorAndrew Branson <andrew.branson@cern.ch>2012-06-26 12:41:11 +0200
committerAndrew Branson <andrew.branson@cern.ch>2012-06-26 12:41:11 +0200
commit99eed1e3c7e7292aea91131baeb36f81e23e3e82 (patch)
treeeb1afe9e57736bb1e9113ece476b9d8f0dcc7917 /src/main/java/com/c2kernel/gui/collection/CollectionFrame.java
Initial refactor from kernel
Diffstat (limited to 'src/main/java/com/c2kernel/gui/collection/CollectionFrame.java')
-rw-r--r--src/main/java/com/c2kernel/gui/collection/CollectionFrame.java41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/main/java/com/c2kernel/gui/collection/CollectionFrame.java b/src/main/java/com/c2kernel/gui/collection/CollectionFrame.java
new file mode 100644
index 0000000..76a964b
--- /dev/null
+++ b/src/main/java/com/c2kernel/gui/collection/CollectionFrame.java
@@ -0,0 +1,41 @@
+package com.c2kernel.gui.collection;
+
+import java.awt.GridLayout;
+
+import javax.swing.JFrame;
+
+import com.c2kernel.collection.Aggregation;
+import com.c2kernel.gui.tabs.CollectionPane;
+
+
+/**
+ * @version $Revision: 1.10 $ $Date: 2003/04/06 15:06:36 $
+ * @author $Author: abranson $
+ */
+
+public class CollectionFrame extends JFrame
+{
+
+ private CollectionPane mCollectionPane = new CollectionPane();
+
+ public CollectionFrame()
+ {
+ createLayout();
+ }
+
+ public void setAggregation(Aggregation aggregation)
+ {
+ mCollectionPane.add(aggregation);
+ }
+
+
+ private void createLayout()
+ {
+ getContentPane().setLayout(new GridLayout(1, 1));
+
+ getContentPane().add(mCollectionPane);
+
+ setSize(1000, 1000);
+ setVisible(true);
+ }
+}