2023-01-16 00:10:49 +01:00
|
|
|
package JsonInspector.Graphics;
|
|
|
|
|
|
|
|
import JsonInspector.Settings.Parameters;
|
|
|
|
|
|
|
|
import javax.swing.*;
|
|
|
|
import java.awt.*;
|
|
|
|
|
|
|
|
public class MyJLabel extends JLabel {
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @param text le texte à afficher
|
|
|
|
* @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);
|
|
|
|
}
|
|
|
|
}
|