Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How can i add a button in applet in java ???

Answer Posted / s.krishna veni

buttons should be declared..
coding to add a button :
Button b1;
b1=new Button("ok");
add(b1);

and after declaring the button..,we should add it to the
applet window..
so that a button is added at run time..

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does java have extension methods?

1043


What does .equals do in java?

1166


What will be the default values of all the elements of an array defined as an instance variable?

1077


How to calculate the length of a singly linked list in java?

1090


How do you convert string to int in java?

1139


How do you find the absolute value?

1099


Explain illegalmonitorstateexception and when it will be thrown?

1154


What is use of valueof () in java?

1104


Can you inherit from an abstract class java?

1045


Is it possible to use Semaphore/ Mutex in an Interrupt Handler?

1140


What are the string methods in java?

1131


What is garbage collection? Can it be forced to run?

1057


How is string immutable in java?

1082


What is a byte string?

1166


What is the applet security manager, and what does it provide?

1045