Solved

Return null when creating Image.

Posted on 1997-06-27
1
200 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

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

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…
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…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

729 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