Article View: borland.public.jbuilder.java.swing
Article #12980JTextPane, Documents and Styles confusion
From: Joe Fessler
Date: Wed, 14 Oct 1998 00:00
Date: Wed, 14 Oct 1998 00:00
22 lines
1543 bytes
1543 bytes
Could anyone provide guidance on the usage of the above mentioned classes? I've tried to follow the examples in Swing 1.0.3 but I believe I'm up against my fundamental ignorance of how these things relate to one another and how they operate internally. My overall goal is to place a JTextPane in an applet and fill that JTextPane with formatted text (bold, italics, color, etc.). The text will be obtained from CORBA objects and contain no initial formatting. As the text is built up, the formatting would be applied for rendering in the JTextPane. No editing of the contents by the user is required, however I envision the applet responding to mouse events within the pane (e.g. if a person's name is formatted with underline, resembling an http link, an e-mail composition window might be launched). This would be like having a low-end browser inside the applet. If anyone could provide insight on this effort or direct me to a tutorial on the material, it would be most appreciated. Thanks. Regards, -Joe
Technical Details
Message-ID:
<362511B7.FBF72959@LocalIP.net>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,e5c1fce54a0f6ab9,start X-Google-Attributes: gid111d45,public From: Joe Fessler <jfessler@LocalIP.net> Subject: JTextPane, Documents and Styles confusion Date: 1998/10/14 Message-ID: <362511B7.FBF72959@LocalIP.net> X-Deja-AN: 401115321 Content-Transfer-Encoding: 7bit Organization: Another Netscape Collabra Server User Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing