33 lines
882 B
Java
33 lines
882 B
Java
|
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();
|
||
|
}
|
||
|
}
|