Bonsoir,
j'ai une petite question concernant le cadre autour d'un JInternalFrame.

je mets le bout code (pour l'exemple).

class Test_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
 
import javax.swing.*;
import java.awt.*;
 
public class Test_JInternalFrame extends JFrame
    {
        private static final long serialVersionUID = 1L;
 
        /** Déclaration des composants */
          private JDesktopPane container_desktop;
          private JInternalFrame internal_frame;
          private JPanel container_panel;
 
        /** @param args */
        public static void main(String[] args)
            {
                SwingUtilities.invokeLater(new Runnable()
                    {
                        public void run()
                            {
                                Test_JInternalFrame thisClass = new Test_JInternalFrame();
                                thisClass.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                                thisClass.setLocationRelativeTo(thisClass.getParent());
                                thisClass.setVisible(true);
                            }
                    });
            }
 
        /** Constructeur */
        public Test_JInternalFrame()
            {
                super();
                initialize();
            }
 
        /** Initialisation de la JFrame */
        private void initialize()
            {
                this.setSize(300, 200);
                this.setContentPane(getContainer_desktop());
                this.setTitle("..:: JFrame ::..");
 
            }
 
        /** initialisation de : container_desktop */
        private JDesktopPane getContainer_desktop()
            {
                container_desktop = new JDesktopPane();
                container_desktop.add(getInternal_frame(), null);
 
                return container_desktop;
            }
        /** Initialisation de : internal_frame */
        private JInternalFrame getInternal_frame()
            {
                internal_frame = new JInternalFrame("..:: JInternalFrame ::..");
                internal_frame.setBounds(new Rectangle(12, 5, 264, 156));
                internal_frame.setContentPane(getContainer_panel());
                internal_frame.setVisible(true);
 
                return internal_frame;
            }
 
        /** Initialisation de : container_panel */    
        private JPanel getContainer_panel()
            {
                container_panel = new JPanel();
                container_panel.setLayout(null);
 
                return container_panel;
            }
    }
En plus je rajoute un imprime écran pour bien voir mon problème.


Question : Comment enlever la bordure grise foncée autour du JInternalFrame ?

Merci beaucoup