Minor fix for Appletviewer

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


Hello!

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
purposes.
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);
 
 	setMenus();
+	Font stateFont = new Font("SansSerif", Font.BOLD, 12);
+	state.setFont(stateFont);
 	add( state);
 	addWindowListener(this);
 


More information about the kaffe mailing list