Positionnement à gauche avec un BoxLayout
Bonjour,
impossible de placer mon box layout à gauche...
je dois mal m'y prendre ...
Merci pour votre aide !
Code:
1 2 3 4 5 6 7 8
| // Dans le panneau 7
JButton button1 = new JButton("Envoyer !");
//pan7.setLayout(new BorderLayout());
Box hbox5 = Box.createHorizontalBox();
pan7.add(hbox5);
hbox5.setAlignmentX(Component.LEFT_ALIGNMENT);
hbox5.add(button1);
//pan7.add(button1, BorderLayout.CENTER); |
http://img504.imageshack.us/img504/8...loppezjava.jpg
Uploaded with ImageShack.us