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

What is difference between string and new string?

1032


State one difference between a template class and class template.

1064


What is difference between array and vector?

1083


What loop means?

951


Explain the difference between jdk, jre, and jvm?

1039


Can we have any code between try and catch blocks?

984


What is charat java?

955


What is lifetime variable?

951


What is the meaning of nullable?

1008


Is java code slower than native code?

1057


What are the access modifiers available in java?

1124


In how many ways we can do exception handling in java?

993


What is methods and methodology?

1023


Is java platform independent?

971


How infinite loop is declared?

1015