-
java.awt.addnotify() not working.please help.
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks