Viewing file: comp249/assignment4/LetterCombinationGUI.java | Back to directory listing
Author: Loren Segal | Last modified: February 21 2006 12:00 am | Download

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
 
/**
  *
  */
public class LetterCombinationGUI extends JFrame
{
	public static LetterCombination combinationSet;
	public static JPanel searchPanel = new SearchPanel();
	public static JPanel generatePanel = new GeneratePanel();
	public static JTabbedPane tabs = new JTabbedPane();
	public static LetterCombinationGUI instance;
	
	public LetterCombinationGUI()
	{
		super("Letter Combinations");
 
		// Load tabs
		
		tabs.add("Generate", generatePanel);
		tabs.add("Search", searchPanel);
 
		// Add elements to Frame and make it visible
		this.setPreferredSize(new Dimension(300,400));
		this.add(tabs);
		this.pack();
		this.setVisible(true);
	}
 
	public static void main(String[] args)
	{
		instance = new LetterCombinationGUI();
	}
	
}