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.
50
without session Id can we do any operations like
add,update,edit,delete. I saw Session id is loaded for edit
and delete action not for add .so am asking this
57
Hi Friends. I want complete technical flow of j2ee
project with following technologies.
jsp , servlet , Struts , Hibernate , (should follow mvc-2
design pattern) . with DAO ,DTO SERVICE layers .
20
what is the package for freshers in valuelabs.
208
what are Hostile Applets?
134
Describe activation process?
152
What is a task?s priority?
157
how to deploy tomcatserver to weblogic server?
write d following steps?
74
what is mean by API ?
Please answer me.
Advance thanks.
while working struts in intellij 7.0error unable to
initialize tld location cache: zip file is closed is
displayed anybdy can answer me immdialy .ungert
207
What is clipping and repainting and what is the relation
between them?
430
How to check null value in JDBC?
303
When do you create an index?
130
How to implement a multithreaded applet?
325
Hello ..Friends.
I need a Code which makes a software of Enter the cheque
Details..
means any enduser enter the details in a Particular field
that should be printed on the paper On Cheque.
at the backend side it sholud be printed on pdf file.
Thanks in Advance
123
How vendor Naming registry supports JNDI?
244
Name the class that is used to bind the server object with
RMI Registry?
157
how to use crystal reports in java
112
Java run-time system generates What class of exceptions?
I am new to jsf rich faces. I am using rich faces datatable
rich:datatable. On entering the value, values get filtered
in table. Now how can i get the value i selected in
backing bean?