I have a JTextField (name), and a JButton (btnOK). When i type something into "name", and press enter, i can display the text using System.out.println(name);
But when select "btnOK" after writing something to "name", it won't display the contents of "name". Is there a simple explanation to this, or do you guys guys want to see some code.
Thanks in advance