Article View: borland.public.jbuilder.java.swing
Article #12894Re: JLabel font size
From: Vasudevan Srinivasan
Date: Thu, 15 Oct 1998 00:00
Date: Thu, 15 Oct 1998 00:00
48 lines
2116 bytes
2116 bytes
Hi, yes, as soon as i posted this msg, i tried both repaint() and invalidate() functions. both dont solve the problem. is there anything like the "autosize" property/method ? actually, i think the repaint does happen as soon as property is changed. or else how could the text be redrawn with the font size? or lets say, if i extend the JLabel can i override some function which would allow me to display full text avoiding the "...". which function of JLabel does this thing exactly? Thanks for any info Richard Wilkman wrote: > Vasudevan: > > In the hintsandtips.txt is a tidbit that mentions that JFC items don't > repaint automaticly when a property set happens. Usually all you need > to do after your setText() is a repaint(). > > The trick is a little less dependable in Applets, but try that first. > > -Rich > > Vasudevan Srinivasan wrote: > > > > Hi, > > Im setting the size of a JLabel dynamically from an applet. When the > > size grows the end of text is replaced by "...". is there any property i > > need to set ? > > Thanks. > > -- > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > Rich Wilkman > Senior Quality Assurance Engineer > Borland JBuilder Team > > If you see something that looks like an opinion up there, > it's mine and mine alone. > > Mail sent to me from the newsgroups won't bounce but will > be ignored. If I have time, I'll respond, but you have > a better chance if you confine your posts to the newsgroups > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID:
<3626136A.5C667519@netrisk.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3626085B.E30108BB@netrisk.com> <36260F6D.F89CFB33@inprise.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,43e13e58b8f4a43b X-Google-Attributes: gid111d45,public From: Vasudevan Srinivasan <vasudevan@netrisk.com> Subject: Re: JLabel font size Date: 1998/10/15 Message-ID: <3626136A.5C667519@netrisk.com> X-Deja-AN: 401378978 Content-Transfer-Encoding: 7bit References: <3626085B.E30108BB@netrisk.com> <36260F6D.F89CFB33@inprise.com> Content-Type: text/plain; charset=us-ascii Organization: NetRisk Inc. Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing