Hi,
My
applet uses the Swing for GUI of it. So I download the newest version of
java plug-in. In the init() method of my applet, I use the following code:
Containter c = getCotentPane();
c.add(Label1);
c.add(Button);
c.add(other stuffs ....);
And in the start() method the applet creates a sockt(TCP SOCKET) to comm. with
the
servlet in the same/another machine. My problem is that the GUI interface
of my applet will not displayed in the browser.Why?
If I change the code in the init() method. I mean don't let the label, button,
etc. to be added directly on the contentPane, but on a new Frame(I change the
defination of variable c to :
Frame c = getContentPane(); ), the GUI of my applet will be displayed. In
this case, when I load the applet, there will be a applet GUI pop up from the
browser window(not directly embeded in the brower window), that's not what I
want.
Can anyone tell me how to fix this problem?
If canot fix this problem, does that mean applet running by embedded in
browser window has limited functionality?