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();
}
} Powered by
GeSHi Syntax Highlighting software.
Author of all (other) material unless otherwise specified:
Loren Segal. Copyright 2005.