optimisation bouttons controle
This commit is contained in:
@@ -41,6 +41,12 @@ public class VueControle extends JPanel {
|
|||||||
//PAUSE BUTTON & QUIT BUTTON
|
//PAUSE BUTTON & QUIT BUTTON
|
||||||
pauseButton = new JButton("PAUSE");
|
pauseButton = new JButton("PAUSE");
|
||||||
quitterButton = new JButton("QUITTER");
|
quitterButton = new JButton("QUITTER");
|
||||||
|
Dimension buttonSize = new Dimension(85, 30);
|
||||||
|
Insets margeBoutton = new Insets(2, 2, 2, 2);
|
||||||
|
pauseButton.setPreferredSize(buttonSize);
|
||||||
|
pauseButton.setMargin(margeBoutton);
|
||||||
|
quitterButton.setPreferredSize(buttonSize);
|
||||||
|
quitterButton.setMargin(margeBoutton);
|
||||||
JPanel boutonsPanel = new JPanel();
|
JPanel boutonsPanel = new JPanel();
|
||||||
boutonsPanel.setLayout(new FlowLayout(FlowLayout.CENTER, 10, 0));
|
boutonsPanel.setLayout(new FlowLayout(FlowLayout.CENTER, 10, 0));
|
||||||
boutonsPanel.setOpaque(false);
|
boutonsPanel.setOpaque(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user