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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / giridhar gangapatnam

Button b1=new Button("OK");
add(b1);

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What are the advantages and disadvantages of reference counting in garbage collection?

0 Answers  


what is the difference between cd & dvd ?

30 Answers   Lovely Professional University, Satyam, Sibylsys,


Can an anonymous class be declared as implementing an interface and extending a class in java programming?

0 Answers  


Which access specifier can be used with class ?

0 Answers  


What is the use of a copy constructor?

0 Answers   Flextronics,


How do you set security in applets?

1 Answers   Wipro,


When do we use synchronized methods in java?

0 Answers  


Can a double value be cast to a byte?

3 Answers  


what is prepare statement? what is calabedtarement?

1 Answers   Symphony,


Explain the access modifiers for a class, method and variables?

0 Answers   Global Logic,


Where is the find and replace?

0 Answers  


What is deserialization?

0 Answers  


Categories