Solved

Return null when creating Image.

Posted on 1997-06-27
1
196 Views
Last Modified: 2010-04-16
null was returned when I use createImage(int,int) in a classextends Applet.It was OK if I run it as a Applet.(Use appletviewer)But fail if I run it as a application.p.s.I am using JDK1.1.2.
0
Comment
Question by:pxknight
1 Comment
 

Accepted Solution

by:
superstarr earned 50 total points
ID: 1222354
When you say 'run it as an application', do you mean a system application, or do you mean you're accessing the applet through Netscape or IE? If you're running it as a system application I would expect problems since Applets are designed for web browsers and appletviewer. If you're running it on Netscape/Ie, your problem may be that you're using JDK 1.1.2. Netscape 3 and IE 3 only support JDK 1.0.2, to my knowledge. I'm not sure what Communicator and IE 4 will support yet. Try getting the old JDK (1.0.2). You can still find that on www.javasoft.com. I've got both on my workstation so I can write applets that will surely be compatible with Netscape and IE 3. Hope that helps.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
tomcat not starting 6 46
login jsp example 24 51
How do I remove an object from a 3 27
String array comparison 4 34
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question