Upload files to "DEV.2.1/CM-blanc/CM-1"
This commit is contained in:
12
DEV.2.1/CM-blanc/CM-1/Fenetre.java
Normal file
12
DEV.2.1/CM-blanc/CM-1/Fenetre.java
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
import java.awt.*;
|
||||||
|
import javax.swing.*;
|
||||||
|
|
||||||
|
public class Fenetre extends JFrame {
|
||||||
|
public Fenetre() {
|
||||||
|
super("");
|
||||||
|
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||||
|
this.setSize(500,500);
|
||||||
|
this.setLocation(500,250);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
10
DEV.2.1/CM-blanc/CM-1/Main.java
Normal file
10
DEV.2.1/CM-blanc/CM-1/Main.java
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
import java.awt.*;
|
||||||
|
import javax.swing.*;
|
||||||
|
|
||||||
|
public class Main {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
Fenetre fenetre = new Fenetre();
|
||||||
|
|
||||||
|
fenetre.setVisible(true);
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user