Hi, In my swing interface I have a jtextfield where user can give his input. how do i do this? i tried setEditable(true). but it is not working. i'm executing this on solaris. is it necessary to add a listener to jtextfield for getting input from user? any help on this?
Hi Don, You will have to add an actionListener to an button, say "OK" button. And on its clicked event, you will have to do a .getText method for that textfield. You can refer my post "How to validate text field". I had a problem of validating the input in the textfield. It isnt solved still. But in that post you will get the corresponding code, which I think might help you. Let us know how it goes. Thanks Mandar