- /**
* This program will demonstrate the use of layout managers
* and panels
*/
- public class LayoutManager {
- public static void main ( )
{
// define the main frame and inset panels
MainFrame mainFrame = new MainFrame (
"Main Frame" ) ;
mainFrame.setSize ( 400, 400 ) ;
mainFrame.setVisible ( true ) ;
}
}