I had written two
applets and made them to communicate among each other. But
my problem is, on the click of the button in the html page the first applet goes invisible and the second applet should display. I had added an label to be displayed in the second label. But the label is not displaying. Some
one please help on this display issue.
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
public class AppletCommunication2 extends Applet {
String msg = "";
Label label1;
public void init() {
repaint();
}
public void paint(Graphics g) {
g.drawString(msg, 300, 200);
showStatus(msg);
}
}