Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

message before an applet loads.

 
ravi vardhin
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Is their any method where in i can give a message like "Applet loading Please wait" before my applet completely loads?
Any one please help
Thanks and regards,
Ravi
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure you can! You can put up a Canvas and paint your message on it at the very beginning of the init() method in your applet. The "real" display can initialize after that, or run in its own thread if you want some animation in your "please wait" display.
If you want to put this message in the status bar of the browser, HTML/JavaScript controls would probably be a better way of doing it.
------------------
Michael Ernest, co-author of: The Complete Java 2 Certification Study Guide
 
ravi vardhin
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
Thanks for your reply.
Is their any sample code through which i can simulate the problem.
Thanksa and regards,
ravi
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic