bonjour je ne maitrise pas trop l'oganisation de mes composants dans une fenetre JAVA
en faite je voudrais organiser pour l'instant trois boutton de cette maniere
-------------------------------------------------------------
boutton MENU
-------------------------------------------------------------
boutton IMAGE
-------------------------------------------------------------
boutton DIALOGUE
-------------------------------------------------------------
voici mon code:import java.awt.*;
import java.awt.event.*;
/*
*/
public class interface1 extends Frame {
public interface1(){
Button MENU = new Button("MENU");
Button IMAGE = new Button("IMAGE");
Button DIALOGUE = new Button("DIALOGUE");
setTitle("TESTE");
GridBagLayout g=new GridBagLayout();
setLayout(g);
//créer un objet de type GridBagConstraints
GridBagConstraints c=new GridBagConstraints();
c.gridx = 0;
c.gridy = 0;
c.gridheight = 1;
c.gridwidth = 4;
c.fill=GridBagConstraints.BOTH;
c.weightx = 1.0;
c.weighty = 1.0;
add(new Button("1"),c);
c.gridy = 1;
c.gridx = 0;
c.gridheight = 3;
c.gridwidth = 4;
add(new Button("2"),c);
c.gridy = 4;
c.gridx = 0;
c.gridheight = 1;
c.gridwidth = 1;
add(new Button("3"),c);
setSize(400,400);
setVisible(true);
}//interface1
public static void main(String []args){
new interface1();
}

}
cela me donne :

-------------------------------------------------------------
boutton MENU
-------------------------------------------------------------
boutton IMAGE
-------------------------------------------------------------
boutton DIALOGUE
-------------------------------------------------------------