public ControladorVentanaPrincipal(ArrayList<Equipo> equipos, ArrayList<Arbitro> arbitros) { super(); ventprin = new VentanaPrincipal(); jugadores = new ArrayList<Jugador>(); ventprin.setLocationRelativeTo(null); ventprin.setVisible(true); ventprin.agregarListener(this); ventprin.agregarTipo(tipo); this.equipos = equipos; this.arbitros = arbitros; this.texto = ""; }
/** @param args the command line arguments */ public static void main(String[] args) { VentanaPrincipal interfaz = new VentanaPrincipal(); interfaz.setVisible(true); }