<Swing Dev> [11] RFR JDK-8199900:JEditorPane scrollToReference should support html5
Sergey Bylokhov
Sergey.Bylokhov at oracle.com
Wed Mar 28 15:17:21 UTC 2018
Hi, Prasanta.
On 22/03/2018 03:12, Prasanta Sadhukhan wrote:
> Not sure of how to approach for a testcase for this html5 addition.
You can create JEditorPane inside JScrollPane, then set the type of
content to "text/html" and set the text of the JScrollPane to an html
which contains lots of <br> tags and one <a> tag at the end. Then you
can request the position of scroll bar from JScrollPane. You can test
both cases when "name=xxx" is set or when "id=xxx" is set.
--
Best regards, Sergey.
More information about the swing-dev
mailing list