Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet does not show the Venus planet

 
Martin Ndhlovu
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My java applet runs but only displays the greeting: "Hello From Venus" it does not show the Venus planet
 
Stephan van Hulst
Bartender
Pie
Posts: 6503
83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are you using applets?
 
Martin Ndhlovu
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the very first examples in the book by Xiaoping Jia which comes with the Java course
which I am enrolled in.
 
Norm Radder
Bartender
Posts: 1526
14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The applet probably can not find the Venus.gif file. Make sure the file is located where the program can find it.
One way is find out where it should be is to copy it to all the folders the program can see.
 
Campbell Ritchie
Sheriff
Posts: 51415
87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hope it isn't to olate to welcome you to the Ranch

The Xiaoping Jia book is dated 2002, so it is so out of date that I would not use it any more. It will not eve show the updates in Java5 (2004).
 
Martin Ndhlovu
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To: Campbell Ritchie

I would appreciated it then if you could give a recommendation as to what I should do now to get started
with applets.
 
Norm Radder
Bartender
Posts: 1526
14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The posted code works for me when the image file is in the correct folder.
 
Stephan van Hulst
Bartender
Pie
Posts: 6503
83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Martin Ndhlovu wrote:I would appreciated it then if you could give a recommendation as to what I should do now to get started with applets.

You shouldn't be using applets anymore. They have many issues, and are no longer supported by many browsers.

For interactive web applications you should probably focus on JavaScript.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic