Awt Tarea 3
Awt Tarea 3
Awt Tarea 3
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
public class AWT_TAREA2 extends JFrame{
JTextField t1,t2,t3;
JButton b1,b2,b3;
JLabel l1,l2,l3;
public AWT_TAREA2()
{
super("PROYECTO");
b1=new JButton("MATRICES");
b2=new JButton("GRAFICOS");
b3=new JButton("SALIR");
add(b1);b1.setBounds(250,80,100,30);
add(b2);b2.setBounds(250,130,100,30);
add(b3);b3.setBounds(250,180,100,30);
b1.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
MATRICES proy=new MATRICES();
proy.setLayout(null);
proy.setSize(600,600);
proy.getContentPane().setBackground(Color.CYAN );
proy.setLocationRelativeTo(null);
proy.setDefaultCloseOperation(EXIT_ON_CLOSE);
proy.setVisible(true);
}
}
);
b2.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
}
}
);
b3.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
}
}
);
}
public static void main(String[] args) {