Highlighted words | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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?

16th Dec 2018, 12:40 PM
Lighton
Lighton - avatar
4 Answers
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
16th Dec 2018, 1:17 PM
voidneo
+ 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.
16th Dec 2018, 1:16 PM
Anna
Anna - avatar
0
What is this? IDE? I want to develop my own for practice. I'm already using netbeans
16th Dec 2018, 12:46 PM
Lighton
Lighton - avatar