Article View: borland.public.jbuilder.java.swing
Article #1540Re: Displaying HTML pages in GUI application
From: Tad Frysinger [TeamB]
Date: Tue, 28 Oct 2003 15:23
Date: Tue, 28 Oct 2003 15:23
30 lines
2106 bytes
2106 bytes
Denis Sarrazin wrote: > Never mind. JTextPane does the job admirably well by setting its contentType to text/html. > > -D > > On Sat, 25 Oct 2003 12:48:33 -0400, Denis Sarrazin <dsarrazin A T cyberus D O T ca> > wrote: > > >>I'm trying to learn how to develop with Java. My goal would be to display an html page >>that I generate from an XML/XSL. >> >>Is there a swing (or other) control in Java that would let me display an html page that I >>generate on the fly? if not, is there a control that lets me display an existing html page >>(I could simply store the generated page in a temporary location if I need to)? >> >>I'm using JBuilder 9 Personal. >> >>-D > > There are lots of limitations to what JTextPane can actually render appropriately. As long as your HTML is very simple, it should work, but even moderately complex pages can start to introduce problems. There hasn't been any significant update to this part of the text package in quite a while. -- Tad Frysinger [TeamB]
Technical Details
Message-ID:
<3f9e8a1c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<k7alpvgimdpbeur62pshf5d1ojrb2lhil0@4ax.com> <78dlpvofllcj1o6ch5rrqpm2jcivpro4ai@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,1578ccfb3c302a74 X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2003-10-28 07:40:27 PST Date: Tue, 28 Oct 2003 08:23:35 -0700 From: "Tad Frysinger [TeamB]" <tfrysinger@earthlink.net> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing Subject: Re: Displaying HTML pages in GUI application References: <k7alpvgimdpbeur62pshf5d1ojrb2lhil0@4ax.com> <78dlpvofllcj1o6ch5rrqpm2jcivpro4ai@4ax.com> In-Reply-To: <78dlpvofllcj1o6ch5rrqpm2jcivpro4ai@4ax.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.165.213.196 Message-ID: <3f9e8a1c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1067354652 67.165.213.196 (28 Oct 2003 07:24:12 -0700) Lines: 31 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail