Initial code timeline

This commit is contained in:
Yorick
2015-02-24 21:10:31 +00:00
parent 2e4e763ef7
commit ddd9435e4f
3 changed files with 332 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
import java.awt.event.ComponentAdapter;
import java.awt.event.ComponentEvent;
import javax.swing.JFrame;
public class GUI extends JFrame
{
private Timeline timeline;
public GUI()
{
super("Gui");
this.setDefaultCloseOperation(EXIT_ON_CLOSE);
this.setSize(600, 600);
timeline = new Timeline(this);
this.setContentPane(timeline.getTimeline());
this.getRootPane().addComponentListener(new ComponentAdapter()
{
public void componentResized(ComponentEvent e) {
timeline.refresh();
}
});
this.setVisible(true);
}
public static void main(String[] args)
{
new GUI();
}
}