2023-01-12 21:57:42 +01:00
|
|
|
package JsonInspector;
|
|
|
|
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|