import javax.swing.*;

public class Exam1 {

  public static void main(String[] args) {
    JFrame frame=new JFrame();
    JButton button=new JButton("toto");
    frame.add(button);
    
    frame.setSize(400,300);
    frame.show();
  }
}
