Article View: borland.public.jbuilder.java.swing
Article #10799How to know the size in pixels???
From: David Vásquez Estrada
Date: Wed, 11 Aug 1999 00:00
Date: Wed, 11 Aug 1999 00:00
13 lines
867 bytes
867 bytes
Hi, I�m trying to know the size in pixels of a string that will be the text of a JLabel. At this time I can know the number of characters and the current font size, but the result of: (number of characters * current Font size) is bigger than the required. Any suggestions? Thanks in advance David
Technical Details
Message-ID:
<37B18BC5.FDC58523@ucbcba.edu.bo>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 111d45,db95dab94e8fcb9e,start X-Google-Attributes: gid111d45,public From: David Vásquez Estrada <vasquezd@ucbcba.edu.bo> Subject: How to know the size in pixels??? Date: 1999/08/11 Message-ID: <37B18BC5.FDC58523@ucbcba.edu.bo> X-Deja-AN: 511458206 Content-Transfer-Encoding: 8bit Organization: Another Netscape Collabra Server User X-Accept-Language: en Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing