File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT / JFace and the fly likes JTextField Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT / JFace
Reply Bookmark "JTextField" Watch "JTextField" New topic
Author

JTextField

dubey vandana
Greenhorn

Joined: Nov 22, 2001
Posts: 14
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

Joined: Jan 09, 2001
Posts: 1492
Hi Dubey,
The code below might help you out.

Enjoy,
Manfred.
 
 
subject: JTextField
 
Threads others viewed
Swings + Event handeling
InputVerifier, Document or DocumentFilter
Passing data between JFrame & JDialog
JTextField + Listener
How to track backspace key?
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com