I am wondering if it is possible to fix the style of StyledDocument
in java. According to my observation, the style will change depending on style of previous position.
So I can key in the content with my defined style without being affected by the style of previous position.
Many thanks for the response!