DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  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...

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links