473,325 Members | 2,771 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,325 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 6675
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

2
by: webstar | last post by:
How do you play wave files using java.applet.Applet?
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: Don | last post by:
Hi, I try to get a simple applet working, the class-file does load, but the image doesn't appear;( An error doesn't appear. The view is and stays 'grey' What I want: Automatic refresh of a...
2
by: david | last post by:
Hello all, let's me explains my long problem: I'm doing an intranet with a media part. So im must be able to upload files on a ftp server AND have a record of informations about this file and...
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...
9
by: takeiteasy | last post by:
Hello everyone, I've got a question about programming by using Java applet and the question is : Design a web page containing an applet that simply switches from one image to the next with some...
0
by: NoaGross | last post by:
Hi, I'm relly new in java and I have a problem. I'm using java applet. When using http all ok, but when trying to use https i get: Java Plug-in 1.5.0_10 Using JRE version 1.5.0_10 Java...
1
by: fens | last post by:
hi, this is fens Please help me I have a project (using java & mysql) to make an people identity. I don't know how to create an editable picture (add, edit, delete), which is using database...
1
by: dishal | last post by:
Can anyone help me please? How do I convert these codes to launch from a JFrame instead of a Java Applet? A simple program where the user can sketch curves and shapes in a variety of...
2
by: danielmessick | last post by:
In the Java applet below, i'm trying to make the text box change color when the slider is moved to the left and right. Right now when I move the JSlider left or right the text in the text box changes...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.