Correction des bugs de verions entre Windows, Linux et macOS
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user