• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

pen problems

 
Sam Short
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sam,
Welcome to JavaRanch!
Java is case sensitive. drawstring() should be drawString().
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic