OOAD Lab Record
OOAD Lab Record
You Choose, We Do it
OMR, CHENNAI-119
BONAFIDE CERTIFICATE
This is a certified bonafide record book of ____________Anusha B_________
DATE: DATE:
DATE: DATE:
INDEX
Name of the Student: Anusha B
Department: Computer Science and Engineering
Roll No: 18CS133
Reg.No: 312318104023
Name of the lab with code: Object Oriented Analysis and Design: CS8582
Lab Incharge: Dr. Anitarose
Page No Date of Staff Date
S.No. Date Name of the Experiment Mark
Sub Sign
1 18/08/2020 Passport Automation System 3 to 12 25/08/2020
registration
check status
applicant admin
process
application
dispatch passport
CLASS DIAGRAM:
ACTIVITY DIAGRAM 1:
ACTIVITY DIAGRAM 2:
ACTIVITY DIAGRAM 3:
SEQUENCE DIAGRAM 1:
SEQUENCE DIAGRAM 2:
1.enter applicant ID
SEQUENCE DIAGRAM 3:
applicant system database
2.register form
3.fill in details
4.submit
5.give applicant ID
COLLABORATION DIAGRAM 1:
/
/ applican
databas t
e
COLLABORATION DIAGRAM 2:
enter applicant ID
/applicant /system
/database
COLLABORATION DIAGRAM 3:
/applicant
COMPONENT DIAGRAM:
DEPLOYMENT DIAGRAM:
package pass;
public class Main {
public static void main(String[] args) {
// TODO code application logic here
new pass().setVisible(true);
}
}
package pass;
package pass;
public class user extends javax.swing.JFrame {
/** Creates new form user */
public user() {
initComponents();
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
setVisible(false);
new registre().setVisible(true);
}
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
setVisible(false);
new alogin().setVisible(true);
}
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import javax.swing.JOptionPane;
import net.proteanit.sql.DbUtils;
public class registre extends javax.swing.JFrame {
/** Creates new form registre */
public registre() {
initComponents();
}
private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
String name=jTextField3.getText();
String dob=jTextField1.getText();
String username=jTextField4.getText();
String password=jPasswordField1.getText();
String adds=jTextArea1.getText();
String id=jTextField2.getText();
try {
PreparedStatement psm=null;
Class.forName("com.mysql.jdbc.Driver")
conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/stock", "root", "");
String sql="insert into pass
values('"+name+"','"+dob+"','"+username+"','"+password+"','"+adds+"','"+id+"')";
Statement stm=conn.createStatement();
stm.executeUpdate(sql);
JOptionPane.showMessageDialog(null, "Successfully Registered!!");
new cancel().setVisible(true);
} catch(Exception e) {
JOptionPane.showMessageDialog(null, "Error Occured!");
}
}
private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
setVisible(true);
new cancel().setVisible(true);
}
RESULT:
Thus the application for passport automation system using uml concept has been executed.
Viva Questions:
1. What is UML?
2. Define modeling in UML.
3. What are the advantages of UML?
4. What are the different views in UML?
5. Define SDLC
MODULE DESCRIPTION:
MODULE 1: (HOME PAGE)
It contains the home page which has the login and registration.
MODULE 2: (ADMINISTRATION FORM)
The students’ details are gathered and the information is updated in the database.
MODULE 3:
The member can login and check the availability of books.
USE CASE DIAGRAM:
CLASS DIAGRAM:
SEQUENCE DIAGRAM:
COLLABORATION DIAGRAM:
1: enquiry about books
4: submit details
3: if interested in becoming a member 6: pay initial amount
8: short list books
12: else report delay
13: return book
16: report fine
17: pay fine
/STUDEN /ADMINIST
T RATION
2: send detail scheme
7: issue of id
11: issue book if available
18: refund of money
/DATABA
SE
COMPONENT DIAGRAM:
DEPLOYMENT DIAGRAM:
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection connect=DriverManager.getConnection("jdbc:odbc:bookbank");
String s="select * from pass where username = '" +s1+"'and password = '"+s2+"'";
Statement stmt=connect.createStatement();
rs=stmt.executeQuery(s);
int count=0;
while(rs.next())
{
count++;
}
if(count==1)
new bb().setVisible(true);
else
JOptionPane.showMessageDialog(null,"Wrong Password");
}
catch (Exception e)
{
JOptionPane.showMessageDialog(null, e.getMessage());
}}
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
setVisible(false);
new login().setVisible(true);
}
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import javax.swing.JOptionPane;
public class bb extends javax.swing.JFrame {
/** Creates new form bb */
public bb() {
initComponents();
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
String name=jTextField1.getText();
String author=jTextField2.getText();
try
{
PreparedStatement psm=null;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conn=DriverManager.getConnection("jdbc:odbc:bookbank");
String sql="insert into book values('"+name+"','"+author+"')";
Statement stm=conn.createStatement();
stm.executeUpdate(sql);
JOptionPane.showMessageDialog(null, "Successfully Registered!!");
setVisible(false);
new verify().setVisible(true);
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null, " Successfully Registered!!");
new verify().setVisible(true);
} }
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
new bb().setVisible(true); }
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import javax.swing.JOptionPane;
import net.proteanit.sql.DbUtils;
public class verify extends javax.swing.JFrame {
/** Creates new form verify */
public verify() {
initComponents();
}
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
new verify().setVisible(true);
}
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
new payment().setVisible(true);
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
try
{
ResultSet rs;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection connect=DriverManager.getConnection("jdbc:odbc:bookbank");
String sq="select * from book" ;
Statement stmt=connect.createStatement();
rs=stmt.executeQuery(sq);
System.out.println("query executed");
jTable1.setModel(DbUtils.resultSetToTableModel(rs));
} catch(Exception e)
{
System.out.println(e.getMessage()); } }
RESULT:
Thus the application for book bank using uml concept has been executed.
Viva Questions:
1. Explain the types of diagrams in UML.
2.Building blocks of UML
3.Relationship in UML.
4.Diagrams in UML.
5.What are the three types of modeling in UML?
AIM:
To create an application for exam registration system using uml concept.
PROBLEM STATEMENT:
To create an Exam Registration software that will meet the needs of the applicant and help them in
registering for the exam ,enqiry about the registered subject,modification in database and cancellation for
the registered project.
OVERALL DESCRIPTION:
The Exam Registration system is an integrated system that has four modules as part of it.The four
modules are:
❖ REGISTRATION FOR EXAMS
o In this module,the user can select the subject to register for the exam,enquire about the
registered subject,modification in the student database,cancelling the registered subject.
❖ FORM FOR REGISTRATION
o In this module the user can apply for the exam by giving the details about the candidate
and selecting the subject for registration.
❖ MODIFICATION IN THE DATABASE
o In this module the user can change the data like the phone number, address can be done.
❖ CANCELLATION FOR THE REGISTERED SUBJECT
In this module the user can cancel the name which is registered for the exam.
USE CASE DIAGRAM:
CLASS DIAGRAM:
ACTIVITY DIAGRAM:
SEQUENCE DIAGRAM:
COLLABORATION DIAGRAM:
2: Select the subject
3: Apply for the exam
/Student /Exam
6: Note the id
5: Generation of id
7: Modification
4: Information stored
/Databas
e
COMPONENT DIAGRAM:
DEPLOYMENT DIAGRAM:
IMPLEMENTATION:
int count = 0;
while(rs.next())
{
count ++;
}
if(count == 1)
{
new verify().setVisible(true);
}
else
{
JOptionPane.showMessageDialog(null, "INVALID PASSWORD");
}}
importjavax.swing.JOptionPane;
importnet.proteanit.sql.DbUtils;
import java.sql.*;
public class verify extends javax.swing.JFrame {
public verify() {
initComponents();
}
private void jButton1ActionPerformed(java.awt.event.ActionEventevt) {
// TODO add your handling code here:
try
{
//String s=jTextField1.getText();
ResultSetrs;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection connect=DriverManager.getConnection("jdbc:odbc:exam");
String sq="select * from studentdetails ";
Statement stmt=connect.createStatement();
rs=stmt.executeQuery(sq);
System.out.println("query executed");
// System.out.println("check:"+rs.getInt("count")
jTable1.setModel(DbUtils.resultSetToTableModel(rs));
}
catch(Exception ex){
JOptionPane.showMessageDialog(null, "error occurs");}
}
private void jButton2ActionPerformed(java.awt.event.ActionEventevt) {
// TODO add your handling code here:
new opening().setVisible(true);
}
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new verify().setVisible(true);
}
}); }
RESULT:
Thus the application for exam registration system using uml concept has been executed.
Viva Questions:
1.What is architecture?
2. What are messages?
3.What is component diagram?
4. What are the various components in sequence diagram?
5.What are the parts of the deployment diagram?
PROBLEM STATEMENT:
Stock maintenance system is the function of understanding the stock mix of a company and different
demands on stock. The demands are influenced by both external and internal factor and are balanced by
certain purchase and request to keep supplies at a reasonable or prescribed level. They are starting from
request for new stock from stores to head office issues purchase order to vendor, the vendor ships the
goods, ware house receives the goods. Ware house receives the goods, warehouse stocks and distributes
to the stores. The whole economic status is being improved properly if stock is maintained.
USECASE DIAGRAM:
CLASS DIAGRAM:
ACTIVITY DIAGRAM:
SEQUENCE DIAGRAM:
COLLABORATION DIAGRAM:
4: require stock information
7: update stock details
9: pay cash
/custome
r /authoriz
er
COMPONENT DIAGRAM:
DEPLOYMENT DAIGRAM:
package Sample;
import java.sql.*;
import javax.swing.JOptionPane;
public class Login extends javax.swing.JFrame {
public Connection con;
public Statement st;
public Login() {
initComponents();
try
{
Class.forName("com.mysql.jdbc.Driver")
con = DriverManager.getConnection("jdbc:mysql://localhost:3306/stock", "root", "");
st=con.createStatement();
JOptionPane.showMessageDialog(null, "You are now connected...!!!");
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null, "Unable to connect");
} }
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
try{
String user = jTextField1.getText();
String pass = String.valueOf(jPasswordField1.getText());
String sqlquery1 = "Select * from login where username='"+user+"'and password='"+pass+"'";
ResultSet rs = st.executeQuery(sqlquery1);
if(rs.next())
{
setVisible(false);
new New().setVisible(true);
}
else{
JOptionPane.showMessageDialog(null, "Wrong username or password");
}
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null, "Unable to login");
}
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
setVisible(false);
new Applicant().setVisible(true);
}
package Sample;
import java.sql.*;
import javax.swing.JOptionPane;
public class Applicant extends javax.swing.JFrame {
public Connection con;
public Statement st;
/** Creates new form start */
public Applicant() {
initComponents();
try
{
Class.forName("com.mysql.jdbc.Driver");
con = DriverManager.getConnection("jdbc:mysql://localhost:3306/stock", "root", "");
st=con.createStatement();
JOptionPane.showMessageDialog(null, "You are now connected...!!!");
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null, "Unable to connect");
}
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
try{
String name = jTextField1.getText();
String dob = jTextField2.getText();
String addr = jTextArea1.getText();
String email = jTextField5.getText();
String mob = jTextField4.getText();
String sqlquery1 = "Insert into register
values('"+name+"','"+dob+"','"+addr+"','"+email+"','"+mob+"')";
st.executeUpdate(sqlquery1);
JOptionPane.showMessageDialog(null, "Data successfully inserted");
setVisible(false);
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null, "Data insertion failure");
}
new Login().setVisible(true);
}
package Sample;
import java.sql.*;
import javax.swing.JOptionPane;
import net.proteanit.sql.DbUtils;
import java.lang.String.*;
/**
*
* @author Keerthana
*/
public class Status extends javax.swing.JFrame {
public Connection connect;
public Statement st;
String category;
/** Creates new form Status */
public Status(String c) {
initComponents();
category=c;
try
{
Class.forName("com.mysql.jdbc.Driver");
connect = DriverManager.getConnection("jdbc:mysql://localhost:3306/stock", "root", "");
st=connect.createStatement();
JOptionPane.showMessageDialog(null, "You are now connected...!!!");
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null, "Unable to connect");
}
}
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
try{
String sqlquery1 = "Select * from details where category='"+category+"'";
ResultSet rs = st.executeQuery(sqlquery1);
jTable1.setModel(DbUtils.resultSetToTableModel(rs));
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null, "Unable to display stock details");
}
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
try{
int count,count2;
String stock = jTextField3.getText();
int qty = Integer.parseInt(jTextField1.getText());
String sqlquery1 = "Select * from details where stock='"+stock+"'";
ResultSet rs1 = st.executeQuery(sqlquery1);
while(rs1.next()){
if(qty<=(rs1.getInt(3))){
count=rs1.getInt(3);
count-=qty;
String sqlquery2 = "Update details set qty='"+count+"' where stock='"+stock+"'";
st.executeUpdate(sqlquery2);
JOptionPane.showMessageDialog(null, "Stocks purchased");
setVisible(false);
new Thanks().setVisible(true);
}
else
JOptionPane.showMessageDialog(null, "No stock available");
}
}
catch(Exception e)
{
//JOptionPane.showMessageDialog(null, "Unable to check details");
}
}
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
String reg = jTextField1.getText();
setVisible(false);
new Thanks().setVisible(true);
RESULT:
Thus the application for Stock maintenance system using uml concept has been executed.
Viva Questions:
1.What are the different elements of a collaboration diagram?
2. What are the elements of activity diagram?
3. What are the different elements of use case?
4. What is the difference between activity and use case diagram?
5. What is component diagram?
PROBLEM STATEMENT:
The software which displays the list of courses available for the mark that the student get and the
student can able to allocate best course from the choice available.It displays and allocates courses based
on student ranking.The student ranking is based on marks,caste and community.Based on caste and
community the ranking may varied.This software allows the student to choose the best college for the
available courses.
USE CASE DIAGRAM:
CLASS DIAGRAM:
ACTIVITY DIAGRAM:
COLLABORATION DIAGRAM:
COMPONENT DIAGRAM:
DEPLOYMENT DIAGRAM:
package Sample;
public class Welcome extends javax.swing.JFrame {
/** Creates new form Welcome */
public Welcome() {
initComponents();
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
setVisible(false);
new Applicant().setVisible(true);
}
package Sample;
import java.sql.*;
import javax.swing.JOptionPane;
public class Applicant extends javax.swing.JFrame {
public Connection con;
public Statement st;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import javax.swing.JOptionPane;
public class Register extends javax.swing.JFrame {
public Connection connect;
public Statement st;
/** Creates new form Register */
public Register() {
initComponents();
try
{
Class.forName("com.mysql.jdbc.Driver");
connect = DriverManager.getConnection("jdbc:mysql://localhost:3306/course", "root", "");
st=connect.createStatement();
JOptionPane.showMessageDialog(null, "You are now connected...!!!");
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null, "Unable to connect");
}
}
RESULT:
Thus the application for online course reservation system using uml concept has been executed.
Viva Questions:
1.What is the difference between uses and extends?
2.How do we represent private, public and protected in class diagrams?
3.What does association in a class diagram mean?
4.What is uml use case diagram?
5.What does aggregation mean in a class diagram?
PROBLEM STATEMENT:
This project enables a user to perform the following operations.
● Online Booking of tickets
● Online cancellation of tickets
● Online Enquiry system
● Online ticket status checking
The booking service accepts the source;destination derails along with the train name and date of service.
According to the availability of tickets, the particular passenger is allotted a seat on the particular train.
The tickets would be displayed in a particular passenger is allotted a seat on the particular train. The ticket
would redisplay in a printable format along with a unique seat number to differentiate between online
ticket reservations. The cancellation services comes in very handy in case of emergency cancellation
where in a passenger who has already booked his tickets can follow easy steps to cancel his ticket. The
passenger specifies his seat no and other unique identification parameter like credit card number and the
details are validated. If found legal, the ticket is cancelled and the transaction with the bank is nullified.
The train schedule and enquiry features of this system enable the user to interactively identify a suitable
configuration of train timings and fares. This module gives the user complete train details and facilities
the passenger to choose a train of his choice.
CLASS DIAGRAM:
/ Login
COMPONENT DIAGRAM:
DEPLOYMENT DIAGRAM:
initComponents();
}
private void jButton1ActionPerformed(java.awt.event.ActionEventevt) {
// TODO add your handling code here:
new login().setVisible(true);
}
importjava.sql.*;
importjavax.swing.table.TableModel;
//import org.apache.commons.dbutils.DbUtils;
importnet.proteanit.sql.DbUtils;
public class NewJFrame extends javax.swing.JFrame {
/** Creates new form NewJFrame */
publicNewJFrame() {
initComponents();
}
private void jButton1ActionPerformed(java.awt.event.ActionEventevt) {
// TODO add your handling code here:
try
{
String s=jTextField1.getText();
ResultSetrs;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection connect=DriverManager.getConnection("jdbc:odbc:aero");
String sq="select * from planedetails where number = '" +s+"'" ;
Statement stmt=connect.createStatement();
rs=stmt.executeQuery(sq);
System.out.println("query executed");
// System.out.println("check:"+rs.getInt("count"));
jTable1.setModel(DbUtils.resultSetToTableModel(rs));}
catch(Exception e)
{System.out.println(e.getMessage());
}
}
private void jButton3ActionPerformed(java.awt.event.ActionEventevt) {
new opening().setVisible(true);
}
private void jButton2ActionPerformed(java.awt.event.ActionEventevt) {
String s1=jTextField2.getText();
int j=Integer.parseInt(jTextField3.getText());
System.out.println("AD"+s1);
airdatabase l=new airdatabase(s1,j);
} //DECREASE IN TICKET COUNT
RESULT:
Thus the application for E-Ticketing systems using uml concept has been executed.
Viva Questions:
1.What does composition mean in a class diagram?
2. How a uml use case diagram is different from traditional flow chart?
3. Who maintains the UML specification?
4.How the UML specification is updated?
5.On what basis UML modeling tool is selected?
PROBLEM STATEMENT:
The module should provide users with a system to keep trace of hospitals,features,availability,staffing and
report problems.
The hospital management system helps to make updated data base about the status of faculty members.
The patient records have to be monitored more accurately and with frequent updation of the treatment
details all these requirements have been tried to satisfied project.
It involved in the bus system are doctor,receptionist,cashier and they perform the actions such as giving
treatment payment receiving entering the patient details to new admission all these actions will be
executed.
USE CASE DIAGRAM:
CLASS DIAGRAM:
ACTIVITY DIAGRAM:
SEQUENCE DIAGRAM:(LOGIN)
NEW ADMISSION:
PAYMENT SECTION:
TREATMENT SECTION:
COMPONENT DIAGRAM:
DEPLOYMENT DIAGRAM:
*/
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import javax.swing.JOptionPane;
public class login extends javax.swing.JFrame {
/** Creates new form login */
public login() {
initComponents();
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
String s1=jTextField1.getText();
String s2=jPasswordField1.getText();
System.out.println(s1);
System.out.println(s2);
try {
ResultSet rs;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection connect=DriverManager.getConnection("jdbc:odbc:pers");
String s="select * from pass where username = '" +s1+"'and password = '"+s2+"'";
Statement stmt=connect.createStatement();
rs=stmt.executeQuery(s);
int count=0;
while(rs.next()) {
count++;
}
if(count==1)
new employ().setVisible(true);
else
JOptionPane.showMessageDialog(null,"Wrong Password");
} catch (Exception e) {
JOptionPane.showMessageDialog(null, e.getMessage());
}
}
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
setVisible(false);
new login().setVisible(true);
}
package personnel;
/**
*
* @author Elcot
*/
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import javax.swing.JOptionPane;
import net.proteanit.sql.DbUtils;
public class employ extends javax.swing.JFrame {
/** Creates new form employ */
public employ() {
initComponents();
}
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
setVisible(false);
new employ().setVisible(true);
}
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
setVisible(false);
new details().setVisible(true);}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
try
{ ResultSet rs;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection connect=DriverManager.getConnection("jdbc:odbc:pers");
String sq="select id from empo" ;
Statement stmt=connect.createStatement();
rs=stmt.executeQuery(sq);
System.out.println("query executed");
jTable1.setModel(DbUtils.resultSetToTableModel(rs));
} catch(Exception e)
{ System.out.println(e.getMessage()); } }
package personnel;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import javax.swing.JOptionPane;
import net.proteanit.sql.DbUtils;
public class details extends javax.swing.JFrame {
/** Creates new form details */
public details() {
initComponents(); }
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
try {
String s=jTextField1.getText();
ResultSet rs;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection connect=DriverManager.getConnection("jdbc:odbc:pers");
String sq="select * from empo where id = '" +s+"'" ;
Statement stmt=connect.createStatement();
rs=stmt.executeQuery(sq);
System.out.println("query executed");
jTable1.setModel(DbUtils.resultSetToTableModel(rs)); }
catch(Exception e) {
System.out.println(e.getMessage()); }}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
new employ().setVisible(true); }
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
new logout().setVisible(true); }
RESULT:
Thus the application for Software personnel management system using uml concept has been executed.
Viva Questions:
1.Define Object Oriented Analysis.
2.What are the characteristics of an object?
3.Define class.
4.Name two types of object diagram.
5.What is an attribute? Give example.