.class public DemoFont2

.super java/applet/Applet

.field private protected f Ljava/awt/Font;
.field private protected c Ljoos/lib/JoosConstants;

.method public <init>()V
  .limit locals 1
  .limit stack 3
  aload_0
  invokenonvirtual java/applet/Applet/<init>()V
  new joos/lib/JoosConstants
  dup
  invokenonvirtual joos/lib/JoosConstants/<init>()V
  aload_0
  swap
  putfield DemoFont2/c Ljoos/lib/JoosConstants;
  return
.end method

.method public init()V
  .limit locals 1
  .limit stack 5
  new java/awt/Font
  dup
  ldc "Courier"
  aload_0
  getfield DemoFont2/c Ljoos/lib/JoosConstants;
  invokevirtual joos/lib/JoosConstants/ITALIC()I
  aload_0
  getfield DemoFont2/c Ljoos/lib/JoosConstants;
  invokevirtual joos/lib/JoosConstants/BOLD()I
  iadd
  ldc 24
  invokenonvirtual java/awt/Font/<init>(Ljava/lang/String;II)V
  aload_0
  swap
  putfield DemoFont2/f Ljava/awt/Font;
  return
.end method

.method public paint(Ljava/awt/Graphics;)V
  .limit locals 6
  .limit stack 4
  aload_1
  aload_0
  getfield DemoFont2/f Ljava/awt/Font;
  invokevirtual java/awt/Graphics/setFont(Ljava/awt/Font;)V
  aload_0
  getfield DemoFont2/f Ljava/awt/Font;
  invokevirtual java/awt/Font/getStyle()I
  istore_2
  iload_2
  aload_0
  getfield DemoFont2/c Ljoos/lib/JoosConstants;
  invokevirtual joos/lib/JoosConstants/PLAIN()I
  if_icmpne else_0
  ldc "Plain "
  astore 4
  goto stop_1
  else_0:
  iload_2
  aload_0
  getfield DemoFont2/c Ljoos/lib/JoosConstants;
  invokevirtual joos/lib/JoosConstants/BOLD()I
  if_icmpne else_4
  ldc "Bold "
  astore 4
  goto stop_5
  else_4:
  iload_2
  aload_0
  getfield DemoFont2/c Ljoos/lib/JoosConstants;
  invokevirtual joos/lib/JoosConstants/ITALIC()I
  if_icmpne else_8
  ldc "Italic "
  astore 4
  goto stop_9
  else_8:
  ldc "Bold italic "
  astore 4
  stop_9:
  stop_5:
  stop_1:
  aload_0
  getfield DemoFont2/f Ljava/awt/Font;
  invokevirtual java/awt/Font/getSize()I
  istore_3
  aload 4
  dup
  ifnonnull stop_15
  pop
  ldc "null"
  stop_15:
  new java/lang/Integer
  dup
  iload_3
  invokenonvirtual java/lang/Integer/<init>(I)V
  invokevirtual java/lang/Integer/toString()Ljava/lang/String;
  invokevirtual java/lang/String/concat(Ljava/lang/String;)Ljava/lang/String;
  dup
  ifnonnull stop_13
  pop
  ldc "null"
  stop_13:
  ldc " point "
  invokevirtual java/lang/String/concat(Ljava/lang/String;)Ljava/lang/String;
  astore 4
  aload_0
  getfield DemoFont2/f Ljava/awt/Font;
  invokevirtual java/awt/Font/getName()Ljava/lang/String;
  astore 5
  aload 4
  dup
  ifnonnull stop_21
  pop
  ldc "null"
  stop_21:
  aload 5
  dup
  ifnonnull stop_23
  pop
  ldc "null"
  stop_23:
  invokevirtual java/lang/String/concat(Ljava/lang/String;)Ljava/lang/String;
  astore 4
  aload_1
  aload 4
  ldc 20
  ldc 40
  invokevirtual java/awt/Graphics/drawString(Ljava/lang/String;II)V
  aload_1
  ldc "Font family is "
  aload_0
  getfield DemoFont2/f Ljava/awt/Font;
  invokevirtual java/awt/Font/getFamily()Ljava/lang/String;
  dup
  ifnonnull stop_27
  pop
  ldc "null"
  stop_27:
  invokevirtual java/lang/String/concat(Ljava/lang/String;)Ljava/lang/String;
  ldc 20
  ldc 60
  invokevirtual java/awt/Graphics/drawString(Ljava/lang/String;II)V
  return
.end method

