Meaningless Drivel is fun!*
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 Android Security Essentials Live Lessons 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: 10172
    
    8

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!]
 
jQuery in Action, 2nd edition
 
subject: how to add button to this?
 
Similar Threads
Java Simulation
how do you create an java alarm clock with audio?
Java scrolling array string problems just need to get it done not trying to learn
How to create an Java Alarm clock with audio?
How to make a java applet repeat infinitently?