IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Agents de placement/Fenêtres Java Discussion :

Ouvrir une fenêtre à l'aide d'un bouton


Sujet :

Agents de placement/Fenêtres Java

  1. #1
    Membre du Club
    Profil pro
    Inscrit en
    Février 2007
    Messages
    219
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2007
    Messages : 219
    Points : 61
    Points
    61
    Par défaut Ouvrir une fenêtre à l'aide d'un bouton
    Bonjour,
    Alors j'ai une fenêtre (IGClient) avec un bouton et je voudrais que lorsque je clique sur ce bouton, il faut qu'une autre fenêtre (IGChat) s'ouvre. Je ne vois pas comment faire.
    Merci d'avance.

  2. #2
    Membre habitué
    Profil pro
    Devops
    Inscrit en
    Août 2006
    Messages
    107
    Détails du profil
    Informations personnelles :
    Âge : 46
    Localisation : France, Isère (Rhône Alpes)

    Informations professionnelles :
    Activité : Devops

    Informations forums :
    Inscription : Août 2006
    Messages : 107
    Points : 139
    Points
    139
    Par défaut
    Citation Envoyé par coco38 Voir le message
    Bonjour,
    Alors j'ai une fenêtre (IGClient) avec un bouton et je voudrais que lorsque je clique sur ce bouton, il faut qu'une autre fenêtre (IGChat) s'ouvre. Je ne vois pas comment faire.
    Merci d'avance.
    Tu veux faire un JDialog ?

  3. #3
    Membre du Club
    Profil pro
    Inscrit en
    Février 2007
    Messages
    219
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2007
    Messages : 219
    Points : 61
    Points
    61
    Par défaut
    Bah en fait j'ai déjà les deux interfaces. Donc je ne sais pas si JDialog marche???

  4. #4
    Membre chevronné
    Avatar de CheryBen
    Inscrit en
    Mai 2005
    Messages
    1 599
    Détails du profil
    Informations personnelles :
    Âge : 42

    Informations forums :
    Inscription : Mai 2005
    Messages : 1 599
    Points : 2 197
    Points
    2 197
    Par défaut
    Bonjour, IGChat est une JFrame?
    Utilise un l'interface ActionListener et sa méthode actionPerformed pour récupérer l'event du bouton. Ensuite tu ouvres IGChat de la même façon que tu ouvres IGClient. (si ce sont toutes les 2 des JFrames)

    Qu'est-ce que tu n'arrives pas à faire?

  5. #5
    Membre habitué
    Profil pro
    Devops
    Inscrit en
    Août 2006
    Messages
    107
    Détails du profil
    Informations personnelles :
    Âge : 46
    Localisation : France, Isère (Rhône Alpes)

    Informations professionnelles :
    Activité : Devops

    Informations forums :
    Inscription : Août 2006
    Messages : 107
    Points : 139
    Points
    139
    Par défaut
    Citation Envoyé par coco38 Voir le message
    Bah en fait j'ai déjà les deux interfaces. Donc je ne sais pas si JDialog marche???
    Pour savoir si "JDialog marche", il faut répondre a la question : est-ce que les actions de la premiere fenetres doivent être vérouillé temps que la seconde est visible ? Si oui, c'est un JDialog extented a ta sauce. Sinon, bah... tu es bien arrivé a ouvrir ta premiere fenetre, tu devrai arriver a en ouvrir une autre non ?

  6. #6
    Membre du Club
    Profil pro
    Inscrit en
    Février 2007
    Messages
    219
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2007
    Messages : 219
    Points : 61
    Points
    61
    Par défaut
    Oui IGChat est une JFrame. En fait je code sous netbans et donc IGClient est la frame principale qui se lance toute seule. Ce que je n'arrive pas à faire c'est appeler la fenêtre. J'aurais bien fais quelquechose comme IGChat.open()mais cela n'existe pas...

  7. #7
    Membre habitué
    Profil pro
    Devops
    Inscrit en
    Août 2006
    Messages
    107
    Détails du profil
    Informations personnelles :
    Âge : 46
    Localisation : France, Isère (Rhône Alpes)

    Informations professionnelles :
    Activité : Devops

    Informations forums :
    Inscription : Août 2006
    Messages : 107
    Points : 139
    Points
    139
    Par défaut
    Citation Envoyé par coco38 Voir le message
    Oui IGChat est une JFrame. En fait je code sous netbans et donc IGClient est la frame principale qui se lance toute seule. Ce que je n'arrive pas à faire c'est appeler la fenêtre. J'aurais bien fais quelquechose comme IGChat.open()mais cela n'existe pas...
    Rahalalala, ces IDE qui génère du code c'est vraiment une plaie pour les nweebies... Regarde ici pour voir comment on ouvre une fenetre.

  8. #8
    Membre du Club
    Profil pro
    Inscrit en
    Février 2007
    Messages
    219
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2007
    Messages : 219
    Points : 61
    Points
    61
    Par défaut
    J'ai mis cela mais cela nefonctionne pas...
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    IGChat obj = new IGChat();
                obj.setVisible(true);

  9. #9
    Membre chevronné
    Avatar de CheryBen
    Inscrit en
    Mai 2005
    Messages
    1 599
    Détails du profil
    Informations personnelles :
    Âge : 42

    Informations forums :
    Inscription : Mai 2005
    Messages : 1 599
    Points : 2 197
    Points
    2 197
    Par défaut
    Analyse un peu TON code, même généré par NetBeans, il faut te l'approprier, si il y a un bug dans ton appli, tu ne pourras pas dire à ton patron "mais c'est généré automatiquement".
    Donc regarde IGClient, fait des recherches pour savoir où la fenêtre est construite (surement pas loin du main) et tu trouveras la marche à suivre pour ouvrir IGChat.

  10. #10
    Membre du Club
    Profil pro
    Inscrit en
    Février 2007
    Messages
    219
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2007
    Messages : 219
    Points : 61
    Points
    61
    Par défaut
    J'ai ceci dans le main mais cela ne marche pas pour mon IGChat si je le mets dans ma méthode sur le click:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new IGChat().setVisible(true);
                }});

  11. #11
    Membre du Club
    Profil pro
    Inscrit en
    Février 2007
    Messages
    219
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2007
    Messages : 219
    Points : 61
    Points
    61
    Par défaut
    Dans ma classe IGClient (qui est donc la première interface) j'ai ceci mais cela ne marche pas:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
        private void clickConnect(java.awt.event.MouseEvent evt) {
            java.awt.EventQueue.invokeLater(new Runnable() {
     
            public void run() {
                new IGChat().setVisible(true);
            }});
     
        }

  12. #12
    Membre chevronné
    Avatar de CheryBen
    Inscrit en
    Mai 2005
    Messages
    1 599
    Détails du profil
    Informations personnelles :
    Âge : 42

    Informations forums :
    Inscription : Mai 2005
    Messages : 1 599
    Points : 2 197
    Points
    2 197
    Par défaut
    Peux-tu nous montrer ta classe IGChat?
    As-tu vérifier que tu passais bien dans le run?

  13. #13
    Membre du Club
    Profil pro
    Inscrit en
    Février 2007
    Messages
    219
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2007
    Messages : 219
    Points : 61
    Points
    61
    Par défaut
    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
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    public class IGChat extends javax.swing.JPanel {
     
        /** Creates new form InterfaceChat */
        public IGChat() {
            initComponents();
        }
     
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
         */
        // <editor-fold defaultstate="collapsed" desc="Generated Code">                          
        private void initComponents() {
     
            jScrollPane1 = new javax.swing.JScrollPane();
            textChat = new javax.swing.JTextArea();
            jScrollPane2 = new javax.swing.JScrollPane();
            fileList = new javax.swing.JList();
            bDisconnect = new javax.swing.JButton();
            bQuit = new javax.swing.JButton();
            bSend = new javax.swing.JButton();
            jScrollPane3 = new javax.swing.JScrollPane();
            textConv = new javax.swing.JTextPane();
            voteQuestion = new javax.swing.JPanel();
            bYes = new javax.swing.JRadioButton();
            bNo = new javax.swing.JRadioButton();
            bIndiferent = new javax.swing.JRadioButton();
            bValid = new javax.swing.JButton();
            labelFile = new javax.swing.JLabel();
            labelVote = new javax.swing.JLabel();
            jScrollPane4 = new javax.swing.JScrollPane();
            contactList = new javax.swing.JList();
            voteResult = new javax.swing.JPanel();
            labelTitle = new javax.swing.JLabel();
     
            textChat.setColumns(20);
            textChat.setRows(5);
            jScrollPane1.setViewportView(textChat);
     
            fileList.setModel(new javax.swing.AbstractListModel() {
                String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
                public int getSize() { return strings.length; }
                public Object getElementAt(int i) { return strings[i]; }
            });
            jScrollPane2.setViewportView(fileList);
     
            bDisconnect.setText("Disconnect");
     
            bQuit.setText("Quit");
     
            bSend.setText("Send");
     
            jScrollPane3.setViewportView(textConv);
     
            voteQuestion.setBorder(new javax.swing.border.MatteBorder(null));
     
            javax.swing.GroupLayout voteQuestionLayout = new javax.swing.GroupLayout(voteQuestion);
            voteQuestion.setLayout(voteQuestionLayout);
            voteQuestionLayout.setHorizontalGroup(
                voteQuestionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGap(0, 465, Short.MAX_VALUE)
            );
            voteQuestionLayout.setVerticalGroup(
                voteQuestionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGap(0, 58, Short.MAX_VALUE)
            );
     
            bYes.setText("Yes");
     
            bNo.setText("No");
     
            bIndiferent.setText("Indifferent");
     
            bValid.setText("Valid");
     
            labelFile.setText("Files:");
     
            labelVote.setText("Vote:");
     
            contactList.setModel(new javax.swing.AbstractListModel() {
                String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
                public int getSize() { return strings.length; }
                public Object getElementAt(int i) { return strings[i]; }
            });
            jScrollPane4.setViewportView(contactList);
     
            javax.swing.GroupLayout voteResultLayout = new javax.swing.GroupLayout(voteResult);
            voteResult.setLayout(voteResultLayout);
            voteResultLayout.setHorizontalGroup(
                voteResultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGap(0, 100, Short.MAX_VALUE)
            );
            voteResultLayout.setVerticalGroup(
                voteResultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGap(0, 100, Short.MAX_VALUE)
            );
     
            labelTitle.setFont(new java.awt.Font("Monotype Corsiva", 3, 24));
            labelTitle.setForeground(new java.awt.Color(0, 0, 255));
            labelTitle.setText("CONFERENCE DISCUSSION");
     
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
            this.setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                    .addGap(23, 23, 23)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(labelVote)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(voteQuestion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(bDisconnect)
                                .addGroup(layout.createSequentialGroup()
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(layout.createSequentialGroup()
                                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGroup(layout.createSequentialGroup()
                                                    .addGap(26, 26, 26)
                                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                        .addComponent(jScrollPane2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 339, Short.MAX_VALUE)
                                                        .addGroup(layout.createSequentialGroup()
                                                            .addComponent(labelFile)
                                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))))
                                                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(bSend)
                                                    .addGap(54, 54, 54))
                                                .addGroup(layout.createSequentialGroup()
                                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                                        .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.LEADING)
                                                        .addComponent(jScrollPane3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 305, Short.MAX_VALUE))
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(voteResult, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                        .addGroup(layout.createSequentialGroup()
                                            .addGap(52, 52, 52)
                                            .addComponent(bYes)
                                            .addGap(52, 52, 52)
                                            .addComponent(bNo)
                                            .addGap(61, 61, 61)
                                            .addComponent(bIndiferent)
                                            .addGap(84, 84, 84)
                                            .addComponent(bValid)))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(bQuit)))
                            .addGap(14, 14, 14)))
                    .addGap(17, 17, 17))
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                    .addContainerGap(148, Short.MAX_VALUE)
                    .addComponent(labelTitle, javax.swing.GroupLayout.PREFERRED_SIZE, 327, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(111, 111, 111))
            );
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(21, 21, 21)
                    .addComponent(labelTitle, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(18, 18, 18)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(labelVote)
                        .addComponent(voteQuestion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(bYes)
                            .addComponent(bNo))
                        .addGroup(layout.createSequentialGroup()
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(bIndiferent))
                        .addGroup(layout.createSequentialGroup()
                            .addGap(4, 4, 4)
                            .addComponent(bValid)))
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(layout.createSequentialGroup()
                            .addGap(25, 25, 25)
                            .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 165, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(layout.createSequentialGroup()
                            .addGap(47, 47, 47)
                            .addComponent(voteResult, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGap(6, 6, 6)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(layout.createSequentialGroup()
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 14, Short.MAX_VALUE)
                            .addComponent(bSend)
                            .addGap(4, 4, 4)
                            .addComponent(labelFile)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(layout.createSequentialGroup()
                            .addGap(54, 54, 54)
                            .addComponent(bDisconnect)
                            .addGap(35, 35, 35)
                            .addComponent(bQuit)))
                    .addContainerGap())
            );
        }// </editor-fold>                        
     
     
        // Variables declaration - do not modify                     
        private javax.swing.JButton bDisconnect;
        private javax.swing.JRadioButton bIndiferent;
        private javax.swing.JRadioButton bNo;
        private javax.swing.JButton bQuit;
        private javax.swing.JButton bSend;
        private javax.swing.JButton bValid;
        private javax.swing.JRadioButton bYes;
        private javax.swing.JList contactList;
        private javax.swing.JList fileList;
        private javax.swing.JScrollPane jScrollPane1;
        private javax.swing.JScrollPane jScrollPane2;
        private javax.swing.JScrollPane jScrollPane3;
        private javax.swing.JScrollPane jScrollPane4;
        private javax.swing.JLabel labelFile;
        private javax.swing.JLabel labelTitle;
        private javax.swing.JLabel labelVote;
        private javax.swing.JTextArea textChat;
        private javax.swing.JTextPane textConv;
        private javax.swing.JPanel voteQuestion;
        private javax.swing.JPanel voteResult;
        // End of variables declaration                   
     
    }

  14. #14
    Membre chevronné
    Avatar de CheryBen
    Inscrit en
    Mai 2005
    Messages
    1 599
    Détails du profil
    Informations personnelles :
    Âge : 42

    Informations forums :
    Inscription : Mai 2005
    Messages : 1 599
    Points : 2 197
    Points
    2 197
    Par défaut
    Citation Envoyé par morph41 Voir le message
    As-tu vérifier que tu passais bien dans le run?

  15. #15
    Membre du Club
    Profil pro
    Inscrit en
    Février 2007
    Messages
    219
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2007
    Messages : 219
    Points : 61
    Points
    61
    Par défaut
    oui j'ai vérifié en faisant un System.out.println et cela me le marque

  16. #16
    Membre chevronné
    Avatar de CheryBen
    Inscrit en
    Mai 2005
    Messages
    1 599
    Détails du profil
    Informations personnelles :
    Âge : 42

    Informations forums :
    Inscription : Mai 2005
    Messages : 1 599
    Points : 2 197
    Points
    2 197
    Par défaut
    Je viens de trouver! tu as dit plus haut que IGChat était une JFrame, or c'est un JPanel.
    Un JPanel doit être ajouté dans un container, une JFrame par exemple.

  17. #17
    Membre du Club
    Profil pro
    Inscrit en
    Février 2007
    Messages
    219
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2007
    Messages : 219
    Points : 61
    Points
    61
    Par défaut
    ah d'accord alors désolé je me suis mal exprimé. Et comment je fais cela alors?

  18. #18
    Membre du Club
    Profil pro
    Inscrit en
    Février 2007
    Messages
    219
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2007
    Messages : 219
    Points : 61
    Points
    61
    Par défaut
    C'est bon ça marche. J'ai recréer ma classe en faisant une JFrame donc voila.
    Merci beaucoup

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Ouvrir une fenêtre (Stage) à partir d'un bouton
    Par paesportcomputing dans le forum JavaFX
    Réponses: 8
    Dernier message: 20/03/2015, 18h06
  2. ouvrir une fenêtre à partir d'un bouton
    Par minerva dans le forum C#
    Réponses: 1
    Dernier message: 16/10/2010, 11h40
  3. Ouvrir une fenêtre en cliquant sur un bouton
    Par Versace31 dans le forum Interfaces Graphiques en Java
    Réponses: 6
    Dernier message: 10/02/2009, 21h43
  4. Ouvrir une fenêtre via un bouton
    Par asco5 dans le forum Débuter avec Java
    Réponses: 5
    Dernier message: 05/08/2008, 00h07
  5. Bouton pour ouvrir une fenêtre séparée
    Par francoisch dans le forum Balisage (X)HTML et validation W3C
    Réponses: 2
    Dernier message: 11/11/2007, 21h37

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo