Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

drawCenteredString

 
yuen tong
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am a newbie in java. after i compile the code i have 10 errors.
every error is regarding to the drawCenteredString.
can anyone help me with this?
thanks ;p

 
Maneesh Godbole
Saloon Keeper
Posts: 11193
15
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yuen,
Welcome to the Ranch.

If you can post your stack trace, we can help point you in the right direction.
 
Rob Spoor
Sheriff
Pie
Posts: 20669
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You didn't define drawCenteredString in this class.
 
Rob Camick
Ranch Hand
Posts: 2619
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Before asking your next question about why the code doesn't work, read the section from the Swing tutorial on Performing Custom Painting to learn how to do custom painting properly.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic