Correction des bugs de verions entre Windows, Linux et macOS

This commit is contained in:
2024-04-29 14:34:45 +02:00
parent 62a90389ca
commit 0cc2067922
6 changed files with 29 additions and 7 deletions

View File

@@ -19,6 +19,17 @@ public class Button extends JButton {
setBackground(new Color(96, 175, 255));
}
/**
* Constructor
* @param text The text of the button
* @param color The background color of the button
*/
public Button (String text,Color color) {
super(text);
setFont(new Font("Arial", Font.BOLD, 15));
setBackground(color);
}
/**
* Constructor
* @param text The text of the button