-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProduits.java
More file actions
37 lines (31 loc) · 896 Bytes
/
Copy pathProduits.java
File metadata and controls
37 lines (31 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package Pack4;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JInternalFrame;
import javax.swing.plaf.InternalFrameUI;
public class Produits extends JInternalFrame{
JButton Ajouter;
public Produits() {
setTitle("Catalogue Produits");
setSize(810,550);
setVisible(true);
setLocation(5, 5);
setIconifiable(true);
setResizable(true);
setClosable(true);
setDefaultCloseOperation(JInternalFrame.DISPOSE_ON_CLOSE);
setLayout(new BorderLayout());
Ajouter=new JButton("ajouter Produit");
add(Ajouter,BorderLayout.SOUTH);
Ajouter.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
AjoutP m=new AjoutP();
m.setVisible(true);
}
});
}
}