Conversacion

import javax.swing.JFrame;
import javax.swing.JLabel;


public class Conversacion extends JFrame{
    JLabel Mau1, Fer1, Mau2, Fer2, Mau3, Fer3, Mau4, Fer4, Mau5;
    public Conversacion(){
        setSize(700, 600);
        setTitle("Vetana de conversacion");
        getContentPane().setLayout(null);
        setLocationRelativeTo(null);
        
        Mau1 = new JLabel();
        Mau1.setText("Mauricio: Hola");
        getContentPane().add(Mau1);
        Mau1.setBounds(20, 10, 250, 20);
        
        Fer1 = new JLabel();
        Fer1.setText("Fernando: Hola, ¿como estas?");
        getContentPane().add(Fer1);
        Fer1.setBounds(20, 30, 250, 20);
        
        Mau2 = new JLabel();
        Mau2.setText("Mauricio: Bien ¿y tu?");
        getContentPane().add(Mau2);
        Mau2.setBounds(20, 50, 250, 20);
        
        Fer2 = new JLabel();
        Fer2.setText("Fernando: Bien gracias,¿que haces");
        getContentPane().add(Fer2);
        Fer2.setBounds(20, 70, 250, 20);
        
        Mau3 = new JLabel();
        Mau3.setText("Mauricio: Escucho musica, ¿y tu?");
        getContentPane().add(Mau3);
        Mau3.setBounds(20, 90, 250, 20);
        
        Fer3 = new JLabel();
        Fer3.setText("Fernando: Estoy comiendo");
        getContentPane().add(Fer3);
        Fer3.setBounds(20, 110, 250, 20);
        
        Mau4 = new JLabel();
        Mau4.setText("Mauricio: Bueno, hay nos vemos mañana en la escula");
        getContentPane().add(Mau4);
        Mau4.setBounds(20, 130, 350, 20);
        
        Fer4 = new JLabel();
        Fer4.setText("Fenando: Bueno adios");
        getContentPane().add(Fer4);
        Fer4.setBounds(20, 150, 250, 20);
        
        Mau5 = new JLabel();
        Mau5.setText("Mauricio: Adios");
        getContentPane().add(Mau5);
        Mau5.setBounds(20, 170, 250, 20);
        
    }
    
    public static void main(String [] args){
        new Conversacion().setVisible(true);
        
    }


 

 

Contacto

EDUARDO LEMB EDUARDO MEDINA BECERRA
3º "C"
"PROGRAMACION ESTRUCTURADA"
5542517616 whats Apps eduardo-m-b@hotmail.com