2023-01-15 20:37:28 +01:00
|
|
|
package fr.sae.JSonInspector.Graphics;
|
|
|
|
|
|
|
|
import fr.sae.JSonInspector.Settings.Parameters;
|
2023-01-15 20:08:18 +01:00
|
|
|
|
|
|
|
import javax.swing.*;
|
|
|
|
import java.awt.*;
|
|
|
|
|
|
|
|
public class MyJLabel extends JLabel {
|
|
|
|
public MyJLabel(String text, Color color) {
|
|
|
|
super(text);
|
2023-01-15 20:37:28 +01:00
|
|
|
// this.setFont(Parameters.FILE_FONT);
|
2023-01-15 20:08:18 +01:00
|
|
|
this.setForeground(color);
|
|
|
|
}
|
|
|
|
|
|
|
|
public MyJLabel(String text) {
|
|
|
|
super(text);
|
2023-01-15 20:37:28 +01:00
|
|
|
// this.setFont(Parameters.FILE_FONT);
|
2023-01-15 20:08:18 +01:00
|
|
|
this.setForeground(Parameters.DEFAULT_TEXT_COLOR);
|
|
|
|
}
|
|
|
|
}
|