Flickering of a JEditorPane in a JScrollPanel
Posted on 2004-08-02
Hi Experts, well I have a problem. I have implemented an html JEditorPane in a JScrollPanel, and it works fine, but the problem is I am adding HTML code to this JEditorPane . I have tried making it doublebuffered, playing with the Opaqueness, and even tried overloading paint, but that is only called when the JApplet is drawn or the screen is refreshed. I get a problem when I post quickly to the JEditorPane the scrolling starts scrolling, but it flickers and I can see images from above in the middle of the screen, which is odd since they are only on the sides. If I add things slowly, it still happens only occasionally. Is there a way maybe to override the paint function of the JEditorPane? Please help, thanks in advance.