SAE21_2023/src/Title.java

12 lines
240 B
Java
Raw Normal View History

2024-04-09 17:13:23 +02:00
import javax.swing.*;
import java.awt.*;
public class Title extends JLabel {
public Title(String text, Font font, Color color) {
super(text, SwingConstants.CENTER);
setFont(font);
setForeground(color);
}
}