Canvas is a simple class which are used to draw on as in artist's canvas. They cannot contain other components
|
Upto now, we have described how to build typical Applet panels inside browser window. There are classes that allow one to generate complete windows separately from the browser window
|
Window Class has subclasses Frame and Dialog
|
Frame("TitleofWindow"); // creates a window with memubar and given title
-
Note Frame is a Container and can thereof be defined hierarchically with components that are laid out by LayoutManagers
|