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

Answer Posted / giridhar gangapatnam

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

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does map works in java?

660


How to perform selection sort in java?

713


Write a method that will remove given character from the string?

700


What is an array in java?

778


What is the difference between compile-time polymorphism and runtime polymorphism?

691






'A class is a template for an object' explain this statement.

668


Why java does not support pointers?

698


If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?

908


What is null object in java?

699


What is final access modifier in java?

730


2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?

1964


What is java algorithm?

644


Which access specifier can be used with class ?

640


What does += mean in java?

698


What is class array in java?

643