Applet error: MS plug in .vs. Sun plug in


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Applet error: MS plug in .vs. Sun plug in

  1. #1
    Join Date
    Feb 2004
    Posts
    1

    Applet error: MS plug in .vs. Sun plug in

    I have a java applet (a pool effect) I've used on several web pages for quite some time. I use MS FrontPage to design web sites and IE 6 (fully patched) to browse the web. Recently I downloaded the Sun plug in as I was told MS will no longer be supporting their version of java in their browser.

    If I view the web pages I've created using this effect with MS VM selected, the applet loads and behaves properly. If I view the pages with Sun's plug in selected, the applet does not work and Sun's console lists the following error messsge(s):


    Name: PoolMenu Version 1.0

    Author: David Griffiths

    This is an interactive applet class which takes an

    image and covers it in virtual water.

    For more information about this and other applets

    go to http://www.demon.co.uk/davidg/spigots.htm

    Created with Sun JDK 1.1

    Unable to create Pool: java.lang.IllegalArgumentException: Width (-1) and height (-1) cannot be <= 0

    Unable to create next frame: java.lang.NullPointerException

    java.lang.NullPointerException

    at Pool.getImage(Pool.java:268)

    at PoolMenu.paint(PoolMenu.java:490)

    at sun.awt.RepaintArea.paint(Unknown Source)

    at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)

    at java.awt.Component.dispatchEventImpl(Unknown Source)

    at java.awt.Container.dispatchEventImpl(Unknown Source)

    at java.awt.Component.dispatchEvent(Unknown Source)

    at java.awt.EventQueue.dispatchEvent(Unknown Source)

    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

    at java.awt.EventDispatchThread.run(Unknown Source)


    I tried to visit the applet author's website for assistance, but it is no longer located at the host listed in the code. Does anyone know either how I can fix this or where I can find a version of this applet that will work with both the Sun plug in and the MS plug in?

    Thanking you in advance for any help you can offer on this issue.

  2. #2
    Join Date
    Feb 2004
    Posts
    808
    read my JAR tutorial in my sig... skip to the HTML applet part
    The 6th edict:
    "A thing of reference thing can hold either a null thing or a thing to any thing whose thing is assignment compatible with the thing of the thing" - ArchAngel, www.dictionary.com et al.
    JAR tutorial GridBag tutorial Inherited Shapes Inheritance? String.split(); FTP?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center