Bonjour a tous !

Voila j'ai un petit problème ... Je crée une interface graphique en Swing et dans un menu lorsque je clique sur un MenuItem une fenêtre se crée. J'ai crée une classe FrmAjoutDouble avec un constructeur qui créera la fenêtre ... Le problème c'est que j'arrive pas a redimensionner cette fenêtre, j'ai essayé avec setSize, setBounds et ça va pas.

Voila mon code

Code de la fenêtre principale :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
 
FrmAjoutDouble frmAjoutDouble = new FrmAjoutDouble();
frmMain.getContentPane().add(frmAjoutDouble);
frmAjoutDouble.setBounds(0, 0, 400, 250);
frmAjoutDouble.setSize(400,250);
Code de la JInternalFrame :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
 
package gestclefs;
 
import javax.swing.JInternalFrame;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JComboBox;
 
import com.swtdesigner.SwingResourceManager;
 
import java.awt.Font;
import java.awt.ComponentOrientation;
 
public class FrmAjoutDouble extends JInternalFrame
{
    /**
     * 
     */
    private static final long serialVersionUID = 4707289343036131036L;
    private static JLabel     lblIco         = new JLabel("");
    private static JLabel      lblTit1      = new JLabel("Créer un double");
    private static JLabel     lblTit2     = new JLabel("Choisissez une clef a reproduire");
    private static JLabel      lblLocal      = new JLabel("Local");
    private static JLabel      lblSerrure  = new JLabel("Serrure");
    private static JLabel      lblClef      = new JLabel("Clef");
    private static JComboBox cmbLocal      = new JComboBox();
    private static JComboBox cmbSerrure  = new JComboBox();
    private static JComboBox cmbClef      = new JComboBox();
    private static JButton      btnOk          = new JButton("Dupliquer");
    private static JButton      btnCancel      = new JButton("Annuler");
    private static Font         fntTit      = new Font("Verdana", Font.BOLD, 14);
    private static Font         fntStd         = new Font("Verdana", Font.BOLD, 12);
 
    public FrmAjoutDouble()
    {
        lblTit1.setFont(fntTit);
        lblLocal.setFont(fntStd);
        lblSerrure.setFont(fntStd);
        lblClef.setFont(fntStd);
 
        lblLocal.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
        lblSerrure.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
        lblClef.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
        lblIco.setIcon(SwingResourceManager.getIcon(FrmMain.class, "img/key1.gif"));
 
        lblIco.setSize(50, 50);
        lblTit1.setSize(200, 20);
        lblTit2.setSize(200, 20);
        lblLocal.setSize(100, 20);
        lblSerrure.setSize(100, 20);
        lblClef.setSize(100, 20);
        cmbLocal.setSize(200, 20);
        cmbSerrure.setSize(200, 20);
        cmbClef.setSize(200, 20);
        btnOk.setSize(100, 20);
        btnCancel.setSize(100, 20);
 
        lblIco.setLocation(0, 0);
        lblTit1.setLocation(50, 15);
        lblTit2.setLocation(50, 40);
        lblLocal.setLocation(20, 70);
        lblSerrure.setLocation(20, 100);
        lblClef.setLocation(20, 130);
        cmbLocal.setLocation(130, 70);
        cmbSerrure.setLocation(130, 100);
        cmbClef.setLocation(130, 130);
        btnOk.setLocation(100, 180);
        btnCancel.setLocation(220, 180);
 
        getContentPane().setLayout(null);
        getContentPane().add(lblIco);
        getContentPane().add(lblTit1);
        getContentPane().add(lblTit2);
        getContentPane().add(lblLocal);
        getContentPane().add(lblSerrure);
        getContentPane().add(lblClef);
        getContentPane().add(cmbLocal);
        getContentPane().add(cmbSerrure);
        getContentPane().add(cmbClef);
        getContentPane().add(btnOk);
        getContentPane().add(btnCancel);
 
        setVisible(true);
    }
}

Si quelqu'un pouvais m'aider ! Merci !