Minor fix for Appletviewer

Pavel Roskin pavel_roskin at geocities.com
Fri Nov 6 06:37:12 PST 1998


Attached fix makes it possible to run Kaffe's appletviewer run under Sun's
JDK. Otherwise it dies deep inside Motif libraries trying to calculate
heigth of a non-existent font.
It may be useful to run Kaffe's appletviewer under Sun JDK for debug
I know that our appletviewer still has problems with quoted digits
(width="30"), but I'm too busy, sorry.

Best regards,
Pavel Roskin.
-------------- next part --------------
--- kaffe/libraries/javalib/kaffe/applet/AppletViewer.java.orig	Fri Sep 11 15:31:29 1998
+++ kaffe/libraries/javalib/kaffe/applet/AppletViewer.java	Thu Oct 29 16:07:15 1998
@@ -18,6 +18,7 @@
 import java.awt.Dimension;
 import java.awt.Image;
 import java.awt.Label;
+import java.awt.Font;
 import java.awt.Insets;
 import java.awt.Panel;
 import java.awt.Menu;
@@ -59,6 +60,8 @@
 	setLayout( null);
+	Font stateFont = new Font("SansSerif", Font.BOLD, 12);
+	state.setFont(stateFont);
 	add( state);

More information about the kaffe mailing list