You can get rid of the warning message by digitally signing the applet, but otherwise it's just a regular feature of applet windows. They're meant to alert the user that this window is not one opened by a local application, but by a potentially untrusted remote applet.
No, the code does not work! Must I open the window on a event? If this is the case why? can I get around it?
Joined: Mar 22, 2005
If the code is getting executed, then the window should be visible, no matter whether it's during event handling or startup. In which method do you have this code?
I'm not sure what happens if you pack a window that contains no components; it might get reduced to a 1x1-sized window. Try leaving out the pack call, or add some non-reducible components to it. [ November 15, 2005: Message edited by: Ulf Dittmer ]
Joined: Aug 21, 2004
I have actually a JLabel in before I pack(). I have tested it in the JApplets start(), init(), paint() method