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 an other application I have open. Then when I give focus back to my browser and bring it to the front again, the change has been made.
For example, my JTextPane has no blinking cursor. I click on the JTextPane and nothing "appears" to happen. I click on another program in my taskbar, then click back on my browser, and the cursor is waiting at the end of my document. Keep in mind here that the cursor is not blinking. Well then I can hit my backspace key, for example, 10 times. Nothing appears to happen. But I can click on another app I have open, then return to my browser where the applet is located, and 10 characters from where my non blinking cursor was located, have been removed. I'm new to swing but it seems to me like I should not have to repaint or refresh what is basically a text area. I have also converted this applet to an application and it works just fine and dandy. No repaint or refresh issues at at all. Can someone who has maybe used a JTextPane maybe pass along some advice what is happening here. I can post some code but it's pretty basic really so I thought I would hold off for now.