martes, 10 de febrero de 2009

Clase Animacion

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package test;

/**
*
* @author cvleonardo
*/
public class Animacion {

private javax.swing.JPanel panelTablero;
private javax.swing.JFrame frame;
public int _PECES = 2;
ContenedorTablero conTab;

public Animacion() {
frame = new javax.swing.JFrame();
initComponents();

}

private void initComponents() {
panelTablero = new javax.swing.JPanel();
frame.getContentPane().setLayout(null);
frame.setResizable(false);
java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
frame.setBounds((screenSize.width - 961) / 2, (screenSize.height - 678) / 2, 192, 414);
frame.setVisible(true);
frame.setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
panelTablero.setLayout(null);
frame.getContentPane().add(panelTablero);
panelTablero.setBounds(0, 0, 192, 414);

conTab = new ContenedorTablero(panelTablero);
conTab.paintTablero();

}

public static void main(String args[]) {
new Animacion();
}
}

No hay comentarios:

Publicar un comentario