Hello
I make java application that read String from text field and convert it to another String
it may consider type of encoding .
but i want process character by character when user still typing on the the text field.

i.e.
a-->s
ah-->sd
ahm-->sdf
ahme-->sdfg
ahmed-->sdfgh

any one can help.
or suggest reading some thing i will be grateful
yours
Ahmed

Recommended Answers

All 4 Replies

Since you'll be doing a lot of string manipulation, and strings are immutable, I would consider using a list capable of insert.

Where this "change" will take place? Where will you be inserting the string? At a console or at a text field at a GUI ?

Get the text field's Document getDocument() then add a DocumentListener to that - the DocumentListener can respond to each char as it's entered.

on GUI

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.