Thanks, copeg. I will check out the reading and go from there. :)
Type: Posts; User: wltrallen2
Thanks, copeg. I will check out the reading and go from there. :)
I hope this is an SSCCE. I think you should be able to run this and recreate my results. Thanx again for any help. :)
import acm.program.*;
import java.awt.event.*;
import javax.swing.*;
...
Pardon my newbie-ness... what's an SSCCE? Also, is there a different way to add the ActionListener to the JTextField specifically? I thought I had already added it properly as demonstrated in the 1st...
Thanks, copeg. But when I run the program, I do click in the JTextField, type a string, and then hit ENTER. Nothing happens. When I hit the JButton that has the same CommandAction, then the event...
Hello, all. I have the following code in my init() method:
friend = new JTextField(TEXT_FIELD_SIZE);
friend.setActionCommand("Add Friend");
add(friend, WEST);
add(new JButton("Add...