0% found this document useful (0 votes)
9 views16 pages

Ajp Project

The document is a report on the 'Student Fee Management System' submitted by students of Nanasaheb Mahadik Polytechnic Institute as part of their Diploma in Computer Engineering. It includes an introduction to Java programming, the purpose of the fee management system, and details about Java AWT and Swing for GUI development. The report also contains source code examples and acknowledges the guidance received during the project.

Uploaded by

Firoj jamadar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views16 pages

Ajp Project

The document is a report on the 'Student Fee Management System' submitted by students of Nanasaheb Mahadik Polytechnic Institute as part of their Diploma in Computer Engineering. It includes an introduction to Java programming, the purpose of the fee management system, and details about Java AWT and Swing for GUI development. The report also contains source code examples and acknowledges the guidance received during the project.

Uploaded by

Firoj jamadar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 16

Shri Venkateshwara Shikshan Sanstha’s

Nanasaheb Mahadik Polytechnic Institute, Peth


Tal. Walwa, Dist. Sangli 415 407
Year 2020-21

A
Report
on

“Student Fee Management System”


Submitted in partial fulfillment of the requirements for
Diploma in COMPUTER ENGINEERING
Of
M.S.B.T.E., MUMBAI
By

Sr. No. First Name Middle Name Last Name Roll No.
1 Firoj Yasin Jamadar 18
2 Rushikesh Mahesh Patil 17
3 Arif Afzal Pathan 35
4 Satyam Anil Khot 22

UNDER THE GUIDANCE OF


Mr.K.K.SHINDE
Shri Venkateshwara Shikshan Sanstha’s
Nanasaheb Mahadik Polytechnic Institute, Peth
Tal. Walwa, Dist. Sangli 415 407
Year 2020-21

CERTIFICATE
This is to certify that,

Sr. No. First Name Middle Name Last Name Roll No.
1 Firoj Yasin Jamadar 18
2 Rushikesh Mahesh Patil 17
3 Arif Afzal Pathan 35
4 Satyam Anil Khot 22

Students of NanasahebMahadik Polytechnic Institute, Pethhave satisfactorily


completed the “Student Fee Management System” in partial fulfillment of Diploma
in Computer Engineering of Maharashtra State Board of Technical Education,
Mumbai during the academic year 2020-2021.

Mr. K.K. SHINDE Mr. K. K. SHINDE Prof. M. B. JOSHI


Guide HOD Principal
ACKNOWLEDGEMENT
We take this opportunity to thank all those who have contributed in
successful completion of this project work. We would like to express our sincere
thanks to our guide, who has encouraged us to work on this topic and valuable
guidance wherever required.
We wish to express our thanks toPROF. M. B. JOSHI, Principal, N.M.P.I.,
for their support and the help extended.
Finally, we are thankful to all those who extended their help directly or
indirectly in preparation of this report.

Sr. No. First Name Middle Name Last Name Roll No.
1 Firoj Yasin Jamadar 18
2 Rushikesh Mahesh Patil 17
3 Arif Afzal Pathan 35
4 Satyam Anil Khot 22
SR.NO CONTENTS PAGE NO.

1 Introduction 1

2 Java AWT AND Java Swing 2

3 Source Code 3

4 OUTPUT 4

5 Conclusion 5

6 References 6

INDEX

TYCO (NMPI), Peth Page 4


Introduction:

Java is a programming language created by James Gosling from Sun Microsystems


(Sun) in 1991. The target of Java is to write a program once and then run this program on
multiple operating systems. The first publicly available version of Java (Java 1.0) was released
in 1995. Sun Microsystems was acquired by the Oracle Corporation in 2010. Oracle has now
the seamanship for Java. In 2006 Sun started to make Java available under the GNU General
Public License (GPL). Oracle continues this project called OpenJDK.

Over time new enhanced versions of Java have been released. The current version of
Java is Java 1.8 which is also known as Java 8.

Java is defined by a specification and consists of a programming language, a compiler,


core libraries and a runtime (Java virtual machine) The Java runtime allows software
developers to write program code in other languages than the Java programming language
which still runs on the Java virtual machine. The Java platform is usually associated with
the Java virtual machine and the Java core libraries

Introduction to Fee Management System

The main of this system is to develop fee management system by using c language.
This system mainly reduces the work task and it is easy to maintain the records for a long
time than normal hand written records. The user can check his record details by just entering
his name no need to search all the record. With the help of this system fee calculations can be
done very easily by this system. So the maintenance and management of fee became very
easy.

Java AWT

TYCO (NMPI), Peth Page 5


AWT stands for Abstract Window Toolkit. It is a platform dependent API for
creating Graphical User Interface (GUI) for java programs.

AWT is rarely used now days because of its platform dependent and heavy-weight
nature. AWT components are considered heavy weight because they are being generated by
underlying operating system (OS). For example if you are instantiating a text box in AWT
that means you are actually asking OS to create a text box for you.

The UI elements are the one which user directly looks and interacts with. AWT has wide
variety of common elements from basic to complex.

i. Label
ii. Button
iii. Choice
iv. Checkbox
v. List
vi. Canvas
vii. Scrollbar

Java Swing

TYCO (NMPI), Peth Page 6


Java Swing is a part of Java Foundation Classes (JFC) which was designed for enabling
large-scale enterprise development of Java applications. Java Swing is a set of APIs that
provides graphical user interface (GUI) for Java programs. Java Swing is also known as Java
GUI widget toolkit.

Java Swing or Swing was developed based on earlier APIs called Abstract Windows
Toolkit (AWT). Swing provides richer and more sophisticated GUI components than AWT.
The GUI components are ranging from a simple label to complex tree and table. Besides
emulating look and feel of various platforms, Swing also provides the pluggablelook and
feel to allow look and feel of Java programs independent from the underlying platform.

Swing Components, A component is an object having a graphical representation that can


be displayed on the screen and that can interact with the user. Examples of components are
the buttons, checkboxes, and scrollbars of a typical graphical user interface. Swing
components are fundamental building pieces of an application. Swing has an extensive
variety of different segments, including buttons, check boxes, sliders, and list boxes.
SPLesson tutorial will explain the various kinds of components as follows.

 JLabel
 JCheckBox
 JSlider
 JComboBox
 JProgressBar
 JToggleButton

Source Code

TYCO (NMPI), Peth Page 7


 Login Page:

package com.javatpoint.feereport; } catch (Exception e) {


import java.awt.BorderLayout; e.printStackTrace();
import java.awt.EventQueue; }
import javax.swing.JFrame; }
import javax.swing.JPanel; });
import }
javax.swing.border.EmptyBorder; public FeeReport() {
import javax.swing.GroupLayout; setDefaultCloseOperation(JFrame.
import EXIT_ON_CLOSE);
javax.swing.GroupLayout.Alignme setBounds(100, 100, 450, 300);
nt; contentPane = new JPanel();
import javax.swing.JLabel; contentPane.setForeground(Color.
import java.awt.Font; DARK_GRAY);
import java.awt.Color; contentPane.setBorder(new
import javax.swing.JButton; EmptyBorder(5, 5, 5, 5));
import setContentPane(contentPane);
java.awt.event.ActionListener;
import java.awt.event.ActionEvent; JLabel lblFeeReport = new
JLabel("Fee Report");
public class FeeReport extends lblFeeReport.setFont(new
JFrame { Font("Tahoma", Font.PLAIN, 20));
static FeeReport frame;
private JPanel contentPane; JButton btnAdminLogin = new
public static void main(String[] JButton("Admin Login");
args) { btnAdminLogin.addActionListener
EventQueue.invokeLater(new (new ActionListener() {
Runnable() { public void
public void run() { actionPerformed(ActionEvent
try { arg0) {
frame = new FeeReport(); AdminLogin.main(new String[]
frame.setVisible(true); {});
TYCO (NMPI), Peth Page 8
frame.dispose(); import javax.swing.JLabel;
} import javax.swing.JOptionPane;
}); import java.awt.Font;
import java.awt.Color;
JButton btnAccountantLogin = import javax.swing.JTextField;
new JButton("Accountant Login"); import javax.swing.JPasswordField;
btnAccountantLogin.addActionList import javax.swing.JButton;
ener(new ActionListener() { import
public void java.awt.event.ActionListener;
actionPerformed(ActionEvent import java.awt.event.ActionEvent;
arg0) {
AccountantLogin.main(new public class AdminLogin extends
String[]{}); JFrame {
frame.dispose(); static AdminLogin frame;
} private JPanel contentPane;
}); private JTextField textField;
} private JPasswordField
 Admin Login passwordField;

package com.javatpoint.feereport; public static void main(String[]

import java.awt.BorderLayout; args) {

import java.awt.EventQueue; EventQueue.invokeLater(new

import javax.swing.JFrame; Runnable() {

import javax.swing.JPanel; public void run() {

import try {

javax.swing.border.EmptyBorder; frame = new AdminLogin();

import javax.swing.GroupLayout; frame.setVisible(true);

import } catch (Exception e) {

javax.swing.GroupLayout.Alignme e.printStackTrace();

nt; }

}
});
}

TYCO (NMPI), Peth Page 9


public AdminLogin() { if(name.equals("admin")&&passwo
setDefaultCloseOperation(JFrame.E rd.equals("admin123")){
XIT_ON_CLOSE); String s[]={};
setBounds(100, 100, 450, 300); AdminSection.main(s);
contentPane = new JPanel(); frame.dispose();
contentPane.setBorder(new }else{
EmptyBorder(5, 5, 5, 5)); JOptionPane.showMessageDialog(
setContentPane(contentPane); AdminLogin.this,"Sorry, username
JLabel lblAdminLogin = new or password error!");
JLabel("Admin Login"); textField.setText("");passwordField.
lblAdminLogin.setForeground(Colo setText("");
r.DARK_GRAY); }
lblAdminLogin.setFont(new }
Font("Tahoma", Font.PLAIN, 20)); });}
JLabel lblName = new  Admin Section
JLabel("Name:"); import java.awt.BorderLayout;
JLabel lblPassword = new import java.awt.EventQueue;
JLabel("Password:"); import javax.swing.JFrame;
textField = new JTextField(); import javax.swing.JPanel;
textField.setColumns(10); import javax.swing.JScrollPane;
passwordField = new import javax.swing.JTable;
JPasswordField(); import
JButton btnLogin = new javax.swing.border.EmptyBorder;
JButton("login"); import javax.swing.GroupLayout;
btnLogin.addActionListener(new import
ActionListener() { javax.swing.GroupLayout.Alignme
public void nt;
actionPerformed(ActionEvent e) { import javax.swing.JLabel;
String name=textField.getText(); import java.awt.Font;
char import java.awt.Color;
ch[]=passwordField.getPassword(); import javax.swing.JButton;
String import
password=String.valueOf(ch); java.awt.event.ActionListener;

TYCO (NMPI), Peth Page 10


import java.util.List; JLabel lblAdminSection = new
import java.awt.event.ActionEvent; JLabel("Admin Section");
lblAdminSection.setForeground(Col
public class AdminSection extends or.DARK_GRAY);
JFrame { lblAdminSection.setFont(new
static AdminSection frame; Font("Tahoma", Font.PLAIN, 20));
private JPanel contentPane;
JScrollPane sp; JButton btnAddAccountant = new
public static void main(String[] JButton("Add Accountant");
args) { btnAddAccountant.addActionListen
EventQueue.invokeLater(new er(new ActionListener() {
Runnable() { public void
public void run() { actionPerformed(ActionEvent e) {
try { AddAccountant.main(new String[]
frame = new AdminSection(); {});
frame.setVisible(true); frame.dispose();
} catch (Exception e) { }
e.printStackTrace(); });
}
} JButton btnViewAccountant = new
}); JButton("View Accountant");
} btnViewAccountant.addActionListe
ner(new ActionListener() {
public AdminSection() { public void
actionPerformed(ActionEvent e) {
setDefaultCloseOperation(JFrame.E ViewAccountant.main(new String[]
XIT_ON_CLOSE); {});
setBounds(100, 100, 450, 300); }
contentPane = new JPanel(); });
contentPane.setBorder(new
EmptyBorder(5, 5, 5, 5)); JButton btnLogout = new
JButton("Logout");
setContentPane(contentPane); btnLogout.addActionListener(new
ActionListener() {

TYCO (NMPI), Peth Page 11


public void public static void main(String[]
actionPerformed(ActionEvent e) { args) {
FeeReport.main(new String[]{}); EventQueue.invokeLater(new
frame.dispose(); Runnable() {
} public void run() {
}); try {
} frame = new AddAccountant();
 Add Accountant frame.setVisible(true);

import java.awt.BorderLayout; } catch (Exception e) {

import java.awt.EventQueue; e.printStackTrace();

import javax.swing.JFrame; }

import javax.swing.JPanel; }

import javax.swing.GroupLayout; });

import javax.swing.JLabel; }

import javax.swing.JOptionPane; public AddAccountant() {

import java.awt.Font; setDefaultCloseOperation(JFrame.E

import java.awt.Color; XIT_ON_CLOSE);

import javax.swing.JTextField; setBounds(100, 100, 450, 300);

import javax.swing.JPasswordField; contentPane = new JPanel();

import javax.swing.JButton; contentPane.setBorder(new

import EmptyBorder(5, 5, 5, 5));

java.awt.event.ActionListener; setContentPane(contentPane);

import java.awt.event.ActionEvent;
JLabel lblAddAccountant = new

public class AddAccountant extends JLabel("Add Accountant");

JFrame { lblAddAccountant.setForeground(C

static AddAccountant frame; olor.DARK_GRAY);

private JPanel contentPane; lblAddAccountant.setFont(new

private JTextField textField; Font("Tahoma", Font.PLAIN, 20));

private JPasswordField
passwordField; JLabel lblName = new

private JTextField textField_1; JLabel("Name:");

private JTextField textField_2; JLabel lblPassword = new


JLabel("Password:");

TYCO (NMPI), Peth Page 12


JLabel lblEmail = new Accountant a=new
JLabel("Email:"); Accountant(name,password,email,c
JLabel lblContactNo = new ontactno);
JLabel("Contact No:"); int status=AccountantDao.save(a);

textField = new JTextField(); if(status>0){


textField.setColumns(10); JOptionPane.showMessageDialog(
AddAccountant.this,"Accountant
passwordField = new added successfully!");
JPasswordField(); textField.setText("");textField_1.set
Text("");textField_2.setText("");
textField_1 = new JTextField(); passwordField.setText("");
textField_1.setColumns(10); }else{
JOptionPane.showMessageDialog(
textField_2 = new JTextField(); AddAccountant.this,"Sorry, Unable
textField_2.setColumns(10); to add Accountant!");
}
JButton btnAddAccountant = new }
JButton("Add Accountant"); });
btnAddAccountant.addActionListen
er(new ActionListener() { JButton btnBack = new
public void JButton("Back");
actionPerformed(ActionEvent e) { btnBack.addActionListener(new
String name=textField.getText(); ActionListener() {
char public void
ch[]=passwordField.getPassword(); actionPerformed(ActionEvent e) {
String AdminSection.main(new String[]
password=String.valueOf(ch); {});
String email=textField_1.getText(); frame.dispose();
String }
contactno=textField_2.getText(); });

TYCO (NMPI), Peth Page 13


OUTPUT:

Conclusion:
From this system we
can conclude that it provides better fee management system and also lot of convince than
the old system. This process is very fast data can be easily entered lot of time is also
saved. It is very easy to understand and this program can be used anywhere based on
requirement.

TYCO (NMPI), Peth Page 14


References:

 https://www.splessons.com/lesson/swing-components/
 https://www.splessons.com/lesson/awt-components/
 https://www.javatpoint.com/fee-report-project-in-java

TYCO (NMPI), Peth Page 15


TYCO (NMPI), Peth Page 16

You might also like