setLayout (null); Button b = new Button ("bar"); b.setBounds (200,300,50,30); add (b); Button f = new Button ("foo"); f.setBounds (100,200,100,40); add (f);