|
Hi,
Thank you for your answer. Do you mean whether the applet main class makes use of the "paint(Graphics g)" method? If so, the answer is no.
I've managed to isolate the problem further. What happens is this:
An event is sent from a server to the java applet/client. Among these, a button is disabled, and a html string is read into a JEditorPane. I've discovered that commenting ONE of these actions out, the applet runs fine. That is, it can either disable the button OR read the string into the JEditorPane, but not both - then it freezes. The offending code lines are:
EditorKit kit = getEditorKit();
StringReader reader = new StringReader(html);
Document doc = getDocument();
kit.read(reader, doc, doc.getLength()); //A
-------------------
Canvas.setEnabled(false) //B
I have to comment out either (A) or (B). If both (A) and (B) are active, then the applet freezes, when executing (B). If one or both are commented out, the applet runs fine.
Any ideas? All help very much appreciated!
|