summaryrefslogtreecommitdiff
path: root/src/main/java/org/cristalise/gui/collection/CollectionFrame.java
blob: c30eec9e3445d0cf6bc38cd688be3b00036da5fb (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
42
package org.cristalise.gui.collection;

import java.awt.GridLayout;

import javax.swing.JFrame;

import org.cristalise.gui.tabs.CollectionPane;
import org.cristalise.kernel.collection.Aggregation;



/**
 * @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);
	}
}