Realtime text in Java
Posted on 2003-03-15
I have written a drawing applet (somewhat like paintbrush). I would like to add real-time text typing to it i.e. the user should be able to click anywhere on the screen and type text on it character by character and see it simultaneously.
Currently, I am using a seperate dialog box that lets the user type in the text in a textfield, and the whole string is displayed on the string at a mouseclick using Graphics.drawString.
Any help is greatly appreciated.