473,396 Members | 1,712 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Loading picture before the using java applet / progress bar or waiting message ?

An applet on one of my pages uses a big picture as background.
I want to load it before the applet and the rest of the html source.

By doing this I want to avoid that the pane of the applet is grey during the
load of the picture.

How do I do that?

Or even better: How can I display something like a progress bar or at least a temporary, self removing
message (dialog) "Please wait a few second..." until the picture and the applet were loaded completely?

Mark

Jul 23 '05 #1
2 2499
Mark Richards wrote:
An applet on one of my pages uses a big picture as background.
I want to load it before the applet and the rest of the html source.

By doing this I want to avoid that the pane of the applet is grey during
the load of the picture.

How do I do that?
You can't.

Or even better: How can I display something like a progress bar or at
least a temporary, self removing message (dialog) "Please wait a few
second..." until the picture and the applet were loaded completely?


Use a MediaTracker instance and a progress bar that follows the
MediaTracker's progress.

Please do not cross-post as you are doing.

--
Paul Lutus
http://www.arachnoid.com

Jul 23 '05 #2
On Thu, 7 Oct 2004 23:05:09 +0200, Mark Richards wrote:

# 1. An x-post to :
comp.infosystems.www.authoring.html, comp.lang.javascript,
comp.lang.java.programmer & comp.lang.java.help is far too
wide a cross post for this basic question. Please refrain
from cross-posting and limit such questions to c.l.j.help.

Follow-ups set to *c.l.j.help*.
An applet on one of my pages uses a big picture as background.
I want to load it before the applet and the rest of the html source.
2. Make it smaller. Images can be shrunk in bytes a
variety of ways.
Or even better: How can I display something like ... a temporary, self removing
message (dialog) "Please wait a few second..." until the picture and the
applet were loaded completely?


If you jar your applet, you can use the 'icon' element of
type 'splash' in the jnlp to launch the applet using Java
Webstart. It should use that for the splash screen image.
(obvipously your splash will say 'wait a few moments')
<http://java.sun.com/j2se/1.4.2/docs/guide/jws/developersguide/syntax.html#information>

Alternately, I have a splash screen that will work for simple
applets in JVM's back to the Symantec 1.1.5 and MS 1.1.4.

HTH

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.lensescapes.com/ Images that escape the mundane
Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: James Hong | last post by:
Help please, I try to sending an email from my html page using the java applet. but it give error on most of the PC only very few work, what is the error i make the java applet show as below ...
3
by: Jacques Chaurette | last post by:
Hello all , thanks in advance for any help. While looking for a solution to how to replace the grey box while an applet loads, a search of Google got me an article by Glenn s. Peffers that claims to...
2
by: Mark Richards | last post by:
An applet on one of my pages uses a big picture as background. I want to load it before the applet and the rest of the html source. By doing this I want to avoid that the pane of the applet is...
4
by: google | last post by:
Dear newsgroup, I give up, I must be overseeing something terribly trivial, but I can't get a simple (Java) applet to react to incoming (python) SocketServer messages. Without boring you with...
3
by: Coskun Cavusoglu | last post by:
Hi, What I want to know is when a user clicks on a button I send him to another page by using the Response.Redirect("") method. But the page that the user is being sent to has to generate a...
1
by: Alixx Skevington | last post by:
I want to be able to have a page that has several controls on on it, but I want the page to load first of all and display a loading image on each control and then I want to then display teh...
14
by: DavidNorep | last post by:
I do not know PHP, consider to write a CGI with this technology and have the following question. Is it possible to invoke a PHP script and let it endlessly wait for requests from a website (a...
1
by: Reg | last post by:
I have a following code in HttpRequestListener's ProcessRequest method which is a Windows Console Application. I'm trying to read html page with browser (Opera) and html file contains tags to...
0
by: Reg | last post by:
I have a following code in HttpRequestListener's ProcessRequest method which is a Windows Console Application. I'm trying to read html page with browser (Opera) and html file contains tags to...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.