🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #471

Re: JEditorPane setPage problem

#471
From: Vander
Date: Wed, 06 Jul 2005 10:59
17 lines
1690 bytes
OK, sorry! I didn't work for both file:/ and http:/ protocols. Indeed it 
works, but differently than "setText()". The problem was that setText() 
formats the screen size by itself whereas setPage() requires a previous 
dimensioning of the component size.

Apoligize for the suspicions! ;)

Vander wrote:
> In my tests I found that JEditorPane.setPage( URL ) does not work for 
> urls of the "file:/" protocol. Can anybody confirm that?
> 
> No page is rendered. Interesting enough, when I load the content from 
> the *same* URL, convert it into a String and use JEditorPane.setText( 
> String ) the page displays perfectly.
> 
> Is this another prove of the poverish implementations of Sun?
> Suggestions for relieve are welcome!
Technical Details
Message-ID: <42cbb98a@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42cbaf1e$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,464fa7287a60aa69
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Wed, 06 Jul 2005 12:59:46 +0200
From: Vander <874505@gmx.de>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing
Subject: Re: JEditorPane setPage problem
References: <42cbaf1e$1@newsgroups.borland.com>
In-Reply-To: <42cbaf1e$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 84.152.218.214
Message-ID: <42cbb98a@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1120647562 84.152.218.214 (6 Jul 2005 03:59:22 -0700)
Lines: 18
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail