[kaffe] Awt - missing paint invocation

2005-09-29 Thread Gianluca Moro
Hi all,

I'm testing a simple program with kaffe-1.1.5:
it draws some lines, and on PC it works correctly:
on my porting on MIPS machine, it do not show
anything: from what I have seen, the function
paint is not called: does anyone have an idea
where to check to verify why the function paint 
is not called? (even if I add a label it is not
shown: it seems that everything in the frame is 
not shown!)

Follows my test code:

thanks 
giammy

import java.awt.*;

public class Hello extends Frame {
public static void main(String argv[])
{
new Hello();
}

public void paint(Graphics g)
{
System.out.println(Hello: paint);
g.drawLine(25, 10, 150, 80);
g.drawArc(225, 10, 150, 80, 90, 135);
g.setColor(Color.green);
g.fillRect(25, 110, 150, 80);
}

public Hello() {
super(Hello World!);

setSize(500, 500);

// map the widgets
//show();
setVisible(true);
}
}



--
Gianluca Moro Visit  http://ilpinguino.altervista.org/
[EMAIL PROTECTED]  MyBlog http://blog.libero.it/giangiammy/



__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


Re: [kaffe] Awt - missing paint invocation

2005-09-29 Thread Dalibor Topic
Gianluca Moro wrote:
 Hi all,
 
 I'm testing a simple program with kaffe-1.1.5:
 it draws some lines, and on PC it works correctly:
 on my porting on MIPS machine, it do not show
 anything: from what I have seen, the function
 paint is not called: does anyone have an idea
 where to check to verify why the function paint 
 is not called? (even if I add a label it is not
 shown: it seems that everything in the frame is 
 not shown!)

if you are using the jit, there is -verbosecall to see all function
invocations. if you are using the interpreter, then you can build kaffe
with --enable-debug and use various different vm debugging output
options to control the data you are interested in seing from the
interpreter engine. Finally, if you are interested to see whether a
native method is being called, you can set a break point on the funciton
in gdb, if you run kaffe with KAFFE_DEBUG=gdb ev var set.

cheers,
dalibor topic

___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe