Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Applet viewer in java


  • Please log in to reply

#1
AlErT

AlErT

    Member

  • Member
  • PipPipPip
  • 116 posts
hello !!!!!!!

i am learning java and i am using command prompt to compile and run all programs.
the problem is when i try to run applets using appletviewer command it takes lot of time to load,start and kill .
so i am in big mess .


please help me

thanks
  • 0

Advertisements


#2
bdlt

bdlt

    Member

  • Member
  • PipPipPip
  • 876 posts
are you still having a problem?

slowness with java may be 'normal'

any time a java program is executed, ALL of the relevant .class files are loaded first. this can take several seconds.

evaluate all of the 'import' lines and delete any unnecessary lines(if you can remove a line and it still compiles, then it is unnecessary).

but ... expect java to startup slowly if many .class files are involved.
  • 0

#3
AlErT

AlErT

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 116 posts
hello thanks for reply but my problem is resolved .actually i hibernate computer therefore lot of system aplications which require restart were pending from long time .so i just get my resources free and applet is running fine
  • 0

#4
coyne20

coyne20

    Member

  • Member
  • PipPip
  • 35 posts

hello !!!!!!!

i am learning java and i am using command prompt to compile and run all programs.
the problem is when i try to run applets using appletviewer command it takes lot of time to load,start and kill .
so i am in big mess .


please help me

thanks


Why are you using the cmd prompt to run your java applet programs? You should really use an IDE like Eclipse. It will make the job of compilation automated and the execution user based a whole lot more simpler.
  • 0

#5
PoRco

PoRco

    Member

  • Member
  • PipPip
  • 14 posts
yea, I didn't even know you could use cmd until a few weeks ago :)

how would you use it exactly anyway? just run the notepad file? =/
  • 0

#6
haik4096

haik4096

    New Member

  • Member
  • Pip
  • 3 posts
Hay Friends

TUTORIAL: Customizing Applet

Customizing Applet Loading Progress

These code is to customize applet game loading/downloading by adding downloading progress bar, background image, color, text, etc.

Because this one comes from the standard Java SDK, this code can be applied to all kinds of applets.
There is no need for anything else, not even the GTGE library.

The additional applet param tag :
Code:
<applet code="MainClass" archive="archive.jar" width=640 height=480>
<PARAM NAME="image" VALUE="imagebg.gif">
<PARAM NAME="progressbar" VALUE="true">
<PARAM NAME="boxmessage" VALUE="what to say while loading">
<PARAM NAME="boxbgcolor" VALUE="0,0,0">
<PARAM NAME="boxfgcolor" VALUE="255,255,255">
<PARAM NAME="progresscolor" VALUE="255,0,0">
</applet>

* param image : gif or jpg
the applet background or if the image size is smaller than applet area it will be the applet icon.
* progressbar : true or false
must be true to show the applet progress bar.
* boxmessage : loading applet
Custom text to show to the user while loading progress.
* boxbgcolor : color value *
applet loading background color
* boxfgcolor : color value *
applet loading progress bar border color
* progresscolor : color value *
applet loading progress bar fill color

* color value can be one of the following:
RGB color, standard HTML color, hexadecimal color format, or any color from java.awt.Color.

To see how it works, you can try any of applet games in the our site games section.
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP