Schiarizzi

battleship applet v0.2

May 29th, 2014
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. import java.awt.*;
  2. import java.awt.event.*;
  3. import javax.swing.*;
  4. import java.applet.*;
  5. import java.util.Random;
  6. import java.lang.String;
  7. import java.lang.*;
  8. import java.util.Scanner;
  9. /**
  10. * Class BattleshipApplet_GUI - write a description of the class here
  11. *
  12. * @author (your name)
  13. * @version (a version number)
  14. *
  15. */
  16. public class BattleshipGUI extends JApplet implements ActionListener { final static String LABEL_TEXT = "Battle Ship!";
  17. JFrame frame;
  18. JPanel cantentPane;
  19. JLabel label;
  20. JButton buttom;
  21.  
  22. private JPanel pickpanel;
  23. public BattleshipGUI(){
  24. frame = new JFrame("battle Ship motha' fucka!");
  25. frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  26.  
  27. pickpanel=new JPanel();
  28. pickpanel.setBackground(Color.blue);
  29. }
  30.  
  31. public void init(){
  32.  
  33. }
  34.  
  35.  
  36. public void actionPerformed(ActionEvent event){
  37. String eventName = event.getActionCommand();
  38.  
  39.  
  40.  
  41. }
  42. }
Advertisement
Add Comment
Please, Sign In to add comment