Component requirement  
Author Message
Inverno





PostPosted: 2004-7-29 14:54:00 Top

java-programmer, Component requirement
"David McCallum" <email***@***.com> ha scritto nel
messaggio news:q3ooc.4353026$email***@***.com...
> I'm looking for JTextField with a (...) button to the left of it, the idea
> being a user can type something, the press the button and possibly use
what
> was typed in a method. The only thing I can think off calling it is
> ButtonEdit, then name used in Delphi
>

In the button_ActionListener you use yourJTextField.getText() to retrieve
the text present in it.

public void button_ActionListener(ActionEvent e){
String s=yourJTextField.getText();
//do whatever you need to do with 's'
}