Simple applet compiles but appletviewer does not load.

Joel Kreager jkreager at apc.net
Sat Mar 20 11:20:38 PST 1999


>Submitter-Id:  kaffe-user
>Originator: 	Joel Kreager
>Organization:	------------------
Joel Kreager
jkreager at apc.net
>Confidential:  
>Synopsis:	
>Severity:	
>Priority:	
>Category: 	
>Class:		
>Release:	
>Environment:
    	
	System: Linux TheWell 2.2.2 #4 Tue Mar 2 11:56:02 PST 1999 i586 unknown
	Architecture: i586
	Machine: Unknown
>Description:
	

 Program compiles cleanly.  Appletviewer runs but no window appears
on screen.  Appletviewer appears on ps listing and never exits, but
can be killed cleanly.  My environment:  kaffe 1.0.b3, linux 2.2, egcs-2.91.60,
glibc2.1, XFree86 3.3.2.  Program compiled under kaffe runs using
blackdown java 1.0.

>How-To-Repeat:
	<code/input/activities to reproduce the problem (multiplelines)>
import java.applet.*;
import java.awt.*;


// This applet should demonstrate a class that will use the
// FontMetrics object to vertically center and horizontally right
// justify a line of text in a given rectangle.

public class TestFontJustify extends Applet {

//     public void init() {
// 	this.setBackground(Color.lightGray);
//     }

    public void paint(Graphics g) {

	Color fill = new Color(200, 200, 200);
	Color outline = Color.blue;
	Color textcolor = Color.red;

	g.setColor(fill);
	g.fillRect(25, 110, 150, 80);
	g.setColor(outline);
	g.drawRect(25, 110, 150, 80);
	
// 	FontJustify.rightCenter("Justify This!",  g, textcolor, 
// 				25, 110, 150, 80);
    }
}

//---------------------------------- Cut here--------------------------------
//------------------------- Debug Tracing -----------------------------------

(gdb) main2 (env=0x40058530, argv=0xbffff774, farg=1, argc=2) at main.c:157
(gdb) print mcls
$3 = (void *) 0x8290e60
(gdb) handleErrors () at main.c:194
(gdb) handleErrors () at main.c:195
(gdb) main2 (env=0x40058530, argv=0xbffff774, farg=2, argc=1) at main.c:168
(gdb) handleErrors () at main.c:194
(gdb) handleErrors () at main.c:195
(gdb) main2 (env=0x40058530, argv=0xbffff774, farg=2, argc=1) at main.c:172
(gdb) handleErrors () at main.c:194
(gdb) handleErrors () at main.c:195
(gdb) main2 (env=0x40058530, argv=0xbffff774, farg=2, argc=1) at main.c:174
(gdb) handleErrors () at main.c:194
(gdb) handleErrors () at main.c:195
(gdb) main2 (env=0x40058530, argv=0xbffff774, farg=2, argc=1) at main.c:176
(gdb) handleErrors () at main.c:194
(gdb) handleErrors () at main.c:195
(gdb) main2 (env=0x40058530, argv=0xbffff774, farg=2, argc=1) at main.c:179
(gdb) handleErrors () at main.c:194
(gdb) handleErrors () at main.c:195
(gdb) main2 (env=0x40058530, argv=0xbffff774, farg=2, argc=1) at main.c:176
(gdb) 

/* Appeared to die when this line was called ***************************/
	/* Call method, check for errors and then exit */
	(*env)->CallStaticVoidMethod(env, mcls, mmth, args);

>Fix:
	


More information about the kaffe mailing list