File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes how to add button to this? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to add button to this?" Watch "how to add button to this?" New topic

how to add button to this?

Roldan Baldo
Ranch Hand

Joined: Aug 11, 2009
Posts: 99
how to add a button at the bottom to this applet?

and if i have another class which is the main, what will i add to call this class?
i try to instantiate it in main like

Animation an = new Animation();

an.start(); // i call the method start but it did not work.

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10817

Recommended reading

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
I agree. Here's the link:
subject: how to add button to this?
It's not a secret anymore!