URL « JEditorPane « Java Swing Q&A





1. creating a URL object with a relative path    stackoverflow.com

I am creating a Swing application with a JEditorPane that should display an HTML file named url1.html stored locally in the page folder in the root folder of the project. I have ...

2. Java - Cannot load the same url and have it displayed in editor pane twice?    stackoverflow.com

This is the code Ive used to display the contents of a url in an editor pane

    import javax.swing.*;
    import java.awt.event.*;
    import ...

3. url tooltip in JEditorPane    coderanch.com

5. setPage(URL) in JEditorPane doesn't work with j2sdk 1.4.0    coderanch.com

Hello everybody, within an application I use JEditorPane.setPage() to call an URL from a Website in the Internet. While working with j2sdk 1.4.2, there're no problems. After testing the programm with j2sdk 1.4.0 it comes out that the setPage()-call causes a NullPointerException, nothing is showed in the JEditorPane... Do anybody know some workaround for this bug, because I need to run ...

7. JEditorPane.setPage(URL url), then I want to clean up HTML, how?    forums.oracle.com

/** * Workaround for Bug ID: 4695909 in java 1.4, fixed in 1.5 * JEditorPane fails to display HTML BODY when META * tag included in HEAD section. * * * * * * * * @param text html to strip. * @return same HTML text w/o the META tag. */

8. JEditorPane and URL's    forums.oracle.com

I have a package that I've included some basic webpages in (as a help file) to be used in a JEditorPane. The directory of the jar is P:\work\project\dist\java.jar (not real names). The html files are in Package.help part of the package. When I send a url to the JEditorPane it always throws FileNotFoundException. I did a test and it said it's ...