i just need a quick code hack to do the following:

popup a window having the text "Enter Name", a text field , and a 2 buttons with "OK" and "Cancel", with the textfield updating a String variable if ok is entered, not updated if Cancel is entered.

Sucks to be a C++ adept programmer thrown into an upper division java course without the basics down