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

27 lines
606 B
Java
Raw Normal View History

2023-01-16 00:28:42 +01:00
package fr.sae.JSonInspector.Graphics;
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;
public class MyJLabel extends JLabel {
/**
*
2023-01-16 00:28:42 +01:00
* @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);
}
}