How to create a child frame window from within an applet...........
Creating a new frame window from within an applet is actually quite easy.
The following steps may be used to do it,
- Create a subclass of Frame
- Override any of the standard window methods,such as init(),start(),stop(),and paint().
- Implement the windowClosing() method of the windowlistener interface,calling setVisible(false)when the window is closed
- Once you have defined a Frame subclass,you can create an object of that class.But it will note be initially visible
- When created,the window is given a default height and width
- You can set the size of the window explicitly by calling the setSize() method
The example program is shown below: