Highlighted words | Sololearn: Learn to code for FREE!

0

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

Lighton

4 Answers

New Answer

0

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

+1

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.

0

https://www.google.com/url?sa=t&source=web&rct=j&url=https://netbeans.org/kb/73/java/editor-codereference.html&ved=2ahUKEwjQ4OzNr6TfAhWJUhUIHSsVBsgQFjAFegQIAhAB&usg=AOvVaw0kMknlKIM0iUIf_Dy214fD

0

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