Article View: borland.public.jbuilder.java.swing
Article #1801Re: problem using html with a jLabel
From: Rich Wilkman
Date: Sun, 27 Jul 2003 17:27
Date: Sun, 27 Jul 2003 17:27
29 lines
2043 bytes
2043 bytes
Kostas: Wow! That goes back a ways (way before JFC allowed HTML). The < character is used by the UI Designer as a delimiter, so it needs to be escaped and the escapeing used is < (hence the << for each < you want in a string). However it should be correct in the source code and at runtime. Forgetting what it looks like in the UI designer for the moment, how is it in the source file and at runtime? -Rich Kostas wrote: >Hi all, >I try to fill the text property of a jLabel with this html code... ><HTML><BODY><B>Hello!</B></BODY></HTML> >When i press the Enter key to confirm, the text property is changed >automatically with this values... ><<>HTML><<>BODY><b>Hello!<<>/B><<>/BODY><<>/HTML> >The result in the designer screen is not the correct, the jLabel now is >displayed like "[]Hello!" (the "[]"characters is a little square >character ). >What am i doing wrong? >Thanks for advance, kostas > > > > >
Technical Details
Message-ID:
<3F240B95.3000601@formlessvoid.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f23f628@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,f4c19049df5d15f0 X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2003-07-27 10:39:28 PST Message-ID: <3F240B95.3000601@formlessvoid.com> Date: Sun, 27 Jul 2003 10:27:49 -0700 From: Rich Wilkman <richw@formlessvoid.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing Subject: Re: problem using html with a jLabel References: <3f23f628@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 63.249.85.97 X-Trace: newsgroups.borland.com 1059326870 63.249.85.97 (27 Jul 2003 10:27:50 -0700) Lines: 30 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail