@@ -0,0 +1,1279 @@
+import java.awt.*;%0Aimport java.awt.event.*;%0Aimport javax.imageio.ImageIO;%0Aimport javax.swing.*;%0Aimport java.io.*;%0Aimport javax.sound.sampled.*;%0A%0A%0Apublic class mainMenuFrame %7B%0A%0A    public void drawFrame() throws IOException%7B%0A%0A%09%09//New Window Creation%0A%09%09JFrame frame = new JFrame(%22Tanks!!%22);%0A%09%09frame.getContentPane().add(new JPanelWithBackground(%22sss.jpg%22));%0A%09%09%0A%09%09JLabel titleLabel = new JLabel(%22Welcome to Tanks!!!%22);%0A%09%09titleLabel.setOpaque(false);%0A%09%09titleLabel.repaint();%0A%09%09%0A%09%0A%09%09//%22Play%22 Button%0A%09%09JButton playButton = new JButton(%22Play!%22);%0A%09%09playButton.addActionListener (new playAction());%0A%0A%09%09//%22How to Play%22 Button%0A%09%09JButton htpButton = new JButton(%22How to Play!%22);%0A%09%09htpButton.addActionListener (new htpAction());%0A%09%0A%09%09//%22Credits%22 Button%0A%09%09JButton credButton = new JButton(%22Credits!%22);%0A%09%09credButton.addActionListener(new credAction());%09%09%0A%09%09%0A%09%09//buttonPanel creation%0A%09%09JPanel buttonPanel = new JPanel();%0A%09%09buttonPanel.add(playButton);%0A%09%09buttonPanel.add(htpButton);%0A%09%09buttonPanel.add(credButton);%0A%09%09buttonPanel.setOpaque(false);%0A%09%09%0A%09%09//Layout%0A%09%09//frame.add(titleLabel, BorderLayout.CENTER);%0A%09%09frame.add(buttonPanel, BorderLayout.SOUTH);%0A%09%09%0A%09%09%0A%09%09//Frame creation%0A%09%09frame.setVisible(true);%0A%09%09frame.setSize(541, 500);%0A%09%09frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);%0A    %7D%0A%0A%7D%0A

Split everything up into its own object