I have a JTextPane and when a user clicks a button, I want certain portions of the text to "hide"
StyleConstants.setFontSize(style,0);
StyleConstants.setForeground(style,textPane.getBackground());
accomplished this perfectly, however it is also raising the following error:
Java[20425] : CGAffineTransformInvert: singular matrix.
Is there a way to accomplish what I'm doing (set font size to 0) without getting this error?
Thanks!