-
How must I initialize a Graphics object?
Hi,
I've a problem with Graphics Abstract class;
how must I do to initialize a Graphics object?
I must execute this code:
Graphics gr;
gr.drawString("Image",30,0);
gr.drawString("not",30,30);
gr.drawString("Found",30,60);
image.paintIcon(null,gr,0,0);
the compiler returns my the error:
"gr not initialized"
How can I do to initialize this last?
Thank.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks