I hope you can help me to solve my Problem.
I have two Strings and both are nearly equal.
String A is like: "Hello my friend"
String B is like: "Hello! my! friend"
Now I want to compare both Strings and write the result into another String. The result must be the String B with all diffent characters from String A in blue Color.
The "!" is for example. "!" could be any Kind of text including whitespaces.
I have to realize this with a JTextPane/StyledDocument
.
Can you give me some examples or ideas to get this?
Thank you.