Win a copy of Hands On Software Engineering with Python this week in the Jython/Python 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

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...
 
Bring me the box labeled "thinking cap" ... and then read this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!