Well, we would want to tackle this in steps. So I'd say the first thing, considering this is the swing forum, is to get the text from a JTextField. One good place to start is the API for the JTextField. BTW, you should bookmark the API. It will become your best friend. Note there is a getText() method you can use to get the text. Store that value in a String.
The next part, getting a value from a database/file is a different bird all together. You should ask how to do that in the appropriate forums. We have one for JDBC and I/O & Streams. Decide which you want to tackle, do a little research, try some sample code, then come back and ask us more specific questions about where you are stuck.
Joined: Jan 10, 2010
ok, thnx a lot guys!!!
Joined: Oct 13, 2005
You're welcome But, it's not thnx but thanks; read this