Why does it take so much time to access an applet having swing components the first time?
No Answer is Posted For this Question
Be the First to Post Answer
. Explain Java String Pool.
Can string be considered as a keyword?
what is overloading and overriding with example?
What is break and continue statement?
In a my eclipse editor if i want to switch from jdk 1.4 to jdk 1.6 how to do that???? Initially i have jdk1.4
Can a java program have 2 main methods?
List primitive java types?
What is the purpose of finalization in java programming?
What is a ?
What is string data?
What is size () in java?
Draw a UML class diagram for the code fragment given below: public class StringApplet extends Applet { private Label sampleString; private Button showTheString; private ButtonHandler bHandler; private FlowLayout layout; public StringApplet() { sampleString = new Label(" "); showTheString = new Button (" Show the String"); bHandler = new ButtonHandler(); layout = new FlowLayout(); showTheString.addActionListener(bHandler); setLayout(layout); add(sampleString); add(showTheString); } class ButtonHandler implements ActionListener { public void actionPerformed(ActionEvent e) { samplestring.setText("Good Morning"); } } } Note: The methods need not be indicated on the diagram.