🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #2499

charWidth Question

#2499
From: James A. Schulz
Date: Fri, 17 Nov 2000 00:00
16 lines
829 bytes
Given that I am running JB4 and have the following;

import java.awt.Font;
import java.awt.FontMetrics;
.
.
.
public void paint(Graphics g){
    int x = getFont().charWidth('W');
}

Why does the compiler give the Method Not Found error for charWidth?

thanks,

James
Technical Details
Message-ID: <8v55kg$he62@bornews.inprise.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,e95a61705643e9b2,start
X-Google-Attributes: gid1089d0,public
From: "James A. Schulz" <jaschulz@wiseware.com>
Subject: charWidth Question
Date: 2000/11/17
Message-ID: <8v55kg$he62@bornews.inprise.com>
X-Deja-AN: 695009766
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Reply-To: "James A. Schulz" <jaschulz@wiseware.com>
Newsgroups: borland.public.jbuilder.java.api