aspose file tools*
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: 10248
    
    8

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: 19670
    
  18

You didn't define drawCenteredString in this class.


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

Joined: Jun 13, 2009
Posts: 2172
    
    7
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