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

Why are inner classes required?

3 Answers   Oracle,


Difference between local and global transaction ?

1 Answers   Accenture, iFlex,


How do you reverse a string in java?

0 Answers  


Is java hashset ordered?

0 Answers  


Which variable is the independent variable?

0 Answers  






What is meant by stack and queue?

0 Answers   GrapeCity,


What is the this keyword?

0 Answers  


What is hashing in java?

0 Answers  


Can we pass null as argument in java?

0 Answers  


How can we make a class virtual?

0 Answers   Fidelity,


An inner class can actually be a subclass of the outer class? a. true b. false

2 Answers  


What are the major drawbacks of external iteration?

0 Answers  


Categories