Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / September 2005

Tip: Looking for answers? Try searching our database.

how to get rid of Java applet banner?

Thread view: 
mitch - 26 Sep 2005 14:10 GMT
When you run an applet in a browser with the Java plug-in,
there is a Sun banner that appears while the applet is loading.
Is there any way to get rid of this or change it to another banner?
Thanks.
Andrew Thompson - 27 Sep 2005 03:22 GMT
> When you run an applet in a browser with the Java plug-in,
> there is a Sun banner that appears while the applet is loading.
> Is there any way to get rid of this

No.

> or change it to another banner?

Kind of.  You have a tiny applet 'init()' that adds
a label to the applet 'Loading..' (or a small image) then
- kicks off the UI construction in a thread
- flips to the main UI once constructed and ready.

This way, the Java icon appears for a very short time
but quickly changes to 'Loading..', then when the applet
is ready, the UI appears.

There are some tricks to this approach, you would have
to experiment to get the best strategy.
Daniel Rohe - 27 Sep 2005 08:43 GMT
Read the javadocs for 1.5.0 under
http://java.sun.com/j2se/1.5.0/docs/guide/plugin/developer_guide/special_attribu
tes.html


Kind regards,
Daniel

> When you run an applet in a browser with the Java plug-in,
> there is a Sun banner that appears while the applet is loading.
> Is there any way to get rid of this or change it to another banner?
> Thanks.
Andrew Thompson - 27 Sep 2005 14:53 GMT
> Read the javadocs for 1.5.0 under
> http://java.sun.com/j2se/1.5.0/docs/guide/plugin/developer_guide/special_attribu
tes.html

Aha!  Had not noticed that!
<http://java.sun.com/j2se/1.5.0/docs/guide/plugin/developer_guide/special_attribu
tes.html#image
>
..mentions you can change the default image using...

    <APPLET ...>
    <PARAM name="image" value="my_image.gif">
    </APPLET>

I wonder just how many (thousand) applets on the internet
use a parameter named 'image'.  Of course it would never
occur to Sun to name it something less common like
'applet.startup.image'.  Sheesh..
Roedy Green - 27 Sep 2005 23:24 GMT
>I wonder just how many (thousand) applets on the internet
>use a parameter named 'image'.  Of course it would never
>occur to Sun to name it something less common like
>'applet.startup.image'.  Sheesh..

I could not believe my eyes when they did that.  Sun is usually so
careful about reserving a new keyword and breaking old code.

Maybe sun.splash.image
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.

Roedy Green - 27 Sep 2005 09:48 GMT
>When you run an applet in a browser with the Java plug-in,
>there is a Sun banner that appears while the applet is loading.
>Is there any way to get rid of this or change it to another banner?

see http://mindprod.com/jgloss/applet.html#SPLASH   
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.