Samplemicroproject JPR
Samplemicroproject JPR
Submitted by,
Name of student Enrollment no Program
MSBTE, Mumbai.
CERTIFICATE
This is to certify that the micro project report entitled
Submitted by,
Name of student Enrollment no Program
of semester V institute, Sau. Sundarbai Manik Adsul Polytechnic, Chas, Ahmednagar (code: 1464) has
completed the micro project satisfactorily in course (22517) for the Academic year 2024-25 as prescribed
in the MSBTE curriculum.
Place: Ahmednagar
Date: / /2024.
We take this opportunity to acknowledge the constant encouragement and continuous help given
to us by our guide Prof. Palwe P.D. We convey our sincere thanks to her valuable timely
suggestion. We would also like to thanks principal Prof. Gadakh R.S. and Head of Computer
Department Prof. Hole P.P. We would also like to thank teaching staff of Computer Department
for helping us to achieve this goal. We are also thankful to those who directly or indirectly helped
us for completing this micro project. We would like to thank our parents without whose supports;
the completion of the micro project would not have been possible.
INDEX
PART PLAN-A
1.0 Aim/Benefits of Micro project 2
PART PLAN-B
1.0 Introduction to AJP 4
3.0 AWT 4
8.0 Output 16
12.0 Conclusion 21
PART PLAN -A
• Micro projects aim either to make necessary preparatory actions for development and
investment projects or to undertake surveys and pre-feasibility studies to justify activities
within larger projects.
2
4.0 ACTION PLAN
3. Textbook AJP 1
PART PLAN-B
AJP stands for “Advanced Java Programming”. Java is widely used programming language for
coding web applications. Java is a multi-platform object-oriented, and network-centric language
that can be used as a platform itself. It is fast, secure, reliable programming language. Java is a
free-to-use and a versatile language; it builds localized and distributed software. Some common
uses of java are Game development, Cloud computing, big data etc.
3.0 AWT
Abstract Window Toolkit (AWT) is the Java library containing the basic classes and interfaces that
can be helpful in making graphics for gaming products, banking services, educational purposes
and many more.
The interface between the user and application program is known as user-interface. A user-
interface has multiple forms, which ranges from commands to graphic clicks.
In low-level operating systems, the user has to communicate with the commands to interact with
the application. Now, a user can interact with application in just a click by tracking the mouse and
reading the keyboard.
Abstract Window Toolkit provides a better object-oriented interface to these low-level operating
systems by developing its design and the performance.
4
AWT has a set of tools that are used in various platforms by including them in the Graphical User
Interface (GUI).
Every platform has its own GUI Toolkit and the interface elements enhance the look and feel of
the applications.
A] Component
The class Component is the abstract base class provided by AWT. Component represents an object
with graphical representation.
B] Container
The Container is a component provided by AWT which consists of several other components such
as buttons, textfields, labels etc.
The classes (For example, Frame, Dialog and Panel) which are extended from Container class are
called as containers.
C] Window
The window is the container without borders and menu bars.
To create window one has to use frame, dialog or any other window.
D] Frame
The Frame is the container which consists of title bar and menu bars. It can be container for
components such as button, textfield etc.
E] Panel
The Panel is the container which does not consists of title bar and menu bars. It can be container
for components such as button, textfield etc.
1) Simple :-
Class is a group of objects or things. It is a user defined data type that has data members and
member function. Data members are the data variable and member function are the function use
to manipulate these variables together.
2) Object Oriented :-
Java supports all object oriented concept such as Object, Class, Encapsulation, Inheritance,
Polymorphism, Abstraction, etc. Java manages the software as a combination of different types of
objects which incorporates both data and behaviour.
3) Distributed :-
As we know software is set of programs. The java programs under roof of single software can be
distributed over the network. And this Java programs can easily communicate in the distributes
environment to form the software.
6
4) High Performance :-
Java provides several high performance features such as multithreading, JIT (Just in time)
compilation which improves its performance drastically.
5) Dynamic :-
Java program dynamically can load classes and interfaces required to execute at runtime. Hence
it is known as Dynamic
6) Portable :-
Java is portable because it facilitates user to carry the Java bytecode to any platform. It doesn’t
require any implementation.
7) Multi-threaded :-
A thread is like a separate program, executing concurrently. We can write Java programs that
deal with many tasks at once by defining multiple threads.
The main advantage of multi-threading is that it doesn’t occupy memory for each thread. It
shares a common memory area.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;
public StudentForm()
setSize(400, 200);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
container.setLayout(new GridLayout(6,2));
lblRoll.setFont(f1);
lblNm.setFont(f1);
lblMarks= new JLabel(“Marks:”);
8
lblMarks.setFont(f1);
txtRoll.setFont(f2);
txtNm.setFont(f2);
txtMarks.setFont(f2);
btnSelect.addActionListener(this);
btnSelect.setFont(f1);
btnInsert.addActionListener(this);
btnInsert.setFont(f1);
btnUpdate.setFont(f1);
btnDelete = new JButton(“Delete”);
btnDelete.addActionListener(this);
btnDelete.setFont(f1);
container.add(lblRoll);
container.add(txtRoll);
container.add(lblNm);
container.add(txtNm);
container.add(lblMarks);
container.add(txtMarks);
container.add(new JLabel());
container.add(showTable);
container.add(btnInsert);
container.add(btnUpdate);
container.add(btnDelete);
container.add(btnSelect);
If (e.getSource() == btnSelect)
selectStudent();
insertStudent();
}
updateStudent();
deleteStudent();
}
private void selectStudent()
10
{
Class.forName(“com.mysql.cj.jdbc.Driver”);
While (rs.next())
String r = rs.getString(“id”);
String n = rs.getString(“name”);
Int m = rs.getInt(“marks”);
Str2= r+”\t “+n+”\t “+m+”\n”;
Str1+= str2;
}catch(Exception e){}
{
Int RollNo = Integer.parseInt(txtRoll.getText());
String Name = txtNm.getText();
Try
Class.forName(“com.mysql.cj.jdbc.Driver”);
//insert query
Statement.executeUpdate(q);
Statement.close();
Connection.close();
txtNm.setText(“”);
txtMarks.setText(“”);
Ex.printStackTrace();
JOptionPane.showMessageDialog(this, “Error: “ + ex.getMessage());
12
}
}
Private void updateStudent()
Try
Class.forName(“com.mysql.cj.jdbc.Driver”);
id=”+RollNo+” “;
Statement.executeUpdate(q);
Statement.close();
Connection.close();
// Clear the form fields after saving
txtRoll.setText(“”);
txtNm.setText(“”);
txtMarks.setText(“”);
Ex.printStackTrace();
Try
{
Class.forName(“com.mysql.cj.jdbc.Driver”);
// Replace with your MySQL database credentials
//delete query
Connection.close();
// Clear the form fields after saving
txtRoll.setText(“”);
txtNm.setText(“”);
txtMarks.setText(“”);
Ex.printStackTrace();
{
StudentForm studentForm = new StudentForm();
studentForm.setVisible(true);
}
}
8.0 OUTPUT
16
18
9.0 ADVANTAGES & FEATURES
9.1 ADVANTAGES :-
9.2 FEATURES :-
1. They’ll improve their proficiency in Java programming, including concepts like object
oriented programming, data structures, and algorithms.
2. Designing and implementing an attendance management system involves identifying and
solving various problems related to data management, user interface design, and system
architecture.
3. Students will learn how to integrate a database into their Java application for storing and
retrieving attendance data efficiently
2. Software Jdk-19 1
4. Textbook AJP 1
20
12.0 CONCLUSION
• Java offers the real possibility that most programs can be written in a type-
safe language. However, for Java to be broadly useful, it needs to have more
expressive power than it does at present.
• Java extends Java with a mechanism for parametric polymorphism, which
allows the definition and implementation of generic abstractions. The paper
gives a complete design for the extended language.
ANNEXURE II
Evaluation Sheet for the Micro Project
Academic Year : 2024-25
(a)Practical outcomes:
1. Write a program to insert and retrieve the data from database using JDBC.
2. Write a program to update and delete a record from database table.
(b)Unit outcomes in Cognitive domain:
2a. Choose JDBC or ODBC depending on given application requirement.
2b. Use relevant type of JDBC Driver for the specified environment.
(c)Outcomes in Affective Domain----------------------------------------------------------------------
---------------------------------------------------------------------------------------
Comments/Suggestion about team work/leadership/inter-personal communication (if any)