network2
Messages postés11Date d'inscriptionmercredi 17 février 2010StatutMembreDernière intervention 1 avril 2010
-
24 févr. 2010 à 09:33
network2
Messages postés11Date d'inscriptionmercredi 17 février 2010StatutMembreDernière intervention 1 avril 2010
-
24 févr. 2010 à 19:49
bjr,
j'aimerai bien récuper la valeur d'une zone de texte JTextField pour l'inserer dans ma base de données quand je click sur un bouton le probleme ce que il m'insere tjrs une valeur nulle ds ma base de donnees voici le code:
Tu cherches JTextField qui hérite de JTextComponent avec cette méthode en particulier :
getText
public String getText()
Returns the text contained in this TextComponent. If the underlying document is null, will give a NullPointerException. Note that text is not a bound property, so no PropertyChangeEvent is fired when it changes. To listen for changes to the text, use DocumentListener.
Returns:
the text
Throws:
NullPointerException - if the document is null
See Also:
setText(java.lang.String)