My applet won't work in IE

This applet won't work in IE, but it will in Opera, WHY??!!
import java.awt.*;
import java.applet.*;
import javax.swing.*;
public class MyApplet2 extends Applet {
     int hoeveelheid = 21;
     int computer;
     String vraag;
    int vraaggetal;
     public void start() {
          JOptionPane.showMessageDialog (null,
                "We hebben 21 lucifers en we moeten er \n steeds om de beurt 1,2,3, of 4 pakken. \n Wie het laatste setje heeft, heeft gewonnenn.",
              "Uitleg", JOptionPane.INFORMATION_MESSAGE);  
        while (hoeveelheid > 0){
             do {     
                     vraag = JOptionPane.showInputDialog
                        ("We hebben er nog "+hoeveelheid+",\n hoeveel wil je er pakken?");
                  vraaggetal = Integer.parseInt (vraag);
                     if (vraaggetal > 4 || vraaggetal <= 0){
                               JOptionPane.showMessageDialog (null,
                                 "Geef alsjeblieft een 1,2,3 of 4 in: ",
                                "Fout", JOptionPane.INFORMATION_MESSAGE);
                     if (hoeveelheid < 4){
                          if (vraaggetal > hoeveelheid){
                               JOptionPane.showMessageDialog (null,
                                 "We hebben er nog maar "+hoeveelheid+" dus "+vraaggetal+" lukt niet",
                                "Fout", JOptionPane.INFORMATION_MESSAGE);                                                   
              } while (vraaggetal > 4 || vraaggetal <= 0 || vraaggetal > hoeveelheid);          
           hoeveelheid = hoeveelheid - vraaggetal;
           if (hoeveelheid == 0) {
                     JOptionPane.showMessageDialog (null,
                           "U heeft gewonnen!! Gefeliciteerd",
                          "Victory", JOptionPane.INFORMATION_MESSAGE); 
           if (hoeveelheid != 0){
                     do {                        
                            computer = ((int)(Math.random() * 10));                                 
                       } while (computer > 4 || computer <= 0 || computer > hoeveelheid);
                         JOptionPane.showMessageDialog (null,
                       "We hebben nog "+hoeveelheid+",\n ik pak er "+computer,
                          "Uitleg", JOptionPane.INFORMATION_MESSAGE);
                          hoeveelheid = hoeveelheid - computer; 
                          if (hoeveelheid == 0){
                               JOptionPane.showMessageDialog (null,
                                "Whaha, ik heb gewonnen!!",
                              "Victory", JOptionPane.INFORMATION_MESSAGE);   
}

You are using Swing components in your applet , and the Microsoft VM dosen't have the javax.swing package . You could try with the Sun Java Plug-in.

Similar Messages

  • Applet Won't work out of NetBeans W/Swing

    My Applet is working in NetBeans sun AppletRunner, but won't run in a browser and gives this exception:
    java.lang.NoClassDefFoundError: org/jdesktop/layout/GroupLayout$Group
         at java.lang.Class.getDeclaredConstructors0(Native Method)
         at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
         at java.lang.Class.getConstructor0(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)And my Applet extends javax.swing.JApplet, so whats wrong?

    Did you specify the jar in the archive attribute of the applet element tag?
    http://java.sun.com/docs/books/tutorial/uiswing/components/applet.html#plugin
    Of course this does not help if the class is not in the jar though. :-/ (which seems very strange)
    -Puce

  • SOMEONE PLEASE HELP ME!!!!! My applets won't work.

    I have tried everything that has been suggested. I'm running out of hope.
    I set my environment variables, implemented the codebase tag in my html, compiled with -target1.1 and enabled the JIT for VM in Internet Explorer's Internet Options. I even downloaded the Java Plug-in. Nothing is working. No matter if the applet is an Applet or a JApplet.
    Every time i open an html file with an applet the page loads but the applet does nothing. When i mouseover the gray applet box i get a message in my browser's status bar reading "load: class myClass not found". Not even the example applets that came with the JDK1.4 i downloaded work. They all display that same message when i mouseover the gray box.
    They all do however work when i use the command prompt appletviewer.
    Is something wrong with my browser? If i view someone's on-line applets they work fine.
    As long as the applet's class file and html is not on my system or i view them throught the command prompt they work fine. Otherwise i get the status message "load: class myClass not found"
    Is something maybe wrong with my environment variables that i don't know about?
    I'm running Microsoft Windows 2000 Professional and Microsoft Internet Explorer 5.0.
    I also have a copy of Microsoft Visual Basic 6.0 installed on my machine. Is this maybe causing conflicts?
    SOMEONE PLEASE HELP ME!!!!!
    Chance

    I did a search using these (include the quotes): "load: class XXXX not found" and "load: class" "not found" and got quite a few hits. Everyone agrees that the problem is that Java can't find the applet file <appletName>.class and the problems fall into 2 types:
    (1) The applet requires a Java 1.2+ feature in your program and your browser is usings its default runtime, which is 1.1 based
    (2)The CODE attribute specifies the wrong name, the class name is saved with the wrong case, the class file is located in the wrong directory, or some similar typo.
    I Suggest that you double check that the JavaPlugin is activated (open it in Control Panel) and that the BROWSER tab shows that it is in use by IE. Then make sure that neither the HTML or applet files reference any directories - ie, just file names are being used, not directory paths. Everything should be in the same directory. Proof read everything in the HTML and applet files for spelling, UC/LC match, etc.
    Here are a few of the items I found:
    http://www.jguru.com/faq/view.jsp?EID=488128
    http://www.usingit.com/products/java/applet/agnpro/faq/
    http://www.srctec.com/help/cooltextfaq.htm
    http://forum.java.sun.com/thread.jsp?forum=54&thread=246794
    http://forum.java.sun.com/thread.jsp?forum=54&thread=142328
    There's lost more, everything I saw said the same thing as I did above. It's a matter of you finding the problem, it's there.

  • Autoinstallation Applet won't work without a refresh

    Ahoy - I have completed an applet that finds the java home directory and installs the three javacomm API files (if they do not exist). After writing these three files, it redirects the browser to a webpage with another applet, this second applet being one that uses javacomm.
    The autoinstallation works perfectly (on my computer at least ;-) in that the files install where they are supposed to. But upon redirection, the second applet still insists that the javacomm classes don't exist, and so it will not initialize.
    If I close down all my browser windows and open this applet back up, everything is happy again - it loads with no problems and performs as expected.
    But I would realllly not like to have to write a disclaimer at the bottom of my web page: "If this does not load, please close down all your browser windows and try again."
    Any idea why this is happening?

    Thanks bsamp and DrClap.
    I think it's more likely to be that the browser's JVM has already identified >everything in the extensions directory (which is where you install javax.comm, >correct?) and it doesn't react to new jars in that directoryThat makes sense =) It doesn't make happy sense, but it makes sense =\
    If I can't find a way to make the JVM take another look, then I guess I could live with a one-time required restart for each computer (though it might not go over well =P)
    I didn't have to call Regsvr when I installed it either...mm, I will see if I can find anything about making the JVM reload extensions (I agree with your assessment of my sanity, Doctor Clap).

  • My applet won't work properly??

    Why wont' my applet work???
    Here take a look at my source code!
    import java.awt.*;*
    *import java.net.*;
    import java.applet.*;
    public class applet extends Applet implements Runnable
    private Thread th;
    private boolean key_enter;
    Image background;
    public void init()
    background = getImage(getCodeBase(), "background.gif");
    key_enter = false;
    public boolean keyboard(Event e, int key)
    if(key == 13)
    Launch("[http://www.vasignup.webbyen.dk/]");
    return true;
    public static void Launch(String launch)
    String operatingSystem = System.getProperty("os.name");
    try
    if(operatingSystem.startsWith("Windows"))
    Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + launch);
    } else
    } catch(Exception exception)
    System.err.println("Error Launching URL.");
    exception.printStackTrace();
    private void getImages()
    public void start()
    th = new Thread(this);
    th.start();
    public void destroy()
    th.stop();
    public void run()
    public void stop()
    th.stop();
    public void update(Graphics g)
    public void paint(Graphics g)
    g.drawImage(background, 0, 0, this);
    }So as you see my applet was supposed to open up, the internet page vasignup.webbyen.dk??
    Please help me..

    Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + launch);Imagine if you will, some rogue applet on the internet which instead of attempting to execute the above external application, attempted to execute any arbitrary executable, with any side effects such as deleting files, formatting the drive, etc.
    Do you now see the problem?
    Applets (unsigned ones, anyway) are not allowed to do that.

  • Email Applet won't work after installing JSDK 1.4

    I am used to visiting my online email facility at University which contains an Applet to allow users to reply to, compose, delete messages, etc but since installing JSDK 1.4 I am now longer able to view the Applet - I am presented with the Java icon (coffee cup) and the following code in the Java console. Previous to JSDK I had installed no version of Java on this machine but I have had previous versions installed on other machines which caused no problems at all. Any help or advice would be appreciated, thanks.
    =========================================================================
    Java(TM) Plug-in: Version 1.4.1_02
    Using JRE version 1.4.1_02 Java HotSpot(TM) Client VM
    User home directory = D:\Documents and Settings\Administrator.UNI2000
    Proxy Configuration: No proxy
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    p: reload proxy configuration
    q: hide console
    r: reload policy configuration
    s: dump system properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    java.util.zip.ZipException: ZIP file must have at least one entry
         at java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:292)
         at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:141)
         at java.util.zip.ZipOutputStream.close(ZipOutputStream.java:311)
         at sun.plugin.cache.CachedJarLoader.decompress(CachedJarLoader.java:432)
         at sun.plugin.cache.CachedJarLoader.access$500(CachedJarLoader.java:53)
         at sun.plugin.cache.CachedJarLoader$5.run(CachedJarLoader.java:335)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin.cache.Cache.privileged(Cache.java:219)
         at sun.plugin.cache.CachedJarLoader.download(CachedJarLoader.java:320)
         at sun.plugin.cache.CachedJarLoader.load(CachedJarLoader.java:128)
         at sun.plugin.cache.JarCache.get(JarCache.java:172)
         at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(CachedJarURLConnection.java:93)
         at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(CachedJarURLConnection.java:78)
         at sun.misc.URLClassPath$JarLoader.getJarFile(URLClassPath.java:580)
         at sun.misc.URLClassPath$JarLoader.<init>(URLClassPath.java:541)
         at sun.misc.URLClassPath$3.run(URLClassPath.java:319)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.misc.URLClassPath.getLoader(URLClassPath.java:308)
         at sun.misc.URLClassPath.getLoader(URLClassPath.java:285)
         at sun.misc.URLClassPath.getResource(URLClassPath.java:155)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
         at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:134)
         at sun.plugin.security.PluginClassLoader.findClass(PluginClassLoader.java:168)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
         at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:114)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
         at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:501)
         at sun.applet.AppletPanel.createApplet(AppletPanel.java:567)
         at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1778)
         at sun.applet.AppletPanel.runLoader(AppletPanel.java:496)
         at sun.applet.AppletPanel.run(AppletPanel.java:293)
         at java.lang.Thread.run(Thread.java:536)
    load: class lotus.notes.apps.actionbar.ActionBar.class not found.
    java.lang.ClassNotFoundException: lotus.notes.apps.actionbar.ActionBar.class
         at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:153)
         at sun.plugin.security.PluginClassLoader.findClass(PluginClassLoader.java:168)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
         at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:114)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
         at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:506)
         at sun.applet.AppletPanel.createApplet(AppletPanel.java:567)
         at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1778)
         at sun.applet.AppletPanel.runLoader(AppletPanel.java:496)
         at sun.applet.AppletPanel.run(AppletPanel.java:293)
         at java.lang.Thread.run(Thread.java:536)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:252)
         at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:42)
         at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:143)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:140)
         ... 10 more

    Goto Tools, Internet Options, Advanced, scroll down to Java (Sun) Unclick (no check mark) Use Java 2 1.x.x for <applet>, close all IE windows. Open IE, try again.

  • Applet won't work =(

    I'm having mysterious problems on trying to run my applet. It just seems the .class file is not found.
    For example I have this <html>
    <html>
    <applet code="AppletMain.class" width="800" height="600"> </applet>
    </html>And I get this error in the Java Console
    java.lang.NoClassDefFoundError: AppletMain (wrong name: buttonsoccerclient/AppletMain)
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.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.NoClassDefFoundError: AppletMain (wrong name: buttonsoccerclient/AppletMain)The AppletMain.class file is in the same folder as the html.

    xissburg wrote:
    And I get this error in the Java Console
    Exception: java.lang.NoClassDefFoundError: AppletMain (wrong name: buttonsoccerclient/AppletMain)The AppletMain.class file is in the same folder as the html.The error is telling you that the AppletMain.class file that was found does not contain a class whose fully qualified class name is AppletMain. Instead, that .class file contains a class whose fully qualified class name is buttonsoccerclient.AppletMain. In other words, you have put "package buttonsoccerclient;" as the first line of the AppletMain source code file. So, the AppletMain.class file must be in a directory named buttonsoccerclient. And that directory must in the codebase directory of the applet. And the applet tag 'code' must specify buttonsoccerclient.AppletMain.

  • Applet won't start

    Hi!
    I have written an applet that works just fine on my own Tomcat 4
    server but when i try it on this ISP:n (web-hotel) it won't work!
    The ISP:n is running a Linux server but without X installed. The
    applet is using the following classes:
    import java.applet.Applet;
    import java.applet.AppletContext;
    import java.awt.*;
    import java.io.DataInputStream;
    import java.net.URL;
    import java.net.URLConnection;
    import java.util.*;I know that AWT sometimes need X installed but the applet is
    client-side right? Anyone knows why the applet won't work??
    /Andreas

    Hey there Andreas,
    I thought I posted this once but since I don't see it in the list, I will try again!
    I checked your page out and I am not getting any errors so I assume that your class is up on the server and is serving up correctly. What I did notice, however, is that the file passed in as a parameter to the applet named "scrollinput.txt" is not in the directory with the page. This could be a problem. I have used a scrolling applet that does news with links in the past and the file had to be there for it to work. I am assuming the same applies here. So in short, I think the applet is working, it is just doing what it is told; Nothing.
    Take care,
    Patrick

  • Javascript or applet dropdown menus won't work in IE6, How can I solve this

    I've made some dropdownmenu's of javascript and one of java applets. But they don't work in IE6. If IE6 is installed they won't work either. My friend has IE5.5 and he has no problems with the menus. How can you make them work.
    And how can you change the z-index of a javascipt/applet? How do you make a dropdownmenu that's put in the topframe slide over the mainframe?

    Perhaps someone could help me with the following question:
    I have a menu that cascades out of the Applet box. My question is:
    How do I close the menu without clicking on the Applet box? - i.e. if the user clicks on the HTML area of the WEB-PAGE, or simply waits a second or 2, the menu should collapse?
    I notice that this is actually the default behavior for the AWT classes - but then you can't set background colors etc. I need the same kind of behavior, but using Swing classes.
    Would appreciate any assistance or advice...

  • Signed applet don't work on XP

    Hi,
    I'am currently working on a point-of-sale (POS) using windows XP/Firefox and a linux apache/jboss server.
    I have developed a dynamic windows library in order to use an industrial printer connected to the POS to perform some printing without confirmation of the customer.
    The POS is under Windows XP SP2 and use Firefox 2.0.0.11/JRE 1.5.0.14.
    This dll is used by a signed applet located on the apache/jboss server.
    The applet is correctly downloaded by the client, but normally i have to wait for the certicat authentification windows appearing and for confirming that i want execute the applet. And instead i have a java exception :
    security: La v�rification du certificat � l'aide des certificats AC racine a �chou�
    security: Aucune information d'horodatage disponible
    java.lang.NullPointerException
         at com.sun.deploy.ui.UIFactory.showSecurityDialog(Unknown Source)
         at com.sun.deploy.security.TrustDeciderDialog.showDialog(Unknown Source)
         at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
         at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
         at sun.plugin.security.PluginClassLoader.getPermissions(Unknown Source)
         at java.security.SecureClassLoader.getProtectionDomain(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.access$100(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    security: L'utilisateur a refus� les droits d'acc�s au code
    basic: Taille de cache du chargeur de classes courant : 1
    basic: Termin�...
    basic: Jonction du thread d'applet...
    basic: Destruction de l'applet...
    basic: Elimination de l'applet...
    basic: Sortie de l'applet...
    java.lang.ExceptionInInitializerError
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission loadLibrary.C:\Program Files\BICImpression\impression_api.dll)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkLink(Unknown Source)
         at java.lang.Runtime.load0(Unknown Source)
         at java.lang.System.load(Unknown Source)
         at applets.impression.Impression.<clinit>(Impression.java:38)
         ... 11 moreand then the certicat authentification windows appears but it's too late, the applet won't never execute ...
    the apache/jboss server is accessed via some gateway, firewal, ... tha t i can't control
    the apache jboss/server on my own PC is accessed directly :
    What is amazing, is that work fine with my own professionnal PC on W2000 SP4, with JRE1.5.0.14 and Firefox 2.0.0.11 :
    when I look in the java console, the java freeze until i have answered this java security window (certicat authentification windows). And when i answered "run" no problem the applet makes her own job.
    here is the code when it works :
    security: La v�rification du certificat � l'aide des certificats AC racine a �chou�
    security: Aucune information d'horodatage disponible
    basic: Plugin modality.pushed
    basic: Modalit� empil�e
    basic: push javax.swing.JDialog[dialog0,379,296,519x323,layout=java.awt.BorderLayout,modal,title=Avertissement - S�curit�,defaultCloseOperation=HIDE_ON_CLOSE,rootPane=javax.swing.JRootPane[,3,22,513x298,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777673,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true]
    basic: Chargement arr�t�...
    basic: Arr�t de l'applet...Conclusion
    POS : Win XP SP2, JRE1.5.0.14 (i tried 1.5.0.6 and 1.6.3 the latest), Firefox 2.0.0.11 (I tried 2.0.0.0 and 3 beta2 don't work anyway)
    my own server/client : W2000 SP4, JRE1.5.0.14, Firefox 2.0.0.11
    Linux server : RHEL4
    It works with IE on the POS with the linux sever but it's not the selected browser.
    It works with IE on the POS with my own server.
    It works with Firefox on the POS with my own server.
    It works with IE on my own server with the linux sever but it's not the selected browser.
    It works with IE on my own server with my own server.
    It works with Firefox on my own server with the linux sever.
    It works with Firefox on my own server with my own server.
    If you have some idea to make it work i'm you're buyer !!
    Thank a lot for reading this, and i apologize for my poor english ...
    greetings,
    Benoit
    Edited by: bendur on Feb 29, 2008 3:49 AM

    Ok I have found my problem :
    On every web pages, we have defined some inactivity timeouts.
    On my own server I have disabled these timeouts but not on the distant timeout.
    And it seems that the timeout (defined in javascript ont he web pages : 3s) has a very bad influence on the launching of my applet ... only with firefox (with IE and Opera no problem)
    My problem is anwsered but the problem keep alive for firefox ...

  • Touchgraph link browser right click won't work; jre 1.4.2_03 linux

    touchgraph link browser right click won't work; jre 1.4.2
    Wanted to mention that the touchgraph link browser(java client) client starts correctly in Redhat 9, but i found one problem when trying to edit links. The problem being that I can't open the small popup menu when i right click in linux RedHat 9. left clicking while dragging on a selected link (in edit mode) lets you create a new link both in microsoft windows 95a and in Redhat 9. When i right click in win95a, a small menu appears that allows me to edit a link, but this menu doesn't appear after right clicking a link in edit mode in redhat 9 (which does work with TG link browser in win95).
    I tried using a 2 button mouse with 3 button emulation. I also tried to use a 3 button logitech trackball which works with the old logitech c7 setting in Redhat. I also tried to operate the mouse with it's three buttons using the number keypad in linux, which works in other applications under linux. The same problem still happens in trying all of these methods.
    I was told that unix and windows use different "select," "extend," and "menu" buttons(in relation to the mouse).
    Maybe, microsoft windows is using a different method of interpreting the right mouse button than redhat linux 9. if so, maybe there is a way to do this in linux (really, i have no idea how this could be done, but am open to try).
    If there is a solution, i would appreciate knowing how to go about doing it. .
    note: I am using Sun's java 1.4.2_04 in windows 95a and I am using Sun's java 1.4.2_03 in Redhat 9. Both are the most current, i just downloaded them recently.
    note: touchgraph link browser is an open source java client and applet under the GNU general Public License. I think that the source code was included with the binary. I am using touchgraph link browser v 1.20 . I downloaded from sourceforge.net
    in google i found the following:
    https://lists.xcf.berkeley.edu/lists/advanced-java/1999-September/000532.html
    note: mara, you helped me before when i was practically installing redhat 9 and i had a problem with the installation and you mentioned that it was a faulty cd-rom drive. with your help, i am enjoying in learning about linux for the past 5 months since your answer helped me install redhat 9 successfully. Thank you very much since my very first question to you.
    Answer Hello,
    I downloaded the program and, if I think of the right situation, the right-click doesn't bring a menu for me. The thing I noticed is that when I drag a new link and (with left mouse button pressed) press right button it has an effect of 'canceling' the link. That's why I think that right mouse button works correctly. The problem is why the menu does not appear.
    I can see two reasons, both causing problems not easy to solve: bug in the program or incompatibility between Windows and Linux java versions. The second one should not happen.. but it doesn't mean it's impossible. A bug in the program should be easier to find, but not by me (with not very big Java experience it'd take me several days).
    What I'd do in your place is to mail the program developers (or report a bug). It won't make things worse, but can fix things.
    Sorry that I can't help more
    Mara
    notethe second half is a post i made to all experts.com

    http://www.realvnc.com/pipermail/vnc-list/2001-February/020570.html
    this Url has a comment on this problem in linux. just wanted to post this. it might help.

  • HELP!!!  iTunes 8.1 won't work on my computer.

    ever since i've downloaded the most recent version of itunes, every time i open it it shows me an error message that says "windows - no disk," and it says "exception processing message" followed by a bunch of numbers.
    i've already tried restarting my computer, uninstalling itunes, and reinstalling it, and it still won't work. can anyone help me? i'm desperate.

    try this courtest of Mick Murphy
    Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Or, use the Program below to uninstall iTunes, if you have a prior and corrupted version installed..
    Once you do that, re-download/save iTunes to the Desktop > right-click on its setup.exe > Run as Admin
    http://www.revouninstaller.com/revo_uninstaller_free_download.html
    “Revo Uninstaller helps you to uninstall software and remove unwanted programs installed on your computer even if you have problems uninstalling and cannot uninstall them from "Windows Add or Remove Programs" control panel applet.
    Revo Uninstaller is a much faster and more powerful alternative to "Windows Add or Remove Programs" applet!
    With its advanced and fast algorithm, Revo Uninstaller analyzes an application's data before uninstall and scans after you uninstall an application. After the program's regular uninstaller runs, you can remove additional unnecessary files, folders and registry keys that are usually left”
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Any further iTunes problems, contact Apple for Support with their Software:
    http://www.apple.com/support/itunes/

  • Java Applet Won't Initialize

    This is a modified version of a tutorial I've been working with. Code for Main.java:
    import javax.swing.*;
    public class Main {       
    * @param args the command line arguments
    public static void main(String[] args) {
    SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    JFrame f = new JFrame("Swing Paint Demo");
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.setSize(300,300);
    f.setVisible(true);
    Problem is that when I try to load the applet into an html file:
    <html>
    <APPLET code="Main.class"></APPLET>
    </html>
    It doesn't load.
    The file compiles and executes as a stand alone .jar, but when I try to run it as an applet it won't work.
    I know I'm probably missing an easy step. I have already checked my IE7 settings and java is enabled. I have no problem with any other java applets, just the ones I make. haha. Thank you ahead of time.

    I did some research, and got a new tutorial because the old one was inappropriate like you pointed out previously. This one I copy pasted into my editor, it compiled fine. I run it through my browser and it doesn't work still. Same issue, coincidentally, what do you make of it?import javax.swing.JApplet;
    import javax.swing.JTextField;
    import javax.swing.SwingUtilities;
    //Since we're adding a Swing component, we now need to
    //extend JApplet. We need to be careful to access
    //components only on the event-dispatching thread.
    public class Main extends JApplet {
        JTextField field;
        public void init() {
            //Execute a job on the event-dispatching thread:
            //creating this applet's GUI.
            try {
                SwingUtilities.invokeAndWait(new Runnable() {
                    public void run() {
                        createGUI();
            } catch (Exception e) {
                System.err.println("createGUI didn't successfully complete");
            addItem(false, "initializing... ");
        private void createGUI() {       
            //Create the text field and make it uneditable.
            field = new JTextField();
            field.setEditable(false);
            //Set the layout manager so that the text field will be
            //as wide as possible.
            setLayout(new java.awt.GridLayout(1,0));
            //Add the text field to the applet.
            add(field);
        public void start() {
            addItem(false, "starting... ");
        public void stop() {
            addItem(false, "stopping... ");
        public void destroy() {
            addItem(false, "preparing for unloading...");
            cleanUp();
        private void cleanUp() {
            //Execute a job on the event-dispatching thread:
            //taking the text field out of this applet.
            try {
                SwingUtilities.invokeAndWait(new Runnable() {
                    public void run() {
                        remove(field);
            } catch (Exception e) {
                System.err.println("cleanUp didn't successfully complete");
            field = null;
        private void addItem(boolean alreadyInEDT, String newWord) {
            if (alreadyInEDT) {
                addItem(newWord);
            } else {
                final String word = newWord;
                //Execute a job on the event-dispatching thread:
                //invoking addItem(newWord).
                try {
                    SwingUtilities.invokeAndWait(new Runnable() {
                        public void run() {
                            addItem(word);
                } catch (Exception e) {
                    System.err.println("addItem didn't successfully complete");
        //Invoke this method ONLY from the event-dispatching thread.
        private void addItem(String newWord) {
            String t = field.getText();
            System.out.println(newWord);
            field.setText(t + newWord);
    }

  • Java won't work on Firefox, while it works on Safari on a Mac.

    I have a MacBook Pro and downloaded Firefox 3.6 for it. Now I've realized that Java plugins won't work in Firefox for some reason, while they do work in Safari that came with the Mac. The problem wouldn't be with Java, since it works on Safari.
    The Java-related plug-ins I have installed in Firefox are the Java Embedding Plug-in 0.9.7.3 and Java Plug-in 2 for NPAPI browsers.
    When I go to a page that contains a Java applet, there is no error, the page says it's done loading, and there's a blank spot where an applet is supposed to be.

    Actually, I have both plugins installed in Mac OS X 10.6, verified by entering '''about:plugins''' in the SeaMonkey 2 Location Bar (address bar)
    Java Embedding Plugin 0.9.7.3
    <br>File name: MRJPlugin.plugin
    Java Plug-In 2 for NPAPI Browsers
    <br>File name: JavaPlugin2_NPAPI.plugin
    This is a new iMac computer I just set up last week running OS X 10.6.4 with all current Apple Software Updates. I have SeaMonkey 2 installed on it, but not Firefox.
    I have Java 6 Update 20 ( 1.6.0_20 ) installed, verified by going to the test link in the KB article I posted above,
    http://javatester.org/version.html
    Java 1.6.0_20 (referred to as "Java for Mac OS X 10.6 Update 2" on the page cor-el linked) should be available from Apple's [http://support.apple.com/kb/HT1338 Software Update] feature.
    Another test link you can try (from about:plugins):
    http://browserspy.dk/java.php
    I think that the Java Embedding plugin is something that Mozilla includes with all its current browsers (Firefox, SeaMonkey, Camino) based on: http://plugindoc.mozdev.org/OSX.html#Java
    ...which links to http://javaplugin.sourceforge.net/

  • Activity won't work in IE 6

    Hi everyone, I hope someone can help as I've been struggling
    with this for about 4 months. We have an online course that
    includes interactive exercises. One of the exercises has two parts,
    the students first click on an arrow and the Shockwave player loads
    and an audio file plays with a pronunciation of a word. Then the
    cursor bounces over to a text field and users are supposed to type
    in the word they just heard. The exercise comes up correctly and
    you can click on the arrow and word is sounded out. Then the cursor
    does jump to the text field, however nothing happens when you try
    to type the word in. The activity worked correctly last spring in
    IE 6 and works correctly now in Firefox. However it just won't work
    in Internet Explorer. I have reloaded both Shockwave and Flash
    players (reinstalled with the latest versions). I put up Firefox
    and IE 6 up in side-by-side windows to compare settings. I've
    searched the Microsoft knowledge base and the Adobe/Macromedia
    knowledge base. No luck. I contacted the publisher of the content
    and they said it "works for them"! I'm attaching the code for one
    of the interactive exercises (there are at least 20 of them in the
    course that don't work). Any suggestions would be greatly
    appreciated.

    You are using Swing components in your applet , and the Microsoft VM dosen't have the javax.swing package . You could try with the Sun Java Plug-in.

Maybe you are looking for