Refresh « JTextPane « Java Swing Q&A





1. JTextPane refresh issue    coderanch.com

Hi all, I'm having a problem with a JTextPane in an Applet. I think part of the problem may be using an Applet, I don't know. Anyway I have dropped a JTextPane in a JScrollPane so I can create documents with multiple style attributes. My problem is I can't see any modifications I make to the document without giving focus to ...

2. JTextPane -captured image refreshing problem    coderanch.com

Dear All, In my application it is necessary to capture the screen and save it as jpeg and display the same in a JTextPane using tag. I have made use of com.sun.image.codec.jpeg to save the image and it works fine. After starting the application the first picture is displayed well but the other pictures though get saved is not displayed ...