You are on page 1of 1

import java.awt.*; import java.awt.geom.*; import java.awt.image.*; import javax.swing.

*; /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * * @author software */ public class practica1 extends JFrame { //establecer el tamao de la ventana public practica1(){ super("Dibujos en 2D"); setSize(425,160); setVisible(true); } public static void main(String args[]){ practica1 aplicacion=new practica1(); aplicacion.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); } }

tarea: hacer una figura

You might also like