regine trabajo
This commit is contained in:
parent
055df406da
commit
c1a49f7c8f
21
APL2.1/TP9/Volume/Fenetre.java
Normal file
21
APL2.1/TP9/Volume/Fenetre.java
Normal file
@ -0,0 +1,21 @@
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
|
||||
public class Fenetre extends JFrame {
|
||||
public Fenetre (){
|
||||
|
||||
this.setLocation(100, 100);
|
||||
this.setResizable(false);
|
||||
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
Paintvolume draw = new Paintvolume();
|
||||
JPanel panneau = new JPanel();
|
||||
panneau.addMouseWheelListener(new Souris(draw));
|
||||
panneau.add(draw);
|
||||
panneau.setBackground (Color.BLUE);
|
||||
this.add(panneau, BorderLayout.CENTER);
|
||||
this.pack();
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user