Switching Web Pages

I Would Like To Know How Please, In An Applet, To Change Web Pages. If Possible. Exapmle:

This Is Running On The Web Page "webSwitchTest1.html"

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt)
{
/*
* The Code To Change From
* "webSwitchTest1.html" To
* The Web Page
* "webSwitchTest2.html"
*/
}

Joshua Sprague

Comments

  • [b][red]This message was edited by QueezyTheGreat at 2002-10-14 12:41:29[/red][/b][hr]
    [size=1]
    : I Would Like To Know How Please, In An Applet, To Change Web Pages. If Possible. Exapmle:
    :
    : This Is Running On The Web Page "webSwitchTest1.html"
    :
    : private void jButton1ActionPerformed(java.awt.event.ActionEvent evt)
    : {
    : /*
    : * The Code To Change From
    : * "webSwitchTest1.html" To
    : * The Web Page
    : * "webSwitchTest2.html"
    : */
    : }
    :
    : Joshua Sprague
    [/size]
    Try this, it should work but I'm not sure because I'm at school.
    [code]
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt){
    getAppletContext().showDocument(new URL("web page address"));
    }[/code]
    This will get the applte's context and change the url of the page.

    Hope that helps.:-)

    -------==[QTZ]==------
    -==[QueezyTheGreat]==-



Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion