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

Is array an object in java?

971


What are the two main uses of volatile in Java?

1063


Mention some features of java?

968


What are the types of exceptions?

1062


What is function and its uses?

1128


How does varargs work in java?

1104


How use .contains in java?

1181


Name few java.lang classes introduced with java 8 ?

996


What is starvation?

1330


Is map sorted in java?

1072


What are the approaches that you will follow for making a program very efficient?

1080


What is the size of int?

1087


Why is the singleton pattern considered to be an anti pattern?

894


What is the differences between c++ and java? Explain

1060


Can a class have more than one object?

1003