Professional Documents
Culture Documents
Figuras Netbeans
Figuras Netbeans
import javax.swing.JFrame;
h.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
h.setVisible(true);
h.setSize(1000, 1000);
h.setLocationRelativeTo(null);
clase secundaria:
import java.awt.Color;
import java.awt.Graphics;
import javax.swing.JFrame;
public class lados extends JFrame {
public lados(){
super("figurasxd");
super.paint(h);
h.fillPolygon(vx1,vy1,8);
h.fillPolygon(vx2,vy2,5);
h.fillPolygon(vx3,vy3,6);
int [] vx4 = { };
int [] vy4 = { };
h.fillPolygon(vx4,vy4,3);
}}