on-internet
← Community

call another applet in an applet

Stack Overflow ·

I want to call (just display another applet)one applet from another applet . I just placed a button on my first applet and on its actionperformed method used the getcontextapplet() method. But second applet was not displayed. How can I display a second applet on any reaction of first... The code: import java.io.*; import java.applet.*; import java.awt.*; import java.awt.event.*; import java.sql.*; import javax.swing.*; public class home extends Applet implements ActionListener { Container c1; Label l1,l2,l3,l4; TextField t1; Button b1,b2; ImageIcon icon; Panel p1; URL order; public void init()

Comments

Sign in or sign up to comment and upvote.

No comments yet.