1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
btAchat = new JButton("<- Acheter");
btAchat.setPreferredSize(new Dimension(150,50));
btAchat.setMinimumSize(new Dimension(150,50));
btAchat.setMaximumSize(new Dimension(150,50));
btRetour = new JButton("Retour ->");
btRetour.setPreferredSize(new Dimension(150,50));
btRetour.setMinimumSize(new Dimension(150,50));
btRetour.setMaximumSize(new Dimension(150,50));
Box panBts = Box.createVerticalBox();
panBts.add(btAchat);
panBts.add(Box.createRigidArea(new Dimension(0,50)));
panBts.add(btRetour);
conteneur.add(panBts); |
Partager