Professional Documents
Culture Documents
import java.awt.*;
import javax.swing.*;
int pl = p.length;
g.drawPolygon(q,w,sgt);
g.drawPolygon(e,r,qwe);
g.drawPolygon(t,y,rty);
g.drawPolygon(p,l,pl);
}
public static void main(String[]args)
f.getContentPane().add(new latihan2());
f.setSize(500,500);
f.setVisible(true);
import java.awt.Color;
import java.awt.Graphics;
import javax.swing.JFrame;
public UTS(){
this.setSize(800, 600);
this.setDefaultCloseOperation(EXIT_ON_CLOSE);
this.setVisible(true);
@Override
g.drawRoundRect(10,30,145,30,10,10);
g.drawString("Wendy Hardiyanto",15,50);
g.drawRect(10,65,20,20);
g.drawRect(10,90,20,20);
g.drawRect(10,115,20,20);
g.drawRect(35,65,20,20);
g.drawRect(35,90,20,20);
g.drawRect(35,115,20,20);
g.drawRect(60,65,20,20);
g.drawRect(60,90,20,20);
g.drawRect(60,115,20,20);
g.drawRect(85,65,20,20);
g.drawRect(85,90,20,20);
g.drawRect(85,115,20,20);
g.drawRect(110,65,20,20);
g.drawRect(110,90,20,20);
g.drawRect(110,115,20,20);
g.drawRect(135,65,20,20);
g.drawRect(135,90,20,20);
g.drawRect(135,115,20,20);
g.fillOval(25,75,15,15);
g.fillOval(25,100,15,15);
g.fillOval(50,75,15,15);
g.fillOval(50,100,15,15);
g.fillOval(75,75,15,15);
g.fillOval(75,100,15,15);
g.fillOval(100,75,15,15);
g.fillOval(100,100,15,15);
g.fillOval(125,75,15,15);
g.fillOval(125,100,15,15);
g.fillOval(150,75,15,15);
g.fillOval(150,100,15,15);
g.drawRoundRect(10,140,145,30,10,10);
g.drawString("201943501455",15,155);
int nn = x.length;
g.fillPolygon(x,y,nn);
new UTS().setVisible(true);
int er = e.length;
int ty = t.length;
g.setColor(Color.blue);
g.fillPolygon(q,w,sgt);
g.fillPolygon(e,r,er);
g.fillPolygon(t,y,ty);
g.fillRect(10,50,80,20);
BINTANG MIRING
import java.awt.*;
import javax.swing.*;
int pl = p.length;
g.drawPolygon(q,w,sgt);
g.drawPolygon(e,r,qwe);
g.drawPolygon(t,y,rty);
g.drawPolygon(p,l,pl);
f.getContentPane().add(new a());
f.setSize(500,500);
f.setVisible(true);