Results 1 to 2 of 2
  1. #1
    elizabeth is offline Member
    Join Date
    Jul 2007
    Posts
    40
    Rep Power
    0

    Default problems with applet session between to two applets

    I want to create a session between to two applets.
    Is it possible to have both of these methods??

    Java Code:
    getApplet("String s");
    showDocument(URL url);
    in the same applet class. I'm getting the instance of the second applet with the help of:
    Java Code:
    getApplet("String s");
    and setting the values of certain components of the second applet.
    Then I try to make use of
    Java Code:
    showDocument(URL url);
    method to display the second applet which has been dynamically updated in the first applet.

    I tried this, but it is not working.
    So how to set the value of second applet from first applet and make the second applet available in the web page?

  2. #2
    katie is offline Member
    Join Date
    Jul 2007
    Posts
    41
    Rep Power
    0

    Default

    Using multiple applets in a single application is a bad idea because it's just superfluous and unnecessary at all. Use multiple sub windows instead just like ordinary Java GUI application. Communication between them is reliable, safe, robust and can be much flexible.

Similar Threads

  1. problems when I try to run an applet
    By boy22 in forum Java Applets
    Replies: 2
    Last Post: 08-11-2007, 03:47 PM
  2. Problems with compile applet
    By coco in forum Java Applets
    Replies: 1
    Last Post: 08-07-2007, 07:43 AM
  3. Replies: 1
    Last Post: 08-06-2007, 11:10 PM
  4. problems with applet
    By paty in forum Java Applets
    Replies: 1
    Last Post: 08-05-2007, 04:16 AM
  5. Problems to show images in applets
    By Felissa in forum Java Applets
    Replies: 1
    Last Post: 07-06-2007, 09:12 PM

Posting Permissions

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