Applet On Netscape and IE

We are building a shopping cart applet using jdk1.0.x
When the user clicks on a submit button applet makes a connection to the server and waits for the server response. This piece of code makes a status message visible while the applet is waiting for server response.
public boolean mouseDown(Event event,int x, int y)
if (y >= 235 && y <= 260 && x >= 433 && x<= 511 )
lMessage.setVisible(true);
parent.SubmitInfo();
parent.Confirmation(); // make next page visible
return true;
The message is visible in Netscape , but in IE (both in MAC and Windows) it does not show up.
Does anyone have any ideas ?
Thanks in advance
Syama.

Hi, Guess I should have given code sample. lMessage is a label and it is added to the panel.
It does not display on IE but it displays on Netscape.
public class Review extends Panel
// members
public Review(ECommerce _parent)
// add size other components
     add(lMessage);
     lMessage.reshape(10,240,300,20);
     lMessage.setFont(parent.mFB);
     lMessage.setBackground(parent.bC);
     lMessage.setForeground(parent.mtC);
     lMessage.setVisible(true);
// other methods none of them refer lMessage
public boolean mouseDown(Event event,int x, int y)
     if (parent.submitOrder) return true;
     if (y >= 235 && y <= 260 && x >= 433 && x<= 511 )
          parent.submitOrder = true;
                         lMessage.setVisible(true);
     lMessage.requestFocus();
     repaint();
     parent.SubmitInfo();
     parent.Confirmation();
     parent.submitOrder = false;
     return true;
May be it has something to do with jdk - we are using jdk 1.1.
Thanks,
Syama.

Similar Messages

  • Applet, Netscape and Opera but not IE, encore

    I've got the following trivial applet that runs under Netscape and Opera, but not under IE. It's also at www.MartinRinehart.com as the ColorChooser choice. There's a half dozen Dukes from previous posts, and my sincere gratitude for anyone who can tell me what I need to do so IE doesn't say "Load: class CCApplet not found."
    import java.awt.BorderLayout;
    import java.awt.Button;
    import java.awt.Label;
    public class CCApplet extends java.applet.Applet {
         public void start() {
              Label l = new Label( "CCApplet!" );
              setLayout( new BorderLayout() );
              add( l, BorderLayout.NORTH );
              add( new Button("South"), BorderLayout.SOUTH );
    } // end of class CCAppletThe .class is in the same directory as the .html. Putting it in a .jar doesn't seem to matter. My IE runs other applets from the web, but not the ones I write. Thanks in advance.

    The applet runs for me in IE with 1.5.0_02, XP Pro (current updates), with class and html files in same directory.
    Check that everything in IE's Java Plug-in is valid and correct. Check IE's Internet Options.
    What JVM version are you wanting the applet to be able to run with? What does this statement mean? "...most visitors can use without knowing what a JRE is."
    To get greatest compatibility, use code that conforms to the 1.1 API, compile to that target version, possibly use the old 1.1 libraries, and then test each jvm. (BTW - Swing has limited compatibility - it isn't MS compatible, and wasn't [Sun] standard until jvm version 1.2.)

  • Applet in Netscape

    My applet code is loading in Internet Explorer,But I have problem in loading the code in Netscape.Can any one suggest me how to load the applets in Netscape.
    --shiva                                                                                                                                                                                                                                                                                                                                           

    I am using IE 5.5 and Netscape 4.7.Plug in i am using is 1.3.I am sending the html file too.Thanks for replying.
    --shiva
    <HTML>
    <HEAD>
    <TITLE>Drawing Pad applet</TITLE>
    </HEAD>
    <body>
    <table border=1 width=405 height=505 >
    <tr valign=top>
    <td>
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
                   width="400" height="400" align="baseline"
                   codebase="http://<%=javaPluginServerPath%>/j2re1_3_0-win.exe#Version=2.4.1.0">
                        <PARAM NAME="code" VALUE="DServer.class">
                        <PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
                        <PARAM NAME="cache_option" VALUE="Plugin">
                        <PARAM NAME="scriptable" VALUE="true">
                        <PARAM NAME="MAYSCRIPT" VALUE="true">
    </OBJECT>
    </td>
    </tr>
    </table>
    </body>
    </HTML>

  • Applet in Netscape question.

    Hi, Applet in Netscape question.
    When an applet is run by Explorer everything is OK when trying to run with Netscape (7.1) nothing happening
    What is wrong here ???
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    WIDTH = "730" HEIGHT = "260"
    codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_4-
    windows-i586.cab#Version=1,3,0,0">
    <PARAM NAME = CODE VALUE = "Xaaa.class" MAYSCRIPT>
    <PARAM NAME = ARCHIVE VALUE = "Ybbb.jar">
    <PARAM NAME="type" VALUE="application/x-java-applet;version=1.4">
    <PARAM NAME="scriptable" VALUE="false">
    <PARAM name="progressbar" value="true">
    </OBJECT>
    Thank you in advance !

    Dear Experts.
    Reading through previous Forum similar questions, I changed the code (down below)
    Now I receive the message:
    Click here to get the plugin
    This is encouraging because before Netscape ignored the applet completely ...
    However I already have plugin version 1.4.2_03 installed (and recognized by Explorer)
    The question is still why the applet is not working with Netscape ?
    Thank you in advance for your help?
    <html>
    <body>
    <!-- HTML CONVERTER -->
    <object
    classid =" clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    codebase =" http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#Version=1,4,0,0"
    width = 730 height = 260 >
    <param name = CODE value ="Xaaa.class" >
    <param name = ARCHIVE value ="Ybbb.jar" >
    <param name =" type" value =" application/x-java-applet;jpi-version=1.4">
    <param name =" scriptable" value =" false">
    <param name="progressbar" value="true">
    <comment> </comment>
    <embed
    type =" application/x-java-applet;version=1.4"
    code =" Xaaa.class"
    archive ="Ybbb.jar"
    width = 730
    height =260
    scriptable = false
    pluginspage =" http://java.sun.com/products/plugin/index.html#download">
    <noembed> alt="Your browser understands the <APPLET>
    tag but isn't running the applet, for some reason."
    Your browser is completely ignoring the <APPLET>
    tag! </noembed> </embed> </object>
    <!--"END_CONVERTED_APPLET"-->
    </html>
    </body>

  • Java Applet crashes Netscape upon Exit?

    Hello, I created an Applet that I am opening in NEtscape. When I make an attempt to exit (i.e. destroy) the APplet, it crashes the whole netscape. It even happens within Netscape 7. Is there a way around this since it makes a big problem for me to use the applet if it is going to crash my Netscape browser. I`ll appreciate any suggestions or comments, thanks Ivan

    The main class that everything is in is called GUI.java and it is a frame. In order to open this as an Applet in netscape, I created a GUI_RMIApplet.java file. And The GUI_RMIApplet.html file opens the GUI_RMIApplet.java file which in return opens GUI.java. The exit call is in GUI.java file.
    The html file code is as follows:
    <EMBED type="application/x-java-applet;version=1.3" CODE = "musr.client.gui.GUI
    _RMIApplet.class" CODEBASE = "." ARCHIVE = "jar/musr.jar" NAME = "MUSR GUI APPLE
    T" WIDTH = 400 HEIGHT = 300 ALIGN = middle VSPACE = 0 HSPACE = 0 UBBoption = "de
    velop" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/pl
    ugin-install.html">
    <NOEMBED>
    The GUI_RMIApplet.java code is:
    package musr.client.gui;
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    import javax.swing.*;
    import java.rmi.Naming;
    import java.rmi.RemoteException;
    import musr.server.*;
    public class GUI_RMIApplet extends Applet {
    boolean isStandalone = false;
    String message = "The application will launch in a separate window";
    GUI_RMIServer obj = null;
    /**Get a parameter value*/
    public String getParameter(String key, String def) {
    return isStandalone ? System.getProperty(key, def) :
    (getParameter(key) != null ? getParameter(key) : def);
    /**Construct the applet*/
    public GUI_RMIApplet() {
    /**Initialize the applet*/
    public void init() {
    try {
    jbInit();
    } catch (Exception e) {
    System.out.println("GUI_RMI exception: " + e.getMessage());
    e.printStackTrace();
    /**Component initialization*/
    private void jbInit() {
    // Main bulk for this applet
    GUI gui = new GUI();
    gui.setVisible(true);
    public void paint(Graphics g) {
    g.drawString(message, 25, 50);
    /**Get Applet information*/
    public String getAppletInfo() {
    return "Applet Information";
    /**Get parameter info*/
    public String[][] getParameterInfo() {
    return null;
    //static initializer for setting look & feel
    static {
    try {
    //UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    //UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
    catch(Exception e) {
    And, the GUI.java class calls these funcitons when exit menu button is selected:
    GUI.this.dispose(); // disposes the frame
              System.exit(-1); // disposes the applet (?or not?)
    I think the System.exit button is messing things up but I don't know what other function I can use to close teh applet.
    Hope this is enough information.

  • Persistent applets in Netscape 7.x

    When I run my applet in Netscape 4.x,navigating to a different page cause my applet to get a stop() call, then pressing the "Back" button the applet gets a start() and I can resume the work. All the sockets are still open. Using the same applet in Netscape 7.x, I get a destroy() call and all the sockets are shutdown. This makes it impossible for me to resume my session when pressing the "Back" button.
    Is there a way to instruct the browser not to destroy the applet when the page is not visible?

    Is destroy overrideable? If so, just return from it.It's too late. I just get some exceptions and my sockets are closed. I need to avoid calling destroy() at the first place.

  • =3 applets hanging Netscape with 1.3.1_01a or 1.3.1_02

    The Java 2 v1.3.1_01a and 1.3.1_02 Plug-Ins completely hang Netscape 4.79 (and probably 4.x in general) and 6.2 when there are 3 or more simple applets in a single HTML page. This can be reproduced with a simple empty sub-class of java.applet.Applet and placing 3 or more instances of this in one HTML page (e.g. via jsp:plugin). [I used 16x16 applets in this case.]
    Note that I could get 3 instances of an extremely heavy, slow-loading JApplet-based applet to load without hanging Netscape, so there appears to be a timing, deadlock issue here.
    I have attempted to file a JDC bug on this matter, but it was not accepted as I could not reproduce the bug in Java 2 v1.4! Given that this issue spread to 1.3.1_02 (I originally found it in 1.3.1_01a), I am afraid it may leak into 1.4 at some later point, however!
    Has anyone else experienced this?
    Any workarounds?
    [I use extremely lightweight applets in potentially large quantities (e.g. dozens) in HTML pages.  1.3.1_01a and 1.3.1_02 are thus complete non-starters in Netscape -- and I require 1.3.x functionalities in the applet.  1.3.1_01 works beautifully in Netscape and Internet Explorer for over 150 applets in one page -- though Netscape is substantially slower than Internet Explorer in this case.  1.3.1_01a and 1.3.1_02 work beautifully in Internet Explorer -- but hang Netscape completely in this case.]

    I tried turning off Recycle ClassLoader.
    I even tried turning off the "Default VM" stuff for Netscape (as that is new to 1.3.1_01a and higher, of course).
    Neither made any significant difference. I sometimes got 3 applets to come up on a page without hanging, but visiting a couple such pages produced a nearly guaranteed hang.
    I wonder if this is related to the spurious HTTP request the Plug-In makes in Netscape.
    The Plug-In (1.3.1 and higher at least) appears to always makes 1 additional HTTP request in my experience when in Netscape as compared to Explorer. I never would have noticed this except that this request happens to hit a servlet which logs such things with a request with no path-info (and it requires path-info).

  • What is Java Applet 1.0, and why does it launch when I do an applet action?

    When I go to http://www.chemaxon.com/marvin/sketch/index.php with Safari 5.1.7 on MacOS 10.6.8, an applet launches.  If I then click and hold on one of the toolbars of this applet and drag to the left, the toolbar is supposed to detach.  Instead, my computer launches a program called Java Applet 1.0, and a blank rectangle appears where the toolbar is supposed to be, but no buttons appear in the toolbar.  The program Java Applet 1.0 does not appear to have any functions associated with it; if I click on its icon in my dock, the blank toolbar comes to he foreground, but nothing else happens.  If I quit Java Applet 1.0, the original applet quits as well.  A separate instance of Java Applet 1.0 launches for each browser that I use to go to http://www.chemaxon.com/marvin/sketch/index.php. 
    So my question is, what is the purpose of Java Applet 1.0?  Is Java Applet 1.0 launching because there is a bug in the applet, or is a bug in Java Applet 1.0 causing the applet to misfire? 

    I don't know this action, specifically, but such a message often means an action step has tried to do an activity that was successfully recorded with an image that has different attributes, e.g., RGB vs Grayscale, or maybe a different bit depth or other modal difference.  It's also possible you have a non-image layer selected when you're running the action.
    -Noel

  • After Java patch 1.7.0_07 ENable applet plug-in and Web start checkbox is gone!

    Hello all,
    Using ML 10.8.1 and Safair 6.0
    After Java patch 1.7.0_07 ENable applet plug-in and Web start checkbox is gone! The check box to enable Safari to load Java pages is 100% gone, missing, just not there anymore.
    When I go to the Java test page it shows that I have Java 7 loaded. Has anyone else run into this problem or have a solution to enable true load loading in Safari and bring back the Enable applet plug-in and Web Start application check box in ML...
    Thanks

    I found out something very interesting. I noticed that another page would show up for less than have a second before the ML Java Preference would show up. I did a video recording of this and moved frame by frame. I show that the page / pane showing up had the following option:
                    Run applets:  in their own process
                                         within their browser process
    Both boxes for the two are unchecked.
    Then this page would disappear and nother would show up without the option / check box
    Enable applet plugin and Web Start applications
    Strange

  • Firefox fixes; Netscape and IE, too

    I've updated a collect of patches that help improve the
    initial load and reloading of WebHelp, and correcti the display and
    behavior of the toolbar and minibar (also called the navigation
    bar). Mostly they help Firefox and Netscape. They also solve one or
    two problems in Internet Explorer.
    Except for the last patch below, I previously posted these in
    the forum, and Peter Grainge picked up several for his excellent RH
    troubleshooting site. I'm not repeating the earlier ones here, but
    will be happy to send a summary Word doc to anyone who sends me a
    private message.
    Adobe did make some housekeeping code changes in RH 6, but
    (as of the trial version) none of those suggested here except one
    for whtbar.js, as explained in the summary.
    The usual disclaimer: It works for me but I can't guarantee
    your results. Back up everything. Experiment on a small project or
    a minimized copy of the working project. I haven't tested these in
    RH 6, but a quick look at files in the trial version didn't find
    any likely problems. If you test them in RH 6, please report back
    either here or in a private message.
    Regards to all,
    Harvey
    Purpose: Improve the pace of loading the left pane after
    displaying the launch topic in Firefox and Netscape, and perhaps
    IE.
    File: launchfile.htm
    Purpose: Improve the loading and reloading the left frame in
    Firefox and Netscape. Particularly, display the browse sequence
    buttons and hide X icon. No apparent effect on IE.
    File: whtbar.js
    Purpose: Eliminate excessive reloading in Firefox and
    Navigator, particularly when resizing the window or left pane.
    File: whtbar.js
    Purpose: Might improve loading the toolbar and navigation
    bar. All browsers.
    Files: whskin_tbars.htm and whskin_mbars.htm
    Purpose: Prevent the toolbar background image from repeating
    in the navigation bar. All browsers
    File: whskin_mbars.htm
    Purpose: Improve the pace of loading WebHelp in Firefox and
    Netscape. No discernable effect on IE.
    File: whstart.js
    Near the beginning:

    Hi elikisses
    Could you please start a new thread for your question instead of posting in an existing thread?
    Then you can provide more information like your operating system and installed extensions and installed plugins.
    *[[/questions/new start a new thread]]
    *[[/kb/Using+the+Troubleshooting+Information+page]]

  • How can I enable java applet plug-in and Web Start applications via terminal?

    Since the last Java update to Snow Leopard, I have found that the system periodically disables the Java applet plug-in after a period of disuse.  I know I can go to /Applications/Utilities/Java Preferences and just click to re-enable Java.  But I want to write a script which will do this periodically for a couple hundred Mac users where I work. 
    My question is - how can I reenable the Java applet plug-in and web start applications via Terminal command?  Is this possible?  Is there a plist file that can be modified, etc.?
    Bob Reed

    It is my understanding that Apple's most recent Java update automatically disables Java after a certain period of time that it hasn't been used.  We don't want users to have to keep re-enabling it.  So we wanted to find a way to do this via script either run by a Casper JSS server or stored locally on each workstation.   With the guidance provided by Mark Jalbert above and some text from a script written by Rich Trouton, I was able to make a script (with some minor changes) and a launch agent to re-run the script upon login.  So the preference is always enabled.
    For your reference, the script content is:
    #!/bin/sh
    # DYNAMICALLY SET THE UUID FOR THE BYHOST FILE NAMING
    if [[ `ioreg -rd1 -c IOPlatformExpertDevice | grep -i "UUID" | cut -c27-50` == "00000000-0000-1000-8000-" ]]; then
    MAC_UUID=`ioreg -rd1 -c IOPlatformExpertDevice | grep -i "UUID" | cut -c51-62 | awk {'print tolower()'}`
    elif [[ `ioreg -rd1 -c IOPlatformExpertDevice | grep -i "UUID" | cut -c27-50` != "00000000-0000-1000-8000-" ]]; then
    MAC_UUID=`ioreg -rd1 -c IOPlatformExpertDevice | grep -i "UUID" | cut -c27-62`
    fi
    # Set the the "Enable applet plug-in and Web Start Applications" setting in the Java Preferences for the current user.
    /usr/libexec/PlistBuddy -c "Delete :GeneralByTask:Any:WebComponentsEnabled" /Users/$USER/Library/Preferences/ByHost/com.apple.java.JavaPreferences.${MAC_UU ID}.plist
    /usr/libexec/PlistBuddy -c "Add :GeneralByTask:Any:WebComponentsEnabled bool true" /Users/$USER/Library/Preferences/ByHost/com.apple.java.JavaPreferences.${MAC_UU ID}.plist
    /usr/libexec/PlistBuddy -c "Delete :GeneralByTask:Any:WebComponentsLastUsed" /Users/$USER/Library/Preferences/ByHost/com.apple.java.JavaPreferences.${MAC_UU ID}.plist
    /usr/libexec/PlistBuddy -c "Add :GeneralByTask:Any:WebComponentsLastUsed real $(( $(date "+%s") - 978307200 ))" /Users/$USER/Library/Preferences/ByHost/com.apple.java.JavaPreferences.${MAC_UU ID}.plist
    The launch agent plist content is:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
              <key>Disabled</key>
              <false/>
              <key>Label</key>
              <string>org.XXXXX.enableJavaPlugin</string>
              <key>ProgramArguments</key>
              <array>
                        <string>sh</string>
                        <string>/Library/Scripts/XXXXX/enableJava_plugin.sh</string>
              </array>
              <key>RunAtLoad</key>
              <true/>
              <key>StartOnMount</key>
              <true/>
    </dict>
    </plist>
    I hope this is helpful to anyone wishing to keep the Java web plugin enabled.
    Bob
    Message was edited by: Robert Reed2

  • Applet's minimize and maximize events.

    Hi,
    I need to get capture an applet's minimize and maximize events. Is it possible.
    Thanks in advance.
    gLim

    Try to listen to the event of the frame that is the parent of the applet.
    Object parent = this.getParent();
    while (!(parent instanceof Frame))
         parent = ((Component)parent).getParent();
    [/code[
    Noah                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Deermining an applet is loaded and initialized

    In the HTML of a web page how can I determine or be notified that an applet is loaded and initialized similar to "onload=foo()" on the <body> statement.
    At least in NS 7+ the <body> onload executes before the applets contained in the body are initialized.
    I also tried to use onload on the <applet> statement and while it was accepted by NS 7.1, the target JS function was not executed.

    My applets load before the javascript for the onLoad event of the body tag fires. I do the following javascript and can access methods from the applet. However, please note that the applet displays with just a loading progress bar. I cause the javascript to make the applet do the lengthy gui display rather than displaying all components on loadup. I hope this is making sense.
    //javascript
    function doOnLoad() {
       var a = document.yourAppletName;
       a.callSomeAppletMethod();
    //html
    <BODY onLoad="return doOnLoad();">

  • Looking for a good Javascript to let me know if the "Enable applet plug-in and Web Start Applications is enabled" is disabled or enabled within Java Preferences?

    If this code could work on Snow Leopard as well, that would be awesome. I have a code to tell if Java is enable or disabled on any web browser, but it does not detect if the Java Preferences "Enable applet plug-in and Web Start Applications is enabled" is enabled or disabled. Just looking for a specific code to tell if this option is disabled or enabled.
    Thank you

    Launch Applications/Utilities/Java Preferences.app by double-clicking.
    EDIT; But I think you are confusing this with JavaScript which has nothing to do with it.

  • No option to Enable the Java applet plug-in and Web Start applications

    How do I Enable the Java applet plug-in and Web Start applications
    Their is no option under java preferences General Tab
    The options i get their are
         Run appelts
              in their own proccess
              Within the browser process
              (Defaut most compatible)
    Under the network tab im told
    By default java applets and web start applications use network settings in the system network preferences. Only advanced users should modify these settings
    Any ideas on why it is like this?

    Mac OS 10.6.8
    This happend once before when I was running 10.5.8 I fixed it but for the life of me i can't remember how i did it.

Maybe you are looking for

  • ERROR: Running OA page using Jdeveloper.

    Hi, We have extened one ABCVO.xml object related one page. Now i want to run the page from jdeveloper i am getting an error saying XXABCVO.xml of type defination is not found . Is there any extra setup i have to do reflect the extended changes to be

  • Networking with an iBook G4

    I have just set up the file sharing option in my newly arrived iMac. I am now able to access my iMac via an old iBook G4. But for some reason, I do not have networking access in reverse: that is, I cannot access my iBook via the iMac. The iMac runs t

  • Ken Burn Problem in latest iMovie

    I've just updated iMovie with the Mavericks update. When I create a ken burn on a photo it plays back jerky and not smooth as per the previous version.  Any ideas? I'm on a 2013 mac mini.

  • How to clear ClassNot found Exception

    Hi I am running a simple RMI program in linux. It will give class not found exception.(could not find class(Hello_stub) at code base() ) 1.HelloInterface.java( Remote Interface) 2.Hello.java(Remote Object Implementation) 3.HelloClient.java(Client pro

  • Calendar Travel Time Starting from Work when I want to Start from Home

    I am having a problem with travel time in Calendar. It will autopopulate with where it thinks I should be. I don't work during the daytime, and when I schedule in an entry for work, it wants to have me leaving from work. Is there any way to change it