summaryrefslogtreecommitdiff
path: root/src/main/java/com/c2kernel/gui/collection/CollectionFrame.java
blob: 76a964b7b1c66f2769f25e2223ad1fe0e08ad6b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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);
	}
}