Está en la página 1de 1

package TRABAJO_DICOCO;

import javax.swing.JLabel;
import javax.swing.JFrame;
public class ELMER extends JFrame{
private JLabel texto1, texto2;
public ELMER() {
setLayout(null);
texto1=new JLabel("Hola Mundo!");
texto2=new JLabel("www.geekytheory.com");
texto1.setBounds(100,100,200,40);
texto2.setBounds(70,140,200,40);
add(texto1);
add(texto2);
}{
ELMER ventana=new ELMER();
ventana.setBounds(500,250,300,250);
ventana.setVisible(true);
ventana.setResizable(false);
}
}

También podría gustarte