Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Help help  RSS feed

 
kelly devon
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
 
Alexandru Popescu
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 ]
 
Ko Ko Naing
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...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!