Interface graphique java
nasMCor
Messages postés
1
Statut
Membre
-
Chris 94 Messages postés 58330 Date d'inscription Statut Modérateur Dernière intervention -
Chris 94 Messages postés 58330 Date d'inscription Statut Modérateur Dernière intervention -
Bonjour,
je suis débutante en java ,
j'ai une classe: public class ClientDialog extends JDialog qui contient 2 bouttons:
chercher.addActionListener(new ActionListener(){ // afficher le commerce
public void actionPerformed(ActionEvent arg0) {
commerce = new Commerce();
setVisible(false);
}
});
chercher2.addActionListener(new ActionListener(){ //afficher la residance
public void actionPerformed(ActionEvent arg0) {
residance = new Residance();
setVisible(false);
}
});
et la classe : public class fenetre extends JFrame dans laquelle il ya un bouton qui doit effectuer a la fois:
boutonC.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent arg0) {
ClientDialog cd = new ClientDialog(null, "Espace Client", true);
Commerce com=cd.showDialogCom();
JOptionPane jop = new JOptionPane();
jop.showMessageDialog(null, com.toString(), "Informations du bien recherché", JOptionPane.INFORMATION_MESSAGE);
}
});
et :
boutonC.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent arg0) {
ClientDialog cd2 = new ClientDialog(null, "Espace Client", true);
Residance res=cd2.showDialogRes();
JOptionPane jop = new JOptionPane();
jop.showMessageDialog(null,res.toString(), "Informations du bien recherché", JOptionPane.INFORMATION_MESSAGE);
}
});
et le problème c'est que ça ne mache pas avec se raisonnement, et j'ai pas d'autre idées alors comment faire?
je suis débutante en java ,
j'ai une classe: public class ClientDialog extends JDialog qui contient 2 bouttons:
chercher.addActionListener(new ActionListener(){ // afficher le commerce
public void actionPerformed(ActionEvent arg0) {
commerce = new Commerce();
setVisible(false);
}
});
chercher2.addActionListener(new ActionListener(){ //afficher la residance
public void actionPerformed(ActionEvent arg0) {
residance = new Residance();
setVisible(false);
}
});
et la classe : public class fenetre extends JFrame dans laquelle il ya un bouton qui doit effectuer a la fois:
boutonC.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent arg0) {
ClientDialog cd = new ClientDialog(null, "Espace Client", true);
Commerce com=cd.showDialogCom();
JOptionPane jop = new JOptionPane();
jop.showMessageDialog(null, com.toString(), "Informations du bien recherché", JOptionPane.INFORMATION_MESSAGE);
}
});
et :
boutonC.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent arg0) {
ClientDialog cd2 = new ClientDialog(null, "Espace Client", true);
Residance res=cd2.showDialogRes();
JOptionPane jop = new JOptionPane();
jop.showMessageDialog(null,res.toString(), "Informations du bien recherché", JOptionPane.INFORMATION_MESSAGE);
}
});
et le problème c'est que ça ne mache pas avec se raisonnement, et j'ai pas d'autre idées alors comment faire?
A voir également:
- Interface graphique java
- Jeux java itel - Télécharger - Jeux vidéo
- Waptrick java football - Télécharger - Jeux vidéo
- Changer carte graphique - Guide
- Waptrick java voiture - Télécharger - Jeux vidéo
- Eclipse java - Télécharger - Langages