aspose file tools
The moose likes Swing / AWT / SWT and the fly likes pen problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "pen problems" Watch "pen problems" New topic

pen problems

Sam Short

Joined: Oct 12, 2003
Posts: 1
I have copied this code out of the book and it gives a compile error saying that it can not recognize pen.drawstring(companyName, x += 20, y += 20);

Can someone tell me why???
Thanks in advance,
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24189

Hi Sam,
Welcome to JavaRanch!
Java is case sensitive. drawstring() should be drawString().

[Jess in Action][AskingGoodQuestions]
I agree. Here's the link:
subject: pen problems