Hi,

Iam new to awt's & many thanks if someone can help me to resolve the below issue.

The below method is called from a servlet & the expected output is a graphical report in the browser.


public void draw()
{
System.out.println("before Image");
setMAXMISSES();
System.out.println("before Image 1");
frame.setBackground(Color.lightGray);
System.out.println("before Image 2");
frame.setForeground(Color.black);
System.out.println("before Image 3");
frame.setSize(WIDTH,HEIGHT);
System.out.println("before Image 4");
frame.addNotify();

System.out.println("before Image 5");
-----
---
}


When I executed the above code ,iam able to see the following in the logs:

before Image
before Image 1
before Image 2
before Image 3
before Image 4

Next to that there is no error/exception but the processing gets stuck up here & the frame.addnotify() method doesn't get executed & we get "page cannot be displayed error " in the browser.

Can anyone suggest & help me out.

Thanks ,
Satchin.