.class public DrawPoly

.super java/applet/Applet

.field private protected p1 Ljava/awt/Polygon;
.field private protected p2 Ljava/awt/Polygon;

.method public <init>()V
  .limit locals 1
  .limit stack 1
  aload_0
  invokenonvirtual java/applet/Applet/<init>()V
  return
.end method

.method public init()V
  .limit locals 1
  .limit stack 3
  new java/awt/Polygon
  dup
  invokenonvirtual java/awt/Polygon/<init>()V
  aload_0
  swap
  putfield DrawPoly/p1 Ljava/awt/Polygon;
  new java/awt/Polygon
  dup
  invokenonvirtual java/awt/Polygon/<init>()V
  aload_0
  swap
  putfield DrawPoly/p2 Ljava/awt/Polygon;
  aload_0
  getfield DrawPoly/p1 Ljava/awt/Polygon;
  ldc 10
  ldc 10
  invokevirtual java/awt/Polygon/addPoint(II)V
  aload_0
  getfield DrawPoly/p1 Ljava/awt/Polygon;
  ldc 10
  ldc 100
  invokevirtual java/awt/Polygon/addPoint(II)V
  aload_0
  getfield DrawPoly/p1 Ljava/awt/Polygon;
  ldc 50
  ldc 10
  invokevirtual java/awt/Polygon/addPoint(II)V
  aload_0
  getfield DrawPoly/p2 Ljava/awt/Polygon;
  ldc 240
  ldc 50
  invokevirtual java/awt/Polygon/addPoint(II)V
  aload_0
  getfield DrawPoly/p2 Ljava/awt/Polygon;
  ldc 260
  ldc 70
  invokevirtual java/awt/Polygon/addPoint(II)V
  aload_0
  getfield DrawPoly/p2 Ljava/awt/Polygon;
  ldc 250
  ldc 90
  invokevirtual java/awt/Polygon/addPoint(II)V
  aload_0
  getfield DrawPoly/p2 Ljava/awt/Polygon;
  ldc 240
  ldc 50
  invokevirtual java/awt/Polygon/addPoint(II)V
  return
.end method

.method public paint(Ljava/awt/Graphics;)V
  .limit locals 2
  .limit stack 7
  aload_1
  aload_0
  getfield DrawPoly/p1 Ljava/awt/Polygon;
  invokevirtual java/awt/Graphics/fillPolygon(Ljava/awt/Polygon;)V
  aload_1
  aload_0
  getfield DrawPoly/p2 Ljava/awt/Polygon;
  invokevirtual java/awt/Graphics/drawPolygon(Ljava/awt/Polygon;)V
  aload_1
  iconst_0
  iconst_0
  ldc 100
  ldc 100
  iconst_0
  ldc 110
  invokevirtual java/awt/Graphics/copyArea(IIIIII)V
  return
.end method

