Exception in thread "AWT-EventQueue-0" java.lang.InternalError: Unable to Stroke shape (null) at sun.java2d.pipe.LoopPipe.getStrokeSpans(LoopPipe.java:268)
at sun.java2d.pipe.LoopPipe.draw(LoopPipe.java:213)
at sun.java2d.pipe.ValidatePipe.draw(ValidatePipe.java:136)
at sun.java2d.SunGraphics2D.draw(SunGraphics2D.java:2230)
........
Above is the exception I get while using text components(javax.swing.text)
I have searched a lot for this, but could not find any appropriate solution.
Is there any way by which the above error can be eliminated ?
Regards,
Joshua