2023-01-16 00:28:42 +01:00
|
|
|
package fr.sae.JSonInspector.Graphics;
|
2023-01-16 00:10:49 +01:00
|
|
|
|
2023-01-16 00:28:42 +01:00
|
|
|
import fr.sae.JSonInspector.Settings.Parameters;
|
2023-01-16 16:19:12 +01:00
|
|
|
import javax.swing.JLabel;
|
|
|
|
import java.awt.Color;
|
2023-01-16 00:10:49 +01:00
|
|
|
|
|
|
|
public class MyJLabel extends JLabel {
|
|
|
|
/**
|
|
|
|
*
|
2023-01-16 00:28:42 +01:00
|
|
|
* @param text le texte à afficher
|
2023-01-16 00:10:49 +01:00
|
|
|
* @param color la couleur du texte
|
|
|
|
*/
|
|
|
|
public MyJLabel(String text, Color color) {
|
|
|
|
super(text);
|
|
|
|
this.setForeground(color);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @param text le texte à afficher
|
|
|
|
*/
|
|
|
|
public MyJLabel(String text) {
|
|
|
|
super(text);
|
|
|
|
this.setForeground(Parameters.DEFAULT_TEXT_COLOR);
|
|
|
|
}
|
|
|
|
}
|