It's not a secret anymore!
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
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: 10745
    
    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: 20080
    
  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: 2373
    
    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.
 
Have you checked out Aspose?
 
subject: drawCenteredString
 
It's not a secret anymore!