import javax.swing.*;

public class Exercice05 {

  public static void main(String[] args) {
    JFrame frame=new JFrame();
    
    JDesktopPane pane=new JDesktopPane();
    JInternalFrame internal=new JInternalFrame("hello");
    pane.add(internal);
    
    Box box1=new Box(BoxLayout.X_AXIS);
    internal.getContentPane().add(box1);
    internal.setVisible(true);
    
    box1.add(new JButton("1"));
    box1.add(new JButton("2"));
    box1.add(new JButton("3"));
    box1.add(Box.createHorizontalStrut(20));
    box1.add(new JButton("4"));
    box1.add(new JButton("5"));
    box1.add(Box.createHorizontalGlue());
    box1.add(new JButton("6"));
    
    internal.setSize(350,200);
    internal.setLocation(12, 12);
    
    frame.setContentPane(pane);
    
    frame.setSize(400,300);
    frame.show();
  }
}
