18 lines
430 B
Java
18 lines
430 B
Java
|
import javax.swing.*;
|
||
|
import java.awt.*;
|
||
|
|
||
|
public class Q3Main{
|
||
|
public static void main(String[] args){
|
||
|
JFrame fenetre = new JFrame();
|
||
|
fenetre.setSize(500, 300);
|
||
|
fenetre.setLocation(0, 0);
|
||
|
fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||
|
|
||
|
ProducteurDePoints producteurEtoile = new Etoile();
|
||
|
Graphe dessinEtoile = new Graphe(producteurEtoile);
|
||
|
fenetre.add(dessinEtoile);
|
||
|
|
||
|
fenetre.setVisible(true);
|
||
|
}
|
||
|
}
|