Thread: Dialog Box
View Single Post
  #1 (permalink)  
Old 07-30-2007, 12:55 AM
uncopywritable uncopywritable is offline
Member
 
Join Date: Jul 2007
Posts: 13
uncopywritable is on a distinguished road
Dialog Box
Is there some more experienced Java programmer out there who could help me with this?

I want to make a simple dialog box that creates a text field and 3 buttons: "Cancel", "Clear" and "Ok". I want the "Cancel" button to exit the program, the "Clear" button to reset the string in the text field, and I want the "OK" button to check if there is any text in the text field and only close the dialog box and proceed to the actual program if this is true.

I have absolutely no idea how to do this and I can't find any examples that actually get strings from input dialog boxes.

I haven't been doing this very long! Any help I could get would be very much appreciated.
Reply With Quote
Sponsored Links