JDK-4103078 : Relative Positioning in JEditorPane
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.2.0
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 1998-01-09
  • Updated: 2022-07-14
  • Resolved: 1998-05-24
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.2.0 swing1.1Fixed
Related Reports
Relates :  
Description

Name: rm29839			Date: 01/09/98


If I create a JEditorPane using

    JEditorPane pane = new JEditorPane(
       "myDocument.html#offset");

the text is not positioned at the position
in the HTML file where the anchor is defined:

     <A NAME="offset>Here my text should start</A>

Instead the text starts at the top of the file.
(Review ID: 22703)
======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: generic FIXED IN: swing1.1 INTEGRATED IN: swing1.1
14-06-2004

WORK AROUND Name: rm29839 Date: 01/09/98 No workaround ======================================================================
11-06-2004

EVALUATION This only applies if the content being presented has hyperlinks in it (eg html). The HTMLEditorKit should position it's associated component to the anchor point after loading a particular page. There is currently no code implemented to do this. timothy.prinzing@eng 1998-03-16 I've added a method scrollToReference which does relative positioning if the current document is of type HTMLDocument (now that the the default html document type is public). Subclasses can reimplement this to handle other formats that are unknown to the swing text package. timothy.prinzing@eng 1998-05-23
23-05-1998