am developing a typingTutor quite similar to mavis beacon. i have designed the keyboard which highlights the press key on the syatem keyboard whenever a key is pressed. the program has a screen that displays moving text which the use has to type to match correctly.my problem is how to display multiple text color on the JTextArea such that when the user mistype a character it displays with a red foreground color while rightly typed character will display with green foreground color.JTextArea does not support multiple foreground color.so csn anyoine give me hint on hoew to fix this problem

Recommended Answers

All 2 Replies

Also the JTextpane supports marking up sections of the displayed text.

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.