Results 1 to 11 of 11
  1. #1
    boidi is offline Member
    Join Date
    Oct 2010
    Posts
    13
    Rep Power
    0

    Default java applet is not updating in the firefox browser

    Hi.

    Ive made a simple applet that display a helloworld, but when i change the code to new message, the browser does not change.


    Is this a problem with firefox? buffering the class file or something?

    Very anoying not to be able to see the changes i've made right away.

    Hope there is an easy fix to this.

    please help me

    thnaks
    boidi

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: java applet is not updating in the firefox browser

    Try removing cached internet files via the Java control panel.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    boidi is offline Member
    Join Date
    Oct 2010
    Posts
    13
    Rep Power
    0

    Default Re: java applet is not updating in the firefox browser

    Quote Originally Posted by DarrylBurke View Post
    Try removing cached internet files via the Java control panel.

    db
    thaks for replay sir...
    cache also removed bt still the same issue......

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: java applet is not updating in the firefox browser

    Provide more details.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  5. #5
    boidi is offline Member
    Join Date
    Oct 2010
    Posts
    13
    Rep Power
    0

    Default Re: java applet is not updating in the firefox browser

    Hello sir,

    I have created small applet using Java. I embedded this applet in the browser using html tags. First time it is coming with whatever msgs there in the java class. after that i have changed the msgs and made a new applet. once again I embedded this applet, but updated msgs are not displaying. applet is showing previous msgs.

    code:

    public class New extends JApplet {

    /**
    * Initialization method that will be called after the applet is loaded
    * into the browser.
    */
    @Override
    public void init() {
    // TODO start asynchronous download of heavy resources

    }
    @Override
    public void paint( Graphics g ) {
    g.setColor( Color.gray );
    g.drawString("helloworld....", 100, 100);
    }

    // TODO overwrite start(), stop() and destroy() methods
    }

    this applet i have embedded using html tags

    <Applet archive="JavaApplet.jar" Code="javaapplet/New.class" width=700 Height=400>
    </Applet>

    if i will change the msg in the g.drawString, it is not updating for the second time.... what to do...


    thanks

    boidi

  6. #6
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,305
    Rep Power
    25

    Default Re: java applet is not updating in the firefox browser

    The Applet tags's code= attribute should contain the name of the class: New, not a path to the class file.

    What error messages are in the browser's java console?
    If you don't understand my response, don't ignore it, ask a question.

  7. #7
    boidi is offline Member
    Join Date
    Oct 2010
    Posts
    13
    Rep Power
    0

    Default Re: java applet is not updating in the firefox browser

    no errors msgs are coming in the browser's java console...for the first time embedded applet "hello world......" is coming. After that I changed "hello wrold......" msg to "bye world....". then I embedded recent applet...bt still the "hello world...." msg is coming.

  8. #8
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,305
    Rep Power
    25

    Default Re: java applet is not updating in the firefox browser

    You must be executing the old code. Make sure the old code is removed/hidden/deleted.
    If you don't understand my response, don't ignore it, ask a question.

  9. #9
    boidi is offline Member
    Join Date
    Oct 2010
    Posts
    13
    Rep Power
    0

    Default Re: java applet is not updating in the firefox browser

    how to access functions in applet from html?

  10. #10
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,305
    Rep Power
    25

    Default Re: java applet is not updating in the firefox browser

    The browser will call some of the applet's methods depending of the state of execution of the applet.

    What methods do you want to call in the applet? There are ways for javascript code to call methods in an applet.
    If you don't understand my response, don't ignore it, ask a question.

  11. #11
    boidi is offline Member
    Join Date
    Oct 2010
    Posts
    13
    Rep Power
    0

    Default Re: java applet is not updating in the firefox browser

    thank you sir

Similar Threads

  1. Java Applet trouble with Menus in Firefox on Mac
    By pseeburger in forum Java Applets
    Replies: 13
    Last Post: 04-28-2014, 12:44 PM
  2. Replies: 2
    Last Post: 01-21-2012, 09:53 PM
  3. Java applet won't display in firefox
    By silverglade in forum Java Applets
    Replies: 6
    Last Post: 05-13-2011, 04:40 AM
  4. Signed Applet crashing FireFox in Ubuntu
    By saurabhbatra in forum Java Applets
    Replies: 1
    Last Post: 06-07-2010, 01:53 AM
  5. How to force Firefox to reload applet
    By JordashTalon in forum Java Applets
    Replies: 3
    Last Post: 02-20-2009, 11:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •