20 lines
381 B
Java
20 lines
381 B
Java
import java.awt.*;
|
|
import javax.swing.*;
|
|
import java.awt.event.*;
|
|
import java.lang.*;
|
|
|
|
|
|
public class Main{
|
|
|
|
static JFrame fenetre = new JFrame();
|
|
|
|
public static void main(String[] args) {
|
|
|
|
Boutons pan = new Boutons();
|
|
fenetre.setSize(500, 500);
|
|
fenetre.setLocation(250, 250);
|
|
fenetre.addWindowListener(pan);
|
|
fenetre.add(pan);
|
|
fenetre.setVisible(true);
|
|
}
|
|
} |