Win a copy of Learning Regular Expressions this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Help help  RSS feed

 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i am writting a project presently but i am having a few difficulties with the textfield. i am using JTextField. in the process of enteringdata, i need
to retrieve the data from a textfield once its been entered and calculate it and resend the data to another textfield on the same Gui, before clicking on a button and sending it to the database. pls how do i go about with the textfields manipulation? its Jtexfield and i know i will not use a textlistener but an actionlistener
someone pls help
all answers are appreciated
 
Ranch Hand
Posts: 995
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am really sorry that I have to say this the 3rd time: the Swing tutorial from SUN will give you a good entry point: link


I do not intend to divagate but doing the homework by asking people around is not a good path to understanding.

--
./pope
[the_mindstorm]

Ask smart questions
[ January 18, 2005: Message edited by: Ali Pope ]
 
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by kelly devon:
hi,
i am writting a project presently but i am having a few difficulties with the textfield. i am using JTextField. in the process of enteringdata, i need
to retrieve the data from a textfield once its been entered and calculate it and resend the data to another textfield on the same Gui, before clicking on a button and sending it to the database. pls how do i go about with the textfields manipulation? its Jtexfield and i know i will not use a textlistener but an actionlistener
someone pls help
all answers are appreciated



As Ali said, self-learning and trying to code yourself might be better than spoon-feeding method... So I can give you a hint... Try to use DocumentListener, which works very well to check every single word that you type into the JTextField...
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!