|
Displaying text in a JTextField after pressing a button
Having a problem with getting text to display in a text field after a button is pressed.
I've tried useing the getText and setText but I don't think I've done it properly.
This is what I'm useing:
JTextField showHumanScores = new JTextField(15);
String fieldHumanScores = showHumanScores.getText();
fieldHumanScores.setText((humanHand[0]));
Is this correct and my problem lies somewhere else?
Anything to do with humanHand being an int?
Last edited by RLRExtra : 01-17-2008 at 10:35 PM.
|