Java Applets   ->   Applets


Java JTextPane
Java Tip 109: Display images using JEditorPane - Java World

To display HTML in a JEditorPane, you would normally specify a URL that sets the document base of the HTMLDocument. However, if the HTML text is not stored in a file locally or on the Web, you cannot set the HTMLDocument document base. That becomes a problem when the <IMG> tag uses a relative path to specify the image location, but it can be overcome by modifying JEditorPane and its associated classes. (2,000 words)

Swingin' Java: Doing it in style

In the final part of our miniseries on Swing, we look at working with Swing's styled text components -- JEditorPane and JTextPane.

Enumerating the Paragraphs of a JTextPane Component - Java Source Code

The contents of a text component are stored in a Document object that in turn,breaks the content into a hierarchy of Element objects. In the case of a text pane,the content elements contain runs of characters. A run of characters is a contiguous span of characters with the same attributes. Adjacent runs of characters will have different sets of attributes. If the attributes of one run is modified so that it becomes identical to an adjacent run,both runs will be combined into a single run. Adjacent runs that make up a line of text (a contiguous span of characters terminated by a single newline) are stored under one paragraph element. In other words,a paragraph element will have at most one run (the last run) with a single newline (only the very last line of the contents may lack a newline). Note that the adjacency rule does not apply to runs in different paragraph elements. Finally,all paragraph elements in a text pane are stored under a single section element.

Difference between JEditorPane and JTextPane (Legacy Java Answers Forum)

Contains a post to the February 2002 topic of artima.com's Java Answers discussion forum, where you can ask and answer Java programming questions.

Preventing JTextPane from Word Wrapping (Legacy Java Answers Forum)

Contains a post to the November 2000 topic of artima.com's Java Answers discussion forum, where you can ask and answer Java programming questions.

Java Tips - How to use a JEditorPane to display the contents of a file on a web server

Java Tips -- Java, Java, and more Java, How to use a JEditorPane to display the contents of a file on a Web server

Dynamic Java

Dynamic Java:A tool for video conversion, splitting and editing. Convert many video formats such as MPG,OGM,ASF,WMV,VCD,DAT,MPEG to AVI file. It changes the frame size, frame rate, video compression co...

Development Tools : SetVB2Java (Visual Basic Forms to Java Migration)

Development Tools : SetVB2Java (Visual Basic Forms to Java Migration), JvPrinter, JvPrinter, Table Library, MP3 SPI for Java Platform, ElegantJbeans - GUI Beans, Elegantjbeans - Input Mask, JAdTable, JAdTable, Java Date Picker

Java Swing GUI builder by XML, Example for LayoutManager of Swing GUI

Java Swing GUI builder by XML. Free Source code examples for LayoutManager of Java Swing GUI. How to use JToolBar with BorderLayout. How to align JComponents by GridLayout and BoxLayout.

Add a spell checker to your Java applications, applets, and servlets with Sentry Spell Checker

Sentry Spell Checker provides everything you need to add a full spell check capability to your Java applications and applets on any platform.