Java

Moderators: zibadian
Number of threads: 7836
Number of posts: 18235

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Drawing in Applet ??? Please help Posted by NCS_One on 16 Mar 2005 at 9:02 PM
Hi

Im trying to create a class Component that draws in
a applet without passing the applet Graphics into the
class Component.
I have read same posts but didnt find nothing, only
public void paint(Graphics g) {
super.paint(g);
or
classComponent.paint(g);
}
There most be a way of drawing in the applets without doing
this, like the Buttons (and more) only do -
Button b = new Button("MyButton");

b.setBounds(10,10,100,100);
this.add(b);

and the button is draw in the applet without passing
the applet Graphics.
Please help.

Thanks



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.