Documentos de Académico
Documentos de Profesional
Documentos de Cultura
import javax.swing.*;
import java.awt.event.*;
/**
*
* @author ISAI
*/
public class jframe2 extends JFrame implements ActionListener {
public jframe2() {
setLayout(null);
boton1 = new JButton("Ingresar");
boton1.setBounds(0, 300, 100, 30);
add(boton1);
boton1.addActionListener (this);
}
public static void main ( String args []){
jframe2 f1 = new jframe2 ();
f1.setBounds(0,0,600,400);
f1.setVisible (true);
f1.setLocationRelativeTo(null);
f1.setResizable (false);
}
}
Ejecucion: