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

Can you run the product development on all operating systems ?

1 Answers  


why Runnable interface is preferable than extending the Thread class?

7 Answers   Aizza, College School Exams Tests, Sybrant Technologies, Wipro,


What is r * in math?

1 Answers  


Is double bigger than float?

1 Answers  


What are namespaces in java?

1 Answers  


Explain the scope of a variable.

1 Answers   TCS,


Can you make a constructor final in Java?

1 Answers   SwanSoft Technologies,


What is the maximum size of byte array in java?

1 Answers  


Explain jdk, jre and jvm?

1 Answers  


From the two, which would be easier to write: synchronization code for ten threads or two threads?

1 Answers  


What is the difference between form & report?

1 Answers  


What is the difference between Trusted and Untrusted Applet ?

2 Answers   IBM,


Categories