Skip to content

Instantly share code, notes, and snippets.

@remear
Created February 17, 2010 06:01
Show Gist options
  • Save remear/306352 to your computer and use it in GitHub Desktop.
Save remear/306352 to your computer and use it in GitHub Desktop.
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.Component;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Insets;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.DefaultListModel;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.ScrollPaneConstants;
/**
* The begginings of the Threads of Glory exploration
*
* @author Ben Mills, Devin Doman, Brandon Lyons
*/
public class Example
implements Runnable
{
/**
* Adds all necessary components to the Container pane
*
* @param pane container instance
*/
public static void addComponentsToPane(Container pane)
{
}
/**
* Create the GUI and show it. For thread safety,
* this method should be invoked from the
* event-dispatching thread.
*/
private static void createAndShowGUI()
{
JFrame frame = new JFrame("Threads Of Glory");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
addComponentsToPane(frame.getContentPane());
frame.setSize(640, 480);
frame.setMinimumSize(new Dimension(640, 480));
frame.setVisible(true);
}
public static void main(String[] args)
{
//Schedule a job for the event-dispatching thread:
//creating and showing this application's GUI.
new Example.run();
}
public void run()
{
createAndShowGUI();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment