This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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
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: 10426
    
    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?