This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets 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: 10167
    
    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!]
 
I agree. Here's the link: http://aspose.com/file-tools
 
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?