Need help i connecting two applets


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Need help i connecting two applets

  1. #1
    Join Date
    Apr 2005
    Posts
    1

    Arrow Need help i connecting two applets

    I am new to the java. I have created some applets. in the first applet I have two buttons called 1)Registered Users 2)Registration. When I click the appropriate button I must be able to navigate the corresponding other applets.

    I am not using any Servlets in my project.

    Can any one help me out how to navigate from one applet to another with the button click.

    Thanks in advance

    RamPraveenBabu.

  2. #2
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560
    If you by 'navigate' mean 'open a new applet page' you could do this by the
    applet method getAppletContext() like:
    try {
    myApplet.getAppletContext().showDocument(new URL("http://www.whatevver.com/someFolder/anotherAppletPage.html"),"_top");
    } catch (MalformedURLException me) {
    me.printStackTrace();
    }

  3. #3
    Join Date
    Mar 2005
    Location
    Sendling, MUC, .de
    Posts
    100
    He, maybe it should read IANTTJ rather than just IANTJ...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center