Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.*;
- import java.awt.event.*;
- import javax.swing.*;
- import java.applet.*;
- import java.util.Random;
- import java.lang.String;
- import java.lang.*;
- import java.util.Scanner;
- /**
- * Class BattleshipApplet_GUI - write a description of the class here
- *
- * @author (your name)
- * @version (a version number)
- *
- */
- public class BattleshipGUI extends JApplet implements ActionListener { final static String LABEL_TEXT = "Battle Ship!";
- JFrame frame;
- JPanel cantentPane;
- JLabel label;
- JButton buttom;
- private JPanel pickpanel;
- public BattleshipGUI(){
- frame = new JFrame("battle Ship motha' fucka!");
- frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- pickpanel=new JPanel();
- pickpanel.setBackground(Color.blue);
- }
- public void init(){
- }
- public void actionPerformed(ActionEvent event){
- String eventName = event.getActionCommand();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment