Transférer les fichiers vers 'src/fr/sae/JSonInspector/Graphics'

This commit is contained in:
2023-01-16 00:10:49 +01:00
parent d38211b431
commit 77cb91dc32
5 changed files with 796 additions and 553 deletions

View File

@@ -1,20 +1,27 @@
package fr.sae.JSonInspector.Graphics;
import fr.sae.JSonInspector.Settings.Parameters;
import javax.swing.*;
import java.awt.*;
public class MyJLabel extends JLabel {
public MyJLabel(String text, Color color) {
super(text);
// this.setFont(Parameters.FILE_FONT);
this.setForeground(color);
}
public MyJLabel(String text) {
super(text);
// this.setFont(Parameters.FILE_FONT);
this.setForeground(Parameters.DEFAULT_TEXT_COLOR);
}
}
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);
}
}