Article View: borland.public.jbuilder.java.swing
Article #11201JEditorPane: Hyperlinks inside of HTML-Document
From: detlef oertel
Date: Sat, 26 Jun 1999 00:00
Date: Sat, 26 Jun 1999 00:00
28 lines
1076 bytes
1076 bytes
Hello,
I want to use JEditorPane to display a online Helpfile.
With
void jEditorPane1_hyperlinkUpdate(HyperlinkEvent e)
{
JEditorPane pane = (JEditorPane) e.getSource();
try
{
pane.setPage(e.getURL());
}
catch (Throwable t)
{
t.printStackTrace();
}
}
i am able to load other HTML-Files. But if the URL points to a position
inside of the document (for Example "#3.Header") it only reloads the
document and shows it from the top.
Can anybody tell me what I have missed ?
thanks a lot.
detlef oertel
oertel@uib.de
Technical Details
Message-ID:
<37750024.BC29C69@uib.de>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,441d9d1e348f9542,start X-Google-Attributes: gid111d45,public From: detlef oertel <oertel@uib.de> Subject: JEditorPane: Hyperlinks inside of HTML-Document Date: 1999/06/26 Message-ID: <37750024.BC29C69@uib.de> X-Deja-AN: 494169550 Content-Transfer-Encoding: 7bit Organization: uib X-Accept-Language: de, en Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing