Highlighted words | Sololearn: Learn to code for FREE!


Highlighted words

I want to develop an text editor for Java with java that can change color of java keywords. I have no idea how to start and what to do. Can you recommend anything? What java lib should I use? Awt swing or fx?

12/16/2018 12:40:05 PM


4 Answers

New Answer


You need to learn to work with the so called styled document, it's exactly what you're looking for. It's a styled textarea, where you can style individual chars, words, or whatever you need


Don't get me wrong, but if this is your project (and I think it's pretty advanced), it's your job to find out how to realize it. Otherwise it's like asking "I want to build my own car - please explain every single step because I have no idea what to do". If you have specific (!) questions, feel free to ask.




What is this? IDE? I want to develop my own for practice. I'm already using netbeans