Did you create a new instance of "a" before calling the paint method? I noticed that your paint() method wasn't declared as a static one but that seems to be how you're trying to use it. Just a guess Steve Cohen wrote: > I realize this may not be the appropriate place for this question but why can't > I do this? > > //file a: > > import java.awt.*; > public class a { > void paint (Graphics g) { > ... > } > > } > > //file b: > import java.awt.*; > import a; > > public class b { > public a A; > ... > void paint (Graphics g) { > A.paint(g); > } > } > > The compilation of file b fails with an error message about an unknown method > paint( java.awt.Graphics ) > > WHY? This code compiles fine if it is all in one file
begin: vcard fn: Robert Ritchy n: Ritchy;Robert org: BDM Denver adr: 1999 Broadway - Suite 2000;;;Denver;CO;80202;USA email;internet: [EMAIL PROTECTED] title: Software Development TL tel;work: 303-672-8917 / 247-1150 ex 8917 x-mozilla-cpt: bdmtech.com;2 x-mozilla-html: FALSE version: 2.1 end: vcard