CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 1999
    Posts
    16

    Opening Webpages in a given frame when...



    I'm new to java, and swing. I've created a small applet that uses menus and tool bars, but I cannot figure out how to make it so that when a menu item is clicked on a webpage opens in a certain frame.


    I know how to handle the action of the menu being clicked on. I just need the code to open the webpage in a given frame.


    Thanks,

    Mike

  2. #2
    Join Date
    Mar 1999
    Posts
    19

    Re: Opening Webpages in a given frame when...



    Hi Mike

    Its very simple to open an url from existing applet.

    just try it

    step 1: AppletContext ac = getAppletContext();

    step 2: ac.showDocument(new URL("http://www.java.sun.com"));

    catch MalforedURLException here


    Write the step 2 in event handling method etc.


    Actully I have Checked now .& I found it works well


    Have a nice testing


    bye


    :[email protected]

    :[email protected]





Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured