This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes drawCenteredString Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "drawCenteredString" Watch "drawCenteredString" New topic
Author

drawCenteredString

yuen tong
Greenhorn

Joined: Oct 26, 2009
Posts: 1
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

Joined: Jul 26, 2007
Posts: 10747
    
    9

Yuen,
Welcome to the Ranch.

If you can post your stack trace, we can help point you in the right direction.

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 20128
    
  30

You didn't define drawCenteredString in this class.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2381
    
    8
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: drawCenteredString
 
It's not a secret anymore!