
Signature
And in short, I was afraid.
> > I've got a problem: when I'm viewing a HTML document that
> > contains frames via a jEditorPane, the getCaretPosition method
[quoted text clipped - 9 lines]
> descendants of the JEditorPane displaying the frameset. Each frame
> has its own caret and thus its own caret position.
If that's so, how is it possible to query a caret position from a particular
frame?
Christian Kaufhold - 23 Jan 2004 17:17 GMT
>> > I've got a problem: when I'm viewing a HTML document that
>> > contains frames via a jEditorPane, the getCaretPosition method
[quoted text clipped - 12 lines]
> If that's so, how is it possible to query a caret position from a particular
> frame?
Search for its editor pane: Find the element represent the frame
(AttributeSet.NameAttribute == HTML.Tag.FRAME)
find the corresponding ComponentView, use its getComponent, then
search until you find its JEditorPane.
Christian

Signature
And in short, I was afraid.