Article View: borland.public.jbuilder.java.api
Article #1675String size (In pixels)
From: Hanan Hermon
Date: Wed, 31 Oct 2001 12:43
Date: Wed, 31 Oct 2001 12:43
17 lines
1265 bytes
1265 bytes
Hi, How can I get the size of a string in pixels ? I'm writing a report and I would like to the width and height of each column and row do the text that I will print will not be cutoff. I would like to write methods that returns the max width\height of a string array: maxWidth = getMaxWidth(String[] stringList); maxHeight = getMaxHeight(String[] stringList); Thanks in advance, Hanan Hermon,
Technical Details
Message-ID:
<3bdff245$1_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.media.kyoto-u.ac.jp!newsfeed.mesh.ad.jp!uunet!osa.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,e6a73eda7142ac0f,start X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2001-10-31 04:46:11 PST From: "Hanan Hermon" <hananh@radcom.co.il> Newsgroups: borland.public.jbuilder.java.api Subject: String size (In pixels) Date: Wed, 31 Oct 2001 14:43:38 +0200 Lines: 19 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 NNTP-Posting-Host: 192.116.176.125 Message-ID: <3bdff245$1_1@dnews> X-Trace: dnews 1004532293 192.116.176.125 (31 Oct 2001 04:44:53 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.media.kyoto-u.ac.jp!newsfeed.mesh.ad.jp!uunet!osa.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews