Hi: I am writing a simple application. I have crystalPanel.add(new JLabel("Product type")); typeField = new JTextField(5); crystalPanel.add(typeField); I would like to have a FINISH button to end the input. Please let me know how to add the FINISH button to end the input from multiple JTextFields. Thanks.
Hello, First, someone (like me) is going to give you a hard time about not following the Naming Policy here at JavaRanch. So, you might want to re-register and change your name. Otherwise, I'm not sure that I'm understanding you correctly. Perhaps what you want to do is JTextField.setEditable(false) to not allow any further changes to the JTextField. At any rate, Good Luck. -Dirk Schreckmann
Per Dirks suggestion jiwang, Please change your displayed name to be compliant with JavaRanch's naming policy. Your displayed name should be 2 separate names with more than 1 letter each. We really would prefer that you use your REAL name. [ March 01, 2002: Message edited by: Cindy Glass ]
"JavaRanch, where the deer and the Certified play" - David O'Meara