Operaciones Ventanas
Operaciones Ventanas
Button;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JTextArea;
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author Administrador
*/
public class OperacionesVentanas {
private JFrame ventana = new JFrame();;
public OperacionesVentanas() {
ventana.setTitle("Muestra ventana");
ventana.add(new JTextArea("Esto son operaciones con ventanas"));
ventana.setSize(640, 480);
ventana.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
ventana.setVisible(true);
ventana.addWindowListener(new EscuchaVentana());
}
}
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
new OperacionesVentanas();
}
}