Does anyone know how to change the colour of text in Java? I'm getting a lot of input from my user in a program I'm writing, and it gets kinda difficult to follow with it all being one colour. Any help would be greatly appreciated =D
Rete
0
Newbie Poster
Recommended Answers
Jump to PostHi everyone,
You can use either a JEditorPane or a JTextPane and highlight the
selected text programaticlly and apply the required color font. For more information see the JTextPane Api and also the below link
All 2 Replies
Reply to this topic
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.