Me voy por la mañana,
Entregando el buen ron de Binks. Las olas bailan y yo cabalgo, Las olas en el viento.
This commit is contained in:
parent
9d2d1e93cd
commit
c9760eec09
7
APL2.1/TP9/Rectangle/Main.java
Normal file
7
APL2.1/TP9/Rectangle/Main.java
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
public class Main
|
||||||
|
{
|
||||||
|
public static void main(String[] args)
|
||||||
|
{
|
||||||
|
Rectangle pl = new Rectangle();
|
||||||
|
}
|
||||||
|
}
|
0
APL2.1/TP9/Rectangle/Rectangle.java
Normal file
0
APL2.1/TP9/Rectangle/Rectangle.java
Normal file
@ -3,7 +3,6 @@ import java.awt.*;
|
|||||||
|
|
||||||
public class Fenetre extends JFrame {
|
public class Fenetre extends JFrame {
|
||||||
public Fenetre (){
|
public Fenetre (){
|
||||||
|
|
||||||
this.setLocation(100, 100);
|
this.setLocation(100, 100);
|
||||||
this.setResizable(false);
|
this.setResizable(false);
|
||||||
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||||
@ -14,8 +13,5 @@ public class Fenetre extends JFrame {
|
|||||||
panneau.setBackground (Color.BLACK);
|
panneau.setBackground (Color.BLACK);
|
||||||
this.add(panneau, BorderLayout.CENTER);
|
this.add(panneau, BorderLayout.CENTER);
|
||||||
this.pack();
|
this.pack();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -6,11 +6,9 @@
|
|||||||
public Playlist()
|
public Playlist()
|
||||||
{
|
{
|
||||||
JFrame fenetre = new JFrame();
|
JFrame fenetre = new JFrame();
|
||||||
|
|
||||||
fenetre.setSize(250, 500);
|
fenetre.setSize(250, 500);
|
||||||
fenetre.setLocation(100, 100);
|
fenetre.setLocation(100, 100);
|
||||||
fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||||
|
|
||||||
GridLayout gestionnaire = new GridLayout(10, 1);
|
GridLayout gestionnaire = new GridLayout(10, 1);
|
||||||
fenetre.setLayout(gestionnaire);
|
fenetre.setLayout(gestionnaire);
|
||||||
|
|
||||||
@ -19,10 +17,8 @@
|
|||||||
JLabel lab = new JLabel("Morceau n°" + (i+1));
|
JLabel lab = new JLabel("Morceau n°" + (i+1));
|
||||||
PlaylistListener listener = new PlaylistListener(lab);
|
PlaylistListener listener = new PlaylistListener(lab);
|
||||||
lab.addMouseListener(listener);
|
lab.addMouseListener(listener);
|
||||||
|
|
||||||
fenetre.add(lab);
|
fenetre.add(lab);
|
||||||
}
|
}
|
||||||
|
|
||||||
fenetre.setVisible(true);
|
fenetre.setVisible(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user