Hi,
I have an unusual setup whereby I have multiple JTextPanes
within a JPanel that is then placed into a JScrollPane.
Each JTextPane contains a Styled Document.
My problem occurs when I want to place and focus the cursor
in one of these JTextPanes.
Under Linux when I use the the sequence of commands:
SwingUtilities.invokeLater(new Runnable() {
public void run() {
jTP.requestFocus();
jTP.getCaret().setDot(curPass);
jTP.getCaret().setVisible(true);
}
});
The cursor focuses on the correct JTextPane (jTP) and the
cursor is visible to the user.
However under Windows NT/2000 the cursor is placed in the
correct JTextPane but it is not until the user
performs an action (like pressing a key) that the JTextPane
(with its cursor) is visible to the user.
Has anyone come across any similar problems to this or can
offer any advise?
Thanks,
Justin.
_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing