Jump to content

College Management System Project In Java With Source Code Free __full__ Download -

package college.management; import javax.swing.*; import java.awt.*; public class Dashboard extends JFrame public Dashboard(String role) setTitle("System Dashboard - " + role); setSize(600, 400); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setLocationRelativeTo(null); JLabel lblWelcome = new JLabel("College Admin Panel", SwingConstants.CENTER); lblWelcome.setFont(new Font("Arial", Font.BOLD, 24)); add(lblWelcome, BorderLayout.NORTH); JPanel panelMenu = new JPanel(new GridLayout(2, 2, 20, 20)); JButton btnStudents = new JButton("Manage Students"); JButton btnFaculty = new JButton("Manage Faculty"); JButton btnFees = new JButton("Fee Records"); JButton btnSettings = new JButton("Settings"); panelMenu.add(btnStudents); panelMenu.add(btnFaculty); panelMenu.add(btnFees); panelMenu.add(btnSettings); add(panelMenu, BorderLayout.CENTER); // Simple Role Enforcement Rules if (role.equalsIgnoreCase("Student")) btnFaculty.setEnabled(false); btnSettings.setEnabled(false); else if (role.equalsIgnoreCase("Faculty")) btnSettings.setEnabled(false); setVisible(true); Use code with caution. How to Set Up and Run the Project

CREATE DATABASE CollegeManagementDB; USE CollegeManagementDB; -- 1. Users Table for Authentication CREATE TABLE users ( username VARCHAR(50) PRIMARY KEY, password VARCHAR(255) NOT NULL, role VARCHAR(20) NOT NULL ); -- 2. Students Table CREATE TABLE students ( student_id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(100) NOT NULL, email VARCHAR(100) UNIQUE, course VARCHAR(50), fee_paid DECIMAL(10,2) DEFAULT 0.00 ); -- 3. Faculty Table CREATE TABLE faculty ( faculty_id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(100) NOT NULL, email VARCHAR(100) UNIQUE, department VARCHAR(50) ); -- Insert Default Admin Login INSERT INTO users (username, password, role) VALUES ('admin', 'admin123', 'Admin'); Use code with caution. Core Java Implementation Code package college

This utility class establishes the communication bridge between the Java application and the MySQL database server. Students Table CREATE TABLE students ( student_id INT

×
×
  • Create New...

Forums


News


Membership