Solved

Return null when creating Image.

Posted on 1997-06-27
1
191 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
Comment Utility
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
How Complex Is This Java Course ? 9 62
maven java path setting 5 49
where is session ID cache stored 1 38
Problem to start Neon 20 49
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…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

772 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now