[JAVA] problème avec 'showInPutDialog'
Fermé
qwix@netcourrier.com
-
19 déc. 2002 à 12:47
choubaka Messages postés 39422 Date d'inscription jeudi 4 avril 2002 Statut Modérateur Dernière intervention 28 mars 2025 - 3 janv. 2003 à 08:56
choubaka Messages postés 39422 Date d'inscription jeudi 4 avril 2002 Statut Modérateur Dernière intervention 28 mars 2025 - 3 janv. 2003 à 08:56
Je ne comprends pas j'ai ça:
nom = JOptionPane.showInputDialog("Entrez votre nom") ;
où nom est déclaré en tant qu'attribut de ma classe en String, quand je l'affiche j'ai ça: Joueur@633e5e.
Je ne comprends pas pourquoi?
Si quelqu'un a une idée...
nom = JOptionPane.showInputDialog("Entrez votre nom") ;
où nom est déclaré en tant qu'attribut de ma classe en String, quand je l'affiche j'ai ça: Joueur@633e5e.
Je ne comprends pas pourquoi?
Si quelqu'un a une idée...
A voir également:
- [JAVA] problème avec 'showInPutDialog'
- Waptrick java football - Télécharger - Jeux vidéo
- Jeux java itel football - Télécharger - Jeux vidéo
- Java apk - Télécharger - Langages
- Waptrick java voiture - Télécharger - Jeux vidéo
- Java décompiler - Télécharger - Langages
2 réponses
Utilisateur anonyme
3 janv. 2003 à 08:38
3 janv. 2003 à 08:38
Bizarre... quand j'essaie ceci ça fonctionne.
package joption;
import javax.swing.*;
public class JOptionTester {
private String nom;
public JOptionTester() {
}
public void test(){
nom = JOptionPane.showInputDialog("Entrez votre nom") ;
System.out.println("Entrée: " + nom);
}
public static void main(String args[]) {
JOptionTester tester = new JOptionTester();
tester.test();
}
}
???
package joption;
import javax.swing.*;
public class JOptionTester {
private String nom;
public JOptionTester() {
}
public void test(){
nom = JOptionPane.showInputDialog("Entrez votre nom") ;
System.out.println("Entrée: " + nom);
}
public static void main(String args[]) {
JOptionTester tester = new JOptionTester();
tester.test();
}
}
???
choubaka
Messages postés
39422
Date d'inscription
jeudi 4 avril 2002
Statut
Modérateur
Dernière intervention
28 mars 2025
2 104
3 janv. 2003 à 08:56
3 janv. 2003 à 08:56
vraiment bizarre en effet
bonané hacky !!!!
Choubanimal :
"Le poilu poilant au poil"
bonané hacky !!!!
Choubanimal :
"Le poilu poilant au poil"