how to work with MutableAttributeSet or SimpleAttributeSet
hi, im new to this forums, can i say hi here?
what im trying to figure out is how do i work with those 2(or 3 if counted StyledEditorKit)
im trying to do a simple typing program, after my char on my JTextPane matches my input from my KeyEvent, the colour will change to my preset colour(mark as correct) i can't figure out how do i use mutable or simple, i know how to go around with highlighting the next character with the caret by using forwardAction but i just don't know how to change the colour from black to anything
i appreciate it if you could show some codes depicting when my char is selected and how the method is call or used to change the colour, thank you in advance