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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "pen problems" Watch "pen problems" New topic
Author

pen problems

Sam Short
Greenhorn

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
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

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


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: pen problems