Forum Stats

  • 3,767,933 Users
  • 2,252,732 Discussions
  • 7,874,385 Comments

Discussions

how to refer to an existing Hotjava browser?

843798
843798 Member Posts: 24,864
edited Aug 1, 2001 12:46PM in Java Runtime Environment (JRE)

if i want to use hotjava to view html files, and when i click a button or something in application, how can i get an existing hotjava window and update its contents?
in Netscape, we have -remote option to find out.


Thanks for replying!!!


-Frank

Comments

  • 843798
    843798 Member Posts: 24,864
    if you are referring to getting an edited HTML source page to reload the new content, then the answer is that the Reload button for Hotjava will automatically check for newer changes on the source HTML.

    If you are referring to something else other than what I have described, then there isn't enough data for us to advise you.

    Allen Lai
    SUN Developer Technical Support
  • 843798
    843798 Member Posts: 24,864
    what I meant is:

    e.g, I have two buttons(A and B) in my Swing application, A is to view website http://www.sun.com, the other B is to view http://java.sun.com,

    when i click A button, my application will launch a hotjava browser by using:

    Runtime.getRuntime().exec(" hotjava http://www.sun.com")

    then, i click button B, I want the existing hotjava browser will go to website: http://java.sun.com instead of bringing another new hotjava browser.

    what kind of option should i use in hotjava command?


    Thanks.

    -Frank
This discussion has been closed.