File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to add button to this?" Watch "how to add button to this?" New topic
Author

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: 10733
    
    9

Recommended reading
http://java.sun.com/docs/books/tutorial/uiswing/components/applet.html


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to add button to this?
 
It's not a secret anymore!