[JDK1.6.0_01-b06] JeditorPane scrollToReference don't works fully

Hi all,

I encounter a problem on class javax.swing.JEditorPane, with the non static function scrollToReference( String reference ).

I had a HTML page like below:

<html><head>HEAD_DEF</head><body>

<a href="top"></a>

BODY_DEF

<a href="bottom"></a>

</body></html>

The page is displayed with a vertical scrollbar.

While scrollbar is bottom of page and I call scrollToReference("top"), the scrollbar is going up correctly and I can read top of page.

But while scrollbar is top of page and I call scrollToReference("bottom"), it doesn't move and I can't see the bottom of page.

I looked up on the internet and see this problem exist for some time in the JDK, can anything be done for that ?

Thank you,

Guillaume

[852 byte] By [scrollToReferencea] at [2007-11-27 6:41:16]
# 1
Sorry made a small mistake ; the HTML page is like below:<html><head>HEAD_DEF</head><body><a name="top"></a>BODY_DEF<a name="bottom"></a></body></html>
scrollToReferencea at 2007-7-12 18:10:48 > top of Java-index,Desktop,Core GUI APIs...