This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTextField

 
dubey vandana
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i hv some JTextField(jtf)s in which i hv some integer values. i want tht just by using "backsapce key" whatever value i delete that should get stored in that value even without pressing "enter" key. i am not able to acheive this by actionPerfomred neither by keyListener.
pl guide wth some egs.
Also i want that frm anywhere i should be able to cut, insert append the integers in that jtf and it should get stored.
pl rasap
thanx
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Dubey,
The code below might help you out.

Enjoy,
Manfred.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic