Advertisement
Mercedes

Pantalla fin de nivel

Nov 24th, 2014
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. package missil.command;
  2.  
  3. import java.awt.Color;
  4.  
  5. import javax.swing.JFrame;
  6. import javax.swing.JTextField;
  7.  
  8. public class PantallaFinNivel extends JFrame{
  9.  
  10.  
  11.  
  12. private static final int ANCHO=1024;
  13. private static final int ALTO=700;
  14.  
  15. public PantallaFinNivel(){
  16.  
  17. this.setSize(ANCHO, ALTO);
  18. setBackground(Color.BLACK);
  19. setLocationRelativeTo(null);
  20. this.setVisible(true);
  21. this.setResizable(false);
  22. this.setDefaultCloseOperation(EXIT_ON_CLOSE);
  23.  
  24. JTextField puntaje= new JTextField("Puntaje");
  25. puntaje.setEnabled(true);
  26. puntaje.setEditable(false);
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33. }
  34.  
  35.  
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement