APL/DEV 3.1/Victoire/Victoire.java

33 lines
882 B
Java
Raw Normal View History

2022-09-07 11:16:04 +02:00
import java.sql.*;
import javax.swing.*;
import java.awt.*;
public class Victoire {
public static JLabel scoreLabel;
public static JLabel countryLabel;
public static void refresh() {
}
public static void main(String[] args) {
JFrame window = new JFrame("Victoire");
window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
window.setSize(300, 300);
window.setLocation(200, 200);
JButton refreshBT = new JButton("");
refreshBT.addActionListener(new RefreshListener());
window.add(refreshBT, BorderLayout.SOUTH);
window.setVisible(true);
countryLabel = new JLabel("...", JLabel.CENTER);
scoreLabel = new JLabel("0", JLabel.CENTER);
window.add(countryLabel, BorderLayout.NORTH);
window.add(scoreLabel, BorderLayout.CENTER);
Victoire.refresh();
}
}