You can add a panel to an Applet. you can add a panel to that panel and so on. Since Applet is a panel your allowed to do that. I know that you can add an window to an applet or an applet to a window. I'm not 100% sure how to explain this so I'm leaving it to another rancher. // Mathias
There are a few top level containers that you can't add() to any another... these are Frames, Dialogs, and Windows ( and any classes that inherit from these, like JDialog, JFrame, JOptionPane, etc. )...
That doesn't mean you can't display a Frame, Window, etc. by using an applet to launch it... Here's some short code to show you how to display a window via an applet :
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
posted 18 years ago
Thank you for you people encouragement.From what i understand can i say appletviewer is a type of frame because there is no framelike thing at the window or sir,can you explain me in that level, thank you, JYOTHI ABRAHAM