Jessica Guadalupe Ramos Mendez
3°A
Programacion
Mariano Matamoros Guridi
public static void main(String args[]){
Ventanadoble ventana = new Ventanadoble();
ventana.dibujarventana();
ventana.setVisible(true);
Ventanadoble otra = new Ventanadoble();
otra.dibujarventana2();
otra.setVisible(true);
}
public void dibujarventana(){
setDefaultCloseOperation(EXIT_ON_CLOSE);
setLocationRelativeTo(null);
setSize(400,400);
setTitle("jessica");
getContentPane().setBackground(Color.blue);
}
public void dibujarventana2(){
setDefaultCloseOperation(EXIT_ON_CLOSE);
setLocationRelativeTo(null);
setSize(400,400);
setTitle("Ramos");
getContentPane().setBackground(Color.white);
}
}
No hay comentarios:
Publicar un comentario