Files
SAE32_2022/src/fr/sae/JSonInspector/Graphics/MyJLabel.java

28 lines
584 B
Java
Raw Normal View History

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);
}
}