//***************************************************************************** // Copyright (c) 1998 INRIA. // http://www.inria.fr/croap/aioli/modules/figue/web/credits.html#COPYRIGHT //***************************************************************************** package figue.bug; import java.applet.Applet; import java.awt.Graphics; public final class Bug1 extends Applet { /** * For code identification with unix what command. * @level internal */ public final static String VERSION_ID = "@(#) $Source: /net/croap/CVSROOT/figue/java/bug/Bug1.java,v $ $revision$ $Date: 1998/11/02 15:54:44 $ Copyright 1998 INRIA."; public void paint(Graphics g) { update(g); } public void update(Graphics g) { final java.awt.Font theBigFont = new java.awt.Font("Serif",java.awt.Font.BOLD,22); final java.awt.Font theSmallFont = new java.awt.Font("Monospaced",java.awt.Font.PLAIN,11); g.setFont(theBigFont); byte[] theBytes = ("drawBytes " + theBigFont.toString()).getBytes(); g.drawBytes(theBytes,0,theBytes.length,0,50); g.setFont(theSmallFont); theBytes = ("drawBytes " + theSmallFont.toString()).getBytes(); g.drawBytes(theBytes,0,theBytes.length,0,100); g.setFont(theBigFont); theBytes = ("drawBytes " + theBigFont.toString()).getBytes(); g.drawBytes(theBytes,0,theBytes.length,0,150); } }