import javax.swing.*; // for JFrame, Layout Mgr
import java.awt.*;    // for Container
public class Context extends JFrame
{
public Context( int x, int y, int w, int h)
   {
   setSize( w, h );   // width, height
   setLocation( x, y );  // top, side
   setDefaultCloseOperation(EXIT_ON_CLOSE ); // exit program when window closes   
   
   Container myPC = new Container();
   myPC = getContentPane();  // this, super same thing
   FlowLayout  layout = new FlowLayout();
//   GridLayout layout = new GridLayout(2,3,5,5);
   myPC.setLayout( layout );

   JButton helloButton = new JButton( "Hello" );
   myPC.add( helloButton );
 
   JButton exitButton = new JButton( "Exit" );
   myPC.add( exitButton );

   setVisible( true );  // show 
   }
   
public static void main( String [ ] args )
   {
   Context app1 = new Context( 100, 200, 250, 350 );
   }
}

