Test java applet not working in ie8

I'm new to Java and I'm doing some tutorials from a Java programming book. I created an HTML document with the following applet code:
<applet name="HelloWeb"
code="HelloWeb.class"
width=150
height=100>
</applet>
It's a simple document meant to test a basic applet that displays "Hello, World Wide Web!". However, when I view the page in IE8, the applet displays an error message (which I can't seem to decipher). Can anyone help me with this?
Edited by: 880537 on Aug 19, 2011 7:42 PM

my bad...the error looks like this:
java.lang.UnsupportedClassVersionError: HelloWeb : Unsupported major.minor version 51.0
     at java.lang.ClassLoader.defineClass1(Native Method)
     at java.lang.ClassLoader.defineClassCond(Unknown Source)
     at java.lang.ClassLoader.defineClass(Unknown Source)
     at java.security.SecureClassLoader.defineClass(Unknown Source)
     at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
     at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
     at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
     at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
     at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
     at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
     at java.lang.Thread.run(Unknown Source)
Exception: java.lang.UnsupportedClassVersionError: HelloWeb : Unsupported major.minor version 51.0

Similar Messages

  • Java applet not working savevid keepvid

    Hi all,
    I'm sure I'm not the only one who has been confounded by Java applets not working in certain download web services; in my case, keepvid.com and savevid.com to download copies of youtube videos.  It has been a huge headache and even debilitating in my case.  I teach film and video to middle schoolers, and we often use youtube as a resource for our class projects. 
    I found a solution today, I think, and wanted to share it:
    I installed the browser called "Torch" and it seems to work fine, so far.

    thanx 4 replying
    using the browser to view Applet is not recomended that is because if u change the the source-code and recompile the applet then run it using the broswer it will run the old-version
    Also i've found the solution here
    http://www.cs.utah.edu/classes/cs1021/notes/lecture03/eclipse_help.html

  • Java Applets not working using IE 6 after uninstalling software

    I uninstalled some software on WinXP using Add/Remove, however the software still left remnants on my system. I tried to removing all the entries in the registry with RegEdit....I will confess I am a rookie with that tool, however now IE 6 will not launch Java Applets on the web sites I visit.
    I also have Mozilla Firefox 8 installed and Java Applets work fine using that browser. Do I have to reinstall WinXP to correct IE 6, or is there an easier alternative?
    Thanks for any suggestions
    Gerry

    Please check out in the IE Explorer Tools--> Internet Options --> in this Advanced tab this will display you with the set of options and chceck boxes...
    in that please check out that whether the Java(SUN) --- (USe Java....<applet> Requires reStart...
    is existing or not if existing please check it and restart the system.
    if it is not existing in your broser then you have to install the JRE in the system for your Applet to work..
    That can be downloaded form...
    http://www.java.com/en/download/manual.jsp
    Here go for windows....
    All The Best..

  • Java Applets not working with Firefox 5 properly

    Java Applets work sometime. But after sometime the Java icon at the bottom (near date & time) disappears. After this no matter what I do it does not work. Java Applets are used in this case to draw charts. The same charts come out properly in Internet Explorer. But I prefer using Firefox for its speed. What is the reason for this problem ?

    -> Tap ALT key or press F10 to show the Menu Bar
    -> go to Help Menu -> select "Restart with Add-ons Disabled"
    Firefox will close then it will open up with just basic Firefox. Now do this:
    -> Update ALL your Firefox Plug-ins https://www.mozilla.com/en-US/plugincheck/
    -> go to View Menu -> Toolbars -> unselect All Unwanted toolbars
    -> go to Tools Menu -> Options -> Content -> place Checkmarks on:
    1) Block Pop-up windows 2) Load images automatically 3) Enable JavaScript
    -> go to Tools Menu -> Options -> Privacy -> History section -> ''Firefox will: '''select "Remember History"'''''
    -> go to Tools Menu -> Options -> Security -> place Checkmarks on:
    1) Warn me when sites try to install add-ons 2) Block reported attack sites 3) Block reported web forgeries 4) Remember Passwords for sites
    -> Click OK on Options window
    -> click the Favicon (small drop down menu icon) on Firefox SearchBar (its position is on the Right side of the Address Bar) -> click "Manage Search Engines" -> select all Unwanted Search Engines and click Remove -> click OK
    -> go to Tools Menu -> Add-ons -> Extensions section -> REMOVE All Unwanted/Suspicious Extensions (Add-ons) -> Restart Firefox
    You can enable your Known & Trustworthy Add-ons later. Check and tell if its working.

  • Web Intelligence Java Applet not working in new Chrome versions (42+)

    Hi all,
    It used to work until recently. Now I encounter the following error when using the Webi Java Applet in Chrome:
    I read about Google quitting some specific Java support. Is anyone experiencing the same issue? What is a recommended workaround/solution except not updating Google Chrome or switching the browser?
    Regards,
    Peter
    The BO platform version is 4.1, Java version is 7 update 67

    Please check SAP Note 2156305.
    You can re-enable NPAPI with the following URL: chrome://flags/#enable-npapi and then click on "Enable" for the NPAPI plugin.

  • On a Mac Java applets not working on FF 31, have not worked since FF26; how to fix?

    KeepVid, Quietube, Pin It, and placeholders on most websites instead of Java applets. Running Mavericks and Mountain Lion on an iMac and MacAir, and the applets don't work on either - they haven't worked since FF26. Plug-in is installed, and "always activate" in on. Anyone know what's going on and how to fix this?

    I know of two settings associated with Java, maybe we can start there?
    About:addons and then go to "extensions". Look for the Java plugin and make sure it is activated.
    After this you can go to the Java options to make sure that it is active and check if it is up to date here [https://www.mozilla.org/en-US/plugincheck/]
    [https://support.mozilla.org/en-US/kb/how-allow-java-trusted-sites How to allow Java on Trusted Sites in Firefox] may also be helpful.

  • Is there a solution to the problem of Java applets not working in V6.0

    Live weather information, powered by java, does not display on the web page. Previous versions of Firefox, at least upto V4 were OK - I have had to revert to IE

    Thank you for that I have been using a similar site http://ipinfo.info/netrenderer/ but yours seems much better - at least my website http://www.thelittlethings.info seems to be working okay now.

  • Signed java applets not working on lion?

    After downloading java plugin on osx Lion, signed java applets fail to start. This is the error I get in java console, seems like the certificate is not imported to keychain? any workaround?:
    java.lang.reflect.InvocationTargetException
        at java.awt.EventQueue.invokeAndWait(EventQueue.java:1078)
        at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1326)
        at com.koutbo6.gui.swing.GameApplet.init(Unknown Source)
        at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Plugin2Manager.ja va:1640)
        at java.lang.Thread.run(Thread.java:680)
    Caused by: java.security.AccessControlException: access denied (java.awt.AWTPermission setWindowAlwaysOnTop)
        at java.security.AccessControlContext.checkPermission(AccessControlContext.java:37 4)
        at java.security.AccessController.checkPermission(AccessController.java:546)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
        at java.awt.Window.setAlwaysOnTop(Window.java:2038)
        at com.koutbo6.gui.swing.Q.<init>(Unknown Source)
        at com.koutbo6.gui.swing.GameApplet.a(Unknown Source)
        at com.koutbo6.gui.swing.P.run(Unknown Source)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:677)
        at java.awt.EventQueue.access$000(EventQueue.java:85)
        at java.awt.EventQueue$1.run(EventQueue.java:638)
        at java.awt.EventQueue$1.run(EventQueue.java:636)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlConte xt.java:87)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:647)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:29 6)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:20 1)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

    All these settings were set as expected, yet im still facing the same problem
    I enabled security debugging and this is the information I got:
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Loading Root CA certificates from from keychain
    security: Loaded Root CA certificates from from keychain
    security: Validate the certificate chain using CertPath API
    security: Obtain certificate collection in Root CA certificate store
    security: Obtain certificate collection in Root CA certificate store
    security: Obtain certificate collection in Root CA certificate store
    security: jpicertstore.cert.getkeystore
    security: No timestamping info available
    security: Cannot find jurisdiction list file
    security: The CRL support is enabled
    security: KB Programming Analysis and PC Operating Center
    security: ObjectId: 2.5.29.31 Criticality=false
    CRLDistributionPoints [
      [DistributionPoint:
         [URIName: http://crl.thawte.com/ThawteCodeSigningCA.crl]
    security: Thawte Code Signing CA
    security: ObjectId: 2.5.29.31 Criticality=false
    CRLDistributionPoints [
      [DistributionPoint:
         [URIName: http://crl.thawte.com/ThawtePremiumServerCA.crl]
    security: Use CRL setting from certificate
    security: The OCSP support is enabled
    security: KB Programming Analysis and PC Operating Center
    security: ObjectId: 1.3.6.1.5.5.7.1.1 Criticality=false
    AuthorityInfoAccess [
       accessMethod: 1.3.6.1.5.5.7.48.1
       accessLocation: URIName: http://ocsp.thawte.com]
    security: This certificate does not have AIA extension
    security: Use OCSP setting from certificate
    network: Cache entry not found [url: http://crl.thawte.com/ThawtePremiumServerCA.crl, version: null]
    network: Connecting http://crl.thawte.com/ThawtePremiumServerCA.crl with proxy=DIRECT
    network: Connecting http://crl.thawte.com:80/ with proxy=DIRECT
    network: Downloading resource: http://crl.thawte.com/ThawtePremiumServerCA.crl
              Content-Length: 181,278
              Content-Encoding: null
    network: Wrote URL http://crl.thawte.com/ThawtePremiumServerCA.crl to File /Users/koutbo6/Library/Caches/Java/cache/6.0/38/2fb889a6-30a08967-temp
    network: Connecting http://ocsp.thawte.com/ with proxy=DIRECT
    network: Connecting http://ocsp.thawte.com:80/ with proxy=DIRECT
    network: CleanupThread used 990300 us
    network: Connecting http://ocsp.thawte.com/ with proxy=DIRECT
    network: Connecting http://ocsp.thawte.com:80/ with proxy=DIRECT
    security: This certificate has been revoked
    Ignored exception: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: Certificate has been revoked

  • JAVA Applets not working

    Hello,
    I am using "SAMS Teach Yourself JAVA In 21 Days". I use one of the given examples (Progress Bar 2, Day 10, Page 278.) When i run it in a web browser in the status bar it says "Loading JAVA Applet Failed". I dont know what im doing wrong...
    Here is the code; (uncompiled version)
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Progress extends JFrame {
    JProgressBar current;
    JTextArea out;
    JButton find;
    Thread runner;
    int num = 0;
    public Progress() {
    super("Progress");
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    JPanel pane = new JPanel();
    pane.setLayout(new FlowLayout());
    current = new JProgressBar(0, 2000);
    current.setValue(0);
    current.setStringPainted(true);
    pane.add(current);
    setContentPane(pane);
    public void iterate() {
    while (num < 2000) {
    current.setValue(num);
    try {
    Thread.sleep(1000);
    } catch (InterruptedException e) { }
    num += 95;
    public static void main(String[] arguments) {
    Progress frame =new Progress();
    frame.pack();
    frame.setVisible(true);
    frame.iterate();
    Any Help Appreciated,
    Olie122333

    This isn't an Applet, it is a JFrame.
    See: http://java.sun.com/docs/books/tutorial/deployment/applet/index.html
    Use java.swing.JApplet instead of Applet if you are using the Swing API as you are.
    Of course if the section of the book you refer to is about applets and you don't understand the difference between an applet and an application you should probably throw the book out in 21 minutes and buy a usefull one.

  • Java Applet Not Working

    Hi, I have a crossword puzzle that doesn't seem to work when uploaded on a server. It works locally and has worked on other servers. What could be causing this not to work?

    Welcome to Apple Discussions.
    That's syncs up with the 04/29/2008 Java 6 release. From personal experience I can tell you I suffered through it for 3 days until the applet I use as a client was re-written. They didn't share the answer with me.
    Also, you may have hosed your system by trying to revert your Java. That's got files deep in the system. Try doing a fresh install OS X 10.5.x and see how your applet performs.
    -mj

  • Java Applets not working in New Versions of Java

    I have developed a chat program using Applets(developed using jdk1.2),using a Server.Everything is perfectly working.Now,On my client machine i installed jdk1.4, and when i try to download the same applet it is giving Applet ClassNotFound Exception?.
    I have just set the class path to jdk1.4.And trying to call the applet from a browser.
    IS there any changes in writing the applets using the new version of Java?
    Kindly let me know.
    Thanks & Regards.,
    Naveen Kumar

    Sorry can't use em anymore.
    ah, ... perhaps not.
    What class is not found?

  • Installing Java 7 from Oracle just made Applets not work, how to fix

    Mac 10.7.4. I tried installing Java 7 from Oracle, but all it did was remove half the prefs from Java and make Applets not work. How do I revert/reinstall Java?

    Here you go!
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • Java does not work at all upon using the update manager to update to firefox 3.6.10 for Ubuntu 9.0.4

    OS: Ubuntu 9.0.4
    Browser: Firefox 3.6.10
    upon updating to firefox 3.6.10, java does not work at all.
    websites that use java do not work at all anymore, when they worked just fine before the updating thru update manager. e.g. hulu website cannot play any of the shows.
    i can give the folder of bookmarked pages i tried.
    how to do that on here, i've yet to see if possible.
    i can even give saved text from the terminal concerning certain attempts.
    when i updated thru update manager, it gave some weird java plugin that wasn't there before "The IcedTea Web Browser Plugin IcedTea6 Java Web Browser Plugin (execution of applets on webpages)".
    i uninstalled this as instructed by an answer found in one of the pages i saved, cuz it was conflicting w/another java program the updater said i needed. right now, i don't remember for sure what it was. it perhaps was realplayer flash or Java itself. w/all the hours/days of searching i put in, it's difficult if not downright impossible for me to remember all the specifics of what i tried.
    i've searched throughout many webpages (including many searches on mozilla, ubuntu, java, etc) for instruction in fixing the problem.
    oh, and incidentally, on the Java site, when i try the verify test of Java, firefox pops up with that yellow bar right below the slew of tabbed website windows, giving the statement "additional plugins are required to display all the media on this page. (w/link to) install missing plugins ." which is what i do, go thru the requesting plugin installation. it comes up with, guess what, the IcedTea Java Plugin. i click on the 'next' in the "Plugin Finder Service" box that pops up, & all it gives me is "No plugins were installed. IcedTea ...Plugin failed. and the link 'find out more about plugins or manually find missing plugins'". the link takes me to some of the very things/plugins that wouldn't install in the first place. the Java test failure is a LOL funny, as what plugin it is saying is required (IcedTea) is a recommended alternate program to display the very test in the first place.
    i followed the given instructions on those many searched pages, in every case (barring what i may have just plain missed), but to no avail.
    i've even gone to the point of trying to reinstall the previous 3.5.13 firefox version, from mozilla site. even that wouldn't install.
    i've tried installing Java for my sys direct from it's site. nada.
    now it's time for me to post the problem & perhaps someone will come up with some kind of "dummy" way to fix it.
    until then many sites a regularly use are totally useless to me on this fast puter.
    the only way i can get to use such sites, are two choices: 1. use a dinosaur laptop, which is slower than molasses & cannot handle to any streaming stuff, or 2. use an available internet access puter at the library. but useage for ea person per day is limited to only one hour a day. and one can end up waiting for an hour or more ( in the busiest periods) to even get to use one.
    so, is there anyone at all, who knows any for-sure working fix for this problem?
    thanks muchly :^D
    p.s. i can't pay anybody any money for such help, as is required in certain sites (e.g. Java website), cuz i don't have any.
    i can pay in labor tho, if there is someway to find someone who can physically be at this puter w/me, taking me step-by-step
    sorry for the 20-pg essay. i hope it was all clearly understood. if, not, well, clear communication is always what is needed, ask away.

    Your above posted system details show outdated plugin(s) with known security and stability risks.
    *Shockwave Flash 9.0 r999
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/
    In Firefox 3.6 and later versions you need the Next-Generation Java™ Plug-In present in Java 6 U10 and later (Linux: libnpjp2.so; Windows: npjp2.dll).
    http://java.com/en/download/faq/firefox_newplugin.xml
    See also http://java.sun.com/javase/6/webnotes/install/jre/manual-plugin-install-linux.html

  • Java Safari Not Working

    Hi all, I am running 10.4.11 with the new safari but now I believe my java is not working right anymore. I am getting the mug with arrows and no response when I try to upload photos onto places like facebook and costco. I have gone through the software update but it says I am all up to date. As well, I need to access the following site:
    http://www.cra-arc.gc.ca/esrvc-srvce/tx/ndvdls/myccnt/menu-eng.html
    and the following comes up...
    "Java applet unable to load"
    then..
    +On Macintosh Operating Systems:+
    +Mac OS X version 10.4.+
    +Browsers Supported:+
    +Safari 2.0.4 (Webkit 419.3 or higher).+
    +Apple JVM 1.4.2_07 to 1.4.2_16;+
    +Apple JVM 1.5.0_05 or higher.+
    +Safari 3.0.4 (Webkit 523.12 or higher).+
    +Apple JVM 1.4.2_07 to 1.4.2_16;+
    +Apple JVM 1.5.0_05 or higher.+
    Any help?

    Commiserating with you Seanifer - I cannot get Java-based Webinars (Citrix) to load either. As a test of a theory, I tried to load the same webinars in Firefox. It too didn't load - I suspect it's an issue specifically with Java and not necessarily with Safari.
    I too have all software updated - I'm running in Leopard v10.5.6, running Safari v3.2.1 and Java Web Start 12.2.0. Firefox v3.0.6
    We might want to begin with temporarily removing the plist for Java. Do you know how to do this (I do - I'm asking so as to know how detailed my assistance should be for you).
    I have the following Java components loading in this order:
    Java applet versions
    J2SE 5.0 32bit
    Java SE 6 64-bit
    J2SE 5.0 64bit
    J2SE 1.4.2 32-bit
    Java application versions
    J2SE 5.0 32bit
    Java SE 6 64-bit
    J2SE 5.0 64bit
    J2SE 1.4.2 32-bit
    I believe these are the "default" settings as seen in my Java Preferences panel.
    Rolling-up my sleeves on this one! Stay tuned.
    - mp

  • Help!!! Need Java Applet to work in IE

    I found some applets (text scrollers) from the sun site that i wanted to use. downloaded them, but they do not work in IE that does not have JVM. in IE that does have JVM it says 'Java 1.1 Required' where the applet should be. is there a simple way to get sun java applets to work with IE and the MS Virtual Machine? I can't require my site visitors to have to download extra toys/plugins...

    If you are looking for a purely AWT scrolling applet. Here is one I wrote several years ago. Please note that there are some deprecated methods in it (mainly the thread start and stop methods). It will still compile though. If you want it, take it.
    Source:import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    import java.net.*;
    public class ScrollApplet extends Applet implements Runnable
       /*=*********************
       * private data members *
       private Thread myThread = null;
       private boolean hasTextDisplayed;
       private int appletWidth, appletHeight;
       private int yPosition;
       private int xPosition;
       private Image textImage;
       private int imageWidth;
       private Graphics textGraphics;
       private Cursor oldCursor;
       private Cursor newCursor = new Cursor(Cursor.HAND_CURSOR);
       //parameters
       private int delay;
       private String displayText;
       private Color bgColor, fgColor;
       private int fontSize, fontStyle;
       private Font fontType;
       private String urlValue;
       /*=***************
       * applet methods *
       public void init()
          //assign values to private data members
          hasTextDisplayed = false;
          appletHeight = yPosition = getSize().height;
          appletWidth = xPosition = getSize().width;
          //set up the environment
          extractParameters();
          //determine the yPosition to place the image
          calculateYPosition();
          //set up the text image
          FontMetrics fm = getFontMetrics(fontType);
          imageWidth = fm.stringWidth(displayText);
          textImage = createImage(imageWidth, appletHeight);
          textGraphics = textImage.getGraphics();
          textGraphics.setColor(bgColor);
          textGraphics.fillRect(0,0,imageWidth,appletHeight);
          textGraphics.setColor(fgColor);
          textGraphics.setFont(fontType);
          textGraphics.drawString(displayText, 0, yPosition);
          oldCursor = this.getCursor();
          addMouseListener(new MouseAdapter() {
             public void mouseExited(MouseEvent e)
                if (urlValue != null) {
                   Component thisApplet = e.getComponent();
                   thisApplet.setCursor(oldCursor);
                showStatus(" ");
                myThread.resume();
             public void mouseEntered(MouseEvent e)
                myThread.suspend();
                if (urlValue != null) {
                   Component thisApplet = e.getComponent();
                   thisApplet.setCursor(newCursor);
                   showStatus(urlValue);
                else
                   showStatus("paused");
             public void mouseClicked(MouseEvent e)
                if (urlValue != null)
                   try {
                      URL u = new URL(urlValue);
                      getAppletContext().showDocument(u, "_self");
                   } catch(MalformedURLException ex) {
                   showStatus("MalformedURLException: " +ex);
       }//end init method
       public void start()
          myThread = new Thread(this);
          myThread.start();
       }//end start method
       public void update(Graphics g)
       //overwrote this method to avoid repainting of background before all text displays
          if (hasTextDisplayed == true)
             //repaint the background
             g.setColor(bgColor);
             g.fillRect(xPosition+imageWidth, 0, appletWidth - (xPosition + imageWidth),
                          appletHeight);
             g.setColor(fgColor);
          paint(g);
       }//end update method
       public void paint(Graphics g)
          setBackground(bgColor);
          g.drawImage(textImage,xPosition,0,this);
       }//end paint method
       public void stop()
       { myThread = null; }
       /*=*******************************************************************************
       * applet method getParameterInfo():                                              *
       * Returns information about the parameters that are understood by this applet.   *
       * An applet should override this method to return an array of Strings describing *
       * these parameters.  Each element of the array should be a set of three Strings  *
       * containing the name, the type, and a description.                              *
       public String[][] getParameterInfo()
          String parameterInfo[][] = {
             {"DELAYPARAM", "int", "The interval to pause in milliseconds"},
             {"TEXTPARAM", "string", "The text that will be displayed"},
             {"BGPARAM", "Color", "The bg color for the applet, in html format #FFFFFF"},
             {"FGPARAM", "Color", "The fg color for the text, in html format #FFFFFF"},
             {"FONTSIZEPARAM", "int", "The font size of the text"},
             {"FONTTYPEPARAM", "string", "The name of the font to use"},
             {"FONTSTYLEPARAM", "string", "bold, italic, or bold+italic"},
             {"URLPARAM", "string", "hyperlink"}
          return parameterInfo;
       }//end getParameterInfo method
       /*=*****************************************************************************
       * applet method getAppletInfo():                                               *
       * Returns information about this applet. An applet should override this method *
       * to return a String containing information about the author, version, and     *
       * copyright of the applet.                                                     *
       public String getAppletInfo()
          String infoAboutMe;
          infoAboutMe = new String(
             "Author:  Your Name Here/n" +
             "Description:  My first text scroller\n" +
             "Version: 1.0"
          return infoAboutMe;
       }//end getAppletInfo method
       /*=***************
       * thread methods *
       public void run()
          Thread current = Thread.currentThread();
          //loop until thread is stopped
          while (myThread == current)
             repaint();
             try {
                current.sleep(delay);
                xPosition--;
             } catch (InterruptedException e) {}
             if (xPosition <= (appletWidth - imageWidth))
                hasTextDisplayed = true;
             else
                hasTextDisplayed = false;
             if (xPosition == (0 - imageWidth))
                xPosition = appletWidth;
       }//end required run method
       /*=**********************************************************************
       * extractParameters():  Sets all parameter values, if any were provided *
       public void extractParameters()
          String delayValue = getParameter("DELAYPARAM");
          String textValue = getParameter("TEXTPARAM");
          String bgColorValue = getParameter("BGPARAM");
          String fgColorValue = getParameter("FGPARAM");
          String fontSizeValue = getParameter("FONTSIZEPARAM");
          String fontTypeValue = getParameter("FONTTYPEPARAM");
          String fontStyleValue = getParameter("FONTSTYLEPARAM");
          String urlParam = getParameter("URLPARAM");
          //set delay to one tenth of a second if missing parameter
          delay = ((delayValue == null) ? 100 : Integer.parseInt(delayValue));
          urlValue = (urlParam == null ? null : urlParam);
          displayText = ((textValue == null) ?
                new String("NO TEXT WAS PROVIDED!") :
                textValue);
          bgColor = determineColor(bgColorValue);
          fgColor = determineColor(fgColorValue);
          fontStyle = determineFontStyle(fontStyleValue);
          fontSize = ((fontSizeValue == null) ? 12 : Integer.parseInt(fontSizeValue));
          fontType = new Font(fontTypeValue, fontStyle, fontSize);
       }//end extractParameters method
       /*=*************************************************
       * determineColor():  returns the appropriate color *
       public Color determineColor(String value)
          return parseHTMLHex(value);
       }//end determineColor method
       /*=*****************************************************************************
       * parseHTMLHex(): parses an HTML hex (eg #FFFFFF) and returns the Color object *
       public static Color parseHTMLHex(String htmlHex) {
          Color color = new Color(220,220,220);  //default grey
          if (htmlHex != null) {
             String red = htmlHex.substring(1,3);
             String green = htmlHex.substring(3,5);
             String blue = htmlHex.substring(5);
             color = new Color(Integer.parseInt(red,16),
                           Integer.parseInt(green,16),
                           Integer.parseInt(blue,16));
          }//end if
          return color;
       }//end parseHTMLHex method
       /*=******************************************
       * determineFontStyle():  returns font sytle *
       public int determineFontStyle(String value)
          int returnVal;
          if (value == null)
             returnVal = Font.PLAIN;
          else if (value.equalsIgnoreCase("plain"))
             returnVal = Font.PLAIN;
          else if (value.equalsIgnoreCase("bold"))
             returnVal = Font.BOLD;
          else if (value.equalsIgnoreCase("italic"))
             returnVal = Font.ITALIC;
          else if (value.equalsIgnoreCase("bold+italic"))
             returnVal = Font.BOLD + Font.ITALIC;
          else
             returnVal = Font.PLAIN;
          return returnVal;
       }//end determineFontStyle method
       /*=**********************************************************
       * calculateYPosition(): want text to be in middle of applet *
       public void calculateYPosition()
          //wasYPositionCalculated = true;
          //make calculations to center font in applet window
          int appletMidHeight = appletHeight / 2;         //the middle of the applet
          FontMetrics fm = getFontMetrics(fontType);    //font metrics for current font
          int fontMidHeight = fm.getAscent() / 2;         //the middle of the font
          int currentFontSizeValue;                       //temp value for font size
          //if the font size if too big, fix it
          if ((currentFontSizeValue = fm.getAscent()) > appletHeight)
             //cycle through font sizes until find one that fits
             while (currentFontSizeValue > appletHeight)
                fontType = new Font(getParameter("FONTTYPEPARAM"), fontStyle, --fontSize);
                fm = getFontMetrics(fontType);
                currentFontSizeValue = fm.getAscent();
             //set the new values for the new font
             setFont(fontType);
             fm = getFontMetrics(fontType);
             fontMidHeight = fm.getAscent() / 2;
          yPosition = appletMidHeight + fontMidHeight - 3;
       }//end calculateYPosition()
    }//end applethtml:<HTML>
    <HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
    <TITLE>Test scroller applet</title>
    </head>
    <BODY>
    <h1>Scroller Applet</h1>
    <!--CODEBASE = "."-->
    <APPLET
      CODE     = "ScrollApplet.class"
      NAME     = "TestApplet"
      WIDTH    = 400
      HEIGHT   = 30
      HSPACE   = 0
      VSPACE   = 0
      ALIGN    = middle
    >
    <PARAM NAME="DELAYPARAM" VALUE="10">
    <PARAM NAME="TEXTPARAM" VALUE="Simple Old Scrolling Applet?">
    <PARAM NAME="BGPARAM" VALUE="#000000">
    <PARAM NAME="FGPARAM" VALUE="#CCCCCC">
    <PARAM NAME="FONTSIZEPARAM" VALUE="24">
    <PARAM NAME="FONTTYPEPARAM" VALUE="TimesRoman">
    <PARAM NAME="FONTSTYLEPARAM" VALUE="italic">
    <PARAM NAME="URLPARAM" VALUE="http://quote.yahoo.com/quotes?SYMBOLS=DISH">
    </applet>
    </body>
    </html>tajenkins

Maybe you are looking for