if that sun is giving you some headaches, there is a relatively easy way to give that sun almost every shape you like, by using a suitable shape, setting that as a clip, and then draw some rectangles. For instance:
PS: there was, recently, a big topic about the meaning of 'this'. As you see, the 'this' in this code does not refer to the instance of BufferedImagesAndShapes, but to the instance of the JPanel.
Liar, liar, pants on fire! refreshing plug:
ScroogeXHTML - small and flexible RTF to HTML converter library