20 lines
344 B
Java
20 lines
344 B
Java
import java.awt.*;
|
|
import javax.swing.*;
|
|
|
|
public class Fenetre extends JFrame {
|
|
|
|
private int ordre;
|
|
|
|
public Fenetre(int ordre) {
|
|
this.ordre = ordre;
|
|
|
|
this.setSize(500, 500);
|
|
this.setLocation(100, 100);
|
|
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
|
|
|
this.setLayout(new GridLayout(1, 1));
|
|
this.add(new JFlocon(ordre));
|
|
}
|
|
|
|
|
|
} |