Howdy, Stranger!

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

Categories

Switching Web Pages

lliver269lliver269 Member Posts: 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

Comments

  • QueezyTheGreatQueezyTheGreat Member Posts: 70
    [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]==-



  • Chris BrownChris Brown USAMember Posts: 4,624 ✭✭

    ____ ( http://forcoder.org ) free ebooks and video tutorials about // C++ JavaScript Assembly PL/SQL PHP C# Objective-C Swift Go Visual Basic .NET Perl Ruby MATLAB C Visual Basic R Python Java Scratch Delphi Ada Scala ABAP Crystal Hack Alice FoxPro Fortran Lua Kotlin Awk LabVIEW SAS Lisp F# Transact-SQL Julia Dart Apex COBOL VBScript Erlang Bash Rust Logo D ML Clojure Scheme Prolog // _______

Sign In or Register to comment.