Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Galaga extends JFrame {
- private static final long serialVersionUID = 1L;
- private JPanel mainPanel;//main menu with top-level button
- private JPanel optionsPanel; //has option buttons and detail
- private JPanel highScorePanel; //shows high scores
- public BufferedImage image;
- public Galaga(String t) {
- super(t);
- JLayeredPane pane = this.getLayeredPane();
- File img = new File("images/Spacebackground.png");
- try {
- image = ImageIO.read(img);
- } catch (IOException e) {
- e.printStackTrace();
- System.exit(1);
- }
- mainPanel = new MainPanel(this);
- mainPanel.setOpaque(false);
- mainPanel.setBorder(BorderFactory.createLineBorder(Color.BLACK));
- add(mainPanel, BorderLayout.CENTER);//adds main panel
- }//ends Galaga function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement