Solved

Return null when creating Image.

Posted on 1997-06-27
1
198 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
varialbe initialization 11 37
SHA2 certs for IIS AND Java? 2 113
String array comparison 4 38
Adding multiple JVM environments to RedHat 6 7 45
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

792 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