30 lines
737 B
Java
30 lines
737 B
Java
|
|
import java.awt.*;
|
|
import javax.swing.*;
|
|
import javax.swing.border.*;
|
|
|
|
public class BlobWars extends JFrame
|
|
{
|
|
public static void main(String[] args)
|
|
{
|
|
BlobWars jt = new BlobWars();
|
|
}
|
|
|
|
public BlobWars()
|
|
{
|
|
super("Josh's Blob Wars Game for CS654");
|
|
setSize(400, 500);
|
|
setDefaultCloseOperation(EXIT_ON_CLOSE);
|
|
// setResizable(false);
|
|
getContentPane().add(new JPanel() {{
|
|
setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
|
|
add(new JPanel() {{
|
|
setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
|
|
add(new JLabel("hi!"));
|
|
}});
|
|
add(new BlobWarsPanel());
|
|
}});
|
|
setVisible(true);
|
|
}
|
|
}
|