diff --git a/Password_Manager/backup.txt b/Password_Manager/backup.txt new file mode 100644 index 0000000..65c5826 --- /dev/null +++ b/Password_Manager/backup.txt @@ -0,0 +1,2 @@ +yash:@@/TC:s::Google:email:Riya:4u +/:wC U0 :shivam::25#E[,:Instageam:email:Riya: +#include +#include +#include +#include +#include +#include +#include + +using namespace std; + +// Encryption key +const string ENCRYPTION_KEY = "my_encryption_key"; +const string BACKUP_FILE = "backup.txt"; +const string PASSWORDS_FILE = "passwords.txt"; + +// Structure to store account information +struct Account { + string username; + string password; + string website; + string category; // Added category field +}; + +// Function to generate a random password of specified length +string generatePassword(int length) { + string password = ""; + const string characters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@#$%^&*()-_=+"; + int charLength = characters.length(); + + srand(time(0)); + for (int i = 0; i < length; ++i) { + int index = rand() % charLength; + password += characters[index]; + } + + return password; +} + +// Function to encrypt the password +string encryptPassword(const string& password) { + string encryptedPassword = password; + const string& ENCRYPTION_KEY = "my_encryption_key"; // Moved to local scope + for (int i = 0; i < password.length(); ++i) { + encryptedPassword[i] ^= ENCRYPTION_KEY[i % ENCRYPTION_KEY.length()]; + } + return encryptedPassword; +} + +// Function to store the account in a secure manner +void storeAccount(const string& username, const string& password, const string& website, const string& category) { + // Encrypt the password before storing it + string encryptedPassword = encryptPassword(password); + + ofstream outfile(PASSWORDS_FILE, ios::app); + if (!outfile.is_open()) { + cerr << "Error: Could not open passwords.txt for writing." << endl; + return; + } + outfile << username << ":" << encryptedPassword << ":" << website << ":" << category << endl; + outfile.close(); +} + +// Function to decrypt the password +string decryptPassword(const string& encryptedPassword) { + string decryptedPassword = encryptedPassword; + const string& ENCRYPTION_KEY = "my_encryption_key"; // Moved to local scope + for (int i = 0; i < encryptedPassword.length(); ++i) { + decryptedPassword[i] ^= ENCRYPTION_KEY[i % ENCRYPTION_KEY.length()]; + } + return decryptedPassword; +} + +// Function to read and decrypt accounts from file +vector readAccounts() { + vector accounts; + ifstream infile(PASSWORDS_FILE); + if (!infile.is_open()) { + cerr << "Error: Could not open passwords.txt for reading." << endl; + return accounts; + } + string username, encryptedPassword, website, category; + while (infile >> username >> encryptedPassword >> website >> category) { + Account account; + account.username = username; + account.password = decryptPassword(encryptedPassword); + account.website = website; + account.category = category; + accounts.push_back(account); + } + infile.close(); + return accounts; +} + +// Function to validate the password strength +bool validatePassword(const string& password) { + // Password should have at least 8 characters + if (password.length() < 8) { + return false; + } + + // Password should contain at least one uppercase letter, one lowercase letter, one digit, and one special character + bool hasUpper = false, hasLower = false, hasDigit = false, hasSpecial = false; + for (char c : password) { + if (isupper(c)) hasUpper = true; + if (islower(c)) hasLower = true; + if (isdigit(c)) hasDigit = true; + if (!isalnum(c)) hasSpecial = true; + } + + return hasUpper && hasLower && hasDigit && hasSpecial; +} + +// Function to backup password data +void backupData() { + // Read current data + vector accounts = readAccounts(); + + // Write data to backup file + ofstream outfile(BACKUP_FILE); + if (!outfile.is_open()) { + cerr << "Error: Could not open " << BACKUP_FILE << " for writing." << endl; + return; + } + for (const auto& account : accounts) { + outfile << account.username << ":" << account.password << ":" << account.website << ":" << account.category << endl; + } + outfile.close(); + + cout << "Data backed up to " << BACKUP_FILE << endl; +} + +// Function to restore password data from backup +void restoreData() { + // Read data from backup file + ifstream infile(BACKUP_FILE); + if (!infile.is_open()) { + cerr << "Error: Could not open " << BACKUP_FILE << " for reading." << endl; + return; + } + string username, password, website, category; + while (infile >> username >> password >> website >> category) { + storeAccount(username, password, website, category); + } + infile.close(); + + cout << "Data restored from " << BACKUP_FILE << endl; +} + +// Function to prompt the user to enter a valid password +string getValidPassword() { + while (true) { + cout << "Enter your password: "; + string password; + cin >> password; + + if (validatePassword(password)) { + return password; + } else { + cout << "Password is weak. It should have at least 8 characters, one uppercase, one lowercase, one digit, and one special character." << endl; + } + } +} + +int main() { + int passwordLength; + string username, password, website, category; + + cout << "Enter your username: "; + cin >> username; + + // Generate a password if the user wants to + char generate; + cout << "Do you want to generate a password? (Y/N): "; + cin >> generate; + if (generate == 'Y' || generate == 'y') { + cout << "Enter the desired length of your password: "; + cin >> passwordLength; + password = generatePassword(passwordLength); + cout << "Generated password: " << password << endl; + } else { + password = getValidPassword(); // Use the new function to get a valid password + } + + cout << "Enter the website: "; + cin >> website; + + cout << "Enter the category (e.g., email, social, finance): "; + cin >> category; + + storeAccount(username, password, website, category); + cout << "Account saved securely." << endl; + + cout << "Decrypting and reading stored accounts:" << endl; + vector accounts = readAccounts(); + for (const auto& account : accounts) { + cout << "Website: " << account.website << ", Username: " << account.username << ", Password: " << account.password << ", Category: " << account.category << endl; + } + + // Backup and restore functionality + char backupRestore; + cout << "Do you want to backup (B) or restore (R) data? (B/R): "; + cin >> backupRestore; + if (backupRestore == 'B' || backupRestore == 'b') { + backupData(); + } else if (backupRestore == 'R' || backupRestore == 'r') { + restoreData(); + } + + return 0; +} diff --git a/Password_Manager/passwords.txt b/Password_Manager/passwords.txt new file mode 100644 index 0000000..e2858ee --- /dev/null +++ b/Password_Manager/passwords.txt @@ -0,0 +1,5 @@ +yash:@@/TC  :Google:email +Riya:4u / :Instagram:social +shivam::25#E[,:Instageam:email +Riya: + + ![GitHub repo size](https://img.shields.io/github/repo-size/codewithsadee/homeverse) + ![GitHub stars](https://img.shields.io/github/stars/codewithsadee/homeverse?style=social) + ![GitHub forks](https://img.shields.io/github/forks/codewithsadee/homeverse?style=social) +[![Twitter Follow](https://img.shields.io/twitter/follow/codewithsadee_?style=social)](https://twitter.com/intent/follow?screen_name=codewithsadee_) + [![YouTube Video Views](https://img.shields.io/youtube/views/6HZ4nZmU_pE?style=social)](https://youtu.be/6HZ4nZmU_pE) + +
+
+ + + +

Homeverse - Real estate website

+ + Homeverse is fully responsive Real estate website,
Responsive for all devices, built using HTML, CSS, and JavaScript. + + ➥ Live Demo + + + +
+ +### Demo Screeshots + +![homeverse Desktop Demo](./readme-images/desktop.png "Desktop Demo") +![homeverse Mobile Demo](./readme-images/mobile.png "Mobile Demo") + +### Prerequisites + +Before you begin, ensure you have met the following requirements: + +* [Git](https://git-scm.com/downloads "Download Git") must be installed on your operating system. + +### Run Locally + +To run **Homeverse** locally, run this command on your git bash: + +Linux and macOS: + +```bash +sudo git clone https://github.com/codewithsadee/homeverse.git +``` + +Windows: + +```bash +git clone https://github.com/codewithsadee/homeverse.git +``` + +### Contact + +If you want to contact with me you can reach me at [Twitter](https://www.twitter.com/codewithsadee). + +### License + +This project is **free to use** and does not contains any license. diff --git a/Property Website/favicon.svg b/Property Website/favicon.svg new file mode 100644 index 0000000..7c96fcd --- /dev/null +++ b/Property Website/favicon.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/Property Website/index.html b/Property Website/index.html new file mode 100644 index 0000000..e66f0ac --- /dev/null +++ b/Property Website/index.html @@ -0,0 +1,1464 @@ + + + + + + + + Homeverse - Find your dream house + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + + +
+ + + +
+ +
+
+ +
+
+ + + + + +
+ + + + + + + + + +
+ +
+
+ +
+ + + + + +
+
+ + + +
+
+ +
+ +

+ + + Real Estate Agency +

+ +

Find Your Dream House By Us

+ +

+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore. +

+ + + +
+ +
+ Modern house model +
+ +
+
+ + + + + + + +
+
+ +
+ House interior + + House interior +
+ +
+ +

About Us

+ +

The Leading Real Estate Rental Marketplace.

+ +

+ Over 39,000 people work for us in more than 70 countries all over the This breadth of global coverage, + combined with + specialist services +

+ +
    + +
  • +
    + +
    + +

    Smart Home Design

    +
  • + +
  • +
    + +
    + +

    Beautiful Scene Around

    +
  • + +
  • +
    + +
    + +

    Exceptional Lifestyle

    +
  • + +
  • +
    + +
    + +

    Complete 24/7 Security

    +
  • + +
+ +

+ "Enimad minim veniam quis nostrud exercitation + llamco laboris. Lorem ipsum dolor sit amet" +

+ + Our Services + +
+ +
+
+ + + + + + + +
+
+ +

Our Services

+ +

Our Main Focus

+ +
    + +
  • +
    + +
    + Service icon +
    + +

    + Buy a home +

    + +

    + over 1 million+ homes for sale available on the website, we can match you with a house you will want + to call home. +

    + + + Find A Home + + + + +
    +
  • + +
  • +
    + +
    + Service icon +
    + +

    + Rent a home +

    + +

    + over 1 million+ homes for sale available on the website, we can match you with a house you will want + to call home. +

    + + + Find A Home + + + + +
    +
  • + +
  • +
    + +
    + Service icon +
    + +

    + Sell a home +

    + +

    + over 1 million+ homes for sale available on the website, we can match you with a house you will want + to call home. +

    + + + Find A Home + + + + +
    +
  • + +
+ +
+
+ + + + + + + +
+
+ +

Properties

+ +

Featured Listings

+ +
    + +
  • +
    + +
    + + + New Apartment Nice View + + +
    For Rent
    + + + +
    + +
    + +
    + $34,900/Month +
    + +

    + New Apartment Nice View +

    + +

    + Beautiful Huge 1 Family House In Heart Of Westbury. Newly Renovated With New Wood +

    + +
      + +
    • + 3 + + + + Bedrooms +
    • + +
    • + 2 + + + + Bathrooms +
    • + +
    • + 3450 + + + + Square Ft +
    • + +
    + +
    + + + +
    +
  • + +
  • +
    + +
    + + + Modern Apartments + + +
    For Sales
    + + + +
    + +
    + +
    + $34,900/Month +
    + +

    + Modern Apartments +

    + +

    + Beautiful Huge 1 Family House In Heart Of Westbury. Newly Renovated With New Wood +

    + +
      + +
    • + 3 + + + + Bedrooms +
    • + +
    • + 2 + + + + Bathrooms +
    • + +
    • + 3450 + + + + Square Ft +
    • + +
    + +
    + + + +
    +
  • + +
  • +
    + +
    + + + Comfortable Apartment + + +
    For Rent
    + + + +
    + +
    + +
    + $34,900/Month +
    + +

    + Comfortable Apartment +

    + +

    + Beautiful Huge 1 Family House In Heart Of Westbury. Newly Renovated With New Wood +

    + +
      + +
    • + 3 + + + + Bedrooms +
    • + +
    • + 2 + + + + Bathrooms +
    • + +
    • + 3450 + + + + Square Ft +
    • + +
    + +
    + + + +
    +
  • + +
  • +
    + +
    + + + Luxury villa in Rego Park + + +
    For Rent
    + + + +
    + +
    + +
    + $34,900/Month +
    + +

    + Luxury villa in Rego Park +

    + +

    + Beautiful Huge 1 Family House In Heart Of Westbury. Newly Renovated With New Wood +

    + +
      + +
    • + 3 + + + + Bedrooms +
    • + +
    • + 2 + + + + Bathrooms +
    • + +
    • + 3450 + + + + Square Ft +
    • + +
    + +
    + + + +
    +
  • + +
+ +
+
+ + + + + + + +
+ +
+ + + + + + + +
+
+ +

News & Blogs

+ +

Leatest News Feeds

+ + + +
+
+ + + + + + + +
+
+ +
+
+

Looking for a dream home?

+ +

We can help you realize your dream of a new home

+
+ + +
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Property Website/index.txt b/Property Website/index.txt new file mode 100644 index 0000000..d62a1d1 --- /dev/null +++ b/Property Website/index.txt @@ -0,0 +1,307 @@ +Homeverse - Find your dream house + + +# HEADER + + +info@homeverse.com + + +15/A, Nest Tower, NYC + + + + + + +Add Listing + +alt = Homeverse logo + +aria-label = Close Menu + + +Home +About +Service +Property +Blog +Contact + +aria-label = Search + +Search + +aria-label = Profile + +Profile + +aria-label = Cart + +Cart + +aria-label = Open Menu + +Menu + + + +# HERO + + +Real Estate Agency + +Find Your Dream House By Us + +Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore. + +Make An Enquiry + +alt = Modern house model + + + +# ABOUT + +alt = House interior + +About Us + +The Leading Real Estate Rental Marketplace. + +Over 39,000 people work for us in more than 70 countries all over the This breadth of global coverage, combined with specialist services + + +Smart Home Design + + +Beautiful Scene Around + + +Exceptional Lifestyle + + +Complete 24/7 Security + +"Enimad minim veniam quis nostrud exercitation +llamco laboris. Lorem ipsum dolor sit amet" + +Our Services + + + +#SERVICE + +Our Services + +Our Main Focus + +alt = Service icon + +Buy a home + +over 1 million+ homes for sale available on the website, we can match you with a house you will want to call home. + +Find A Home + + +Rent a home + +Sell a home + + + +#PROPERTY + +Properties + +Featured Listings + +alt = New Apartment Nice View + +For Rent + + +Belmont Gardens, Chicago + + +4 + + +2 + +$34,900/Month + +New Apartment Nice View + +Beautiful Huge 1 Family House In Heart Of Westbury. Newly Renovated With New Wood + +3 + +Bedrooms + +2 + +Bathrooms + +3450 + +Square Ft + +William Seklo +Estate Agents + + + + + + +For Sales + +alt = Modern Apartments +Modern Apartments + +alt = Comfortable Apartment +Comfortable Apartment + +alt = Luxury villa in Rego Park +Luxury villa in Rego Park + + + +# FEATURES + +Our Aminities + +Building Aminities + + +Parking Space + + + + +Swimming Pool + + +Private Security + + +Medical Center + + +Library Area + + +King Size Beds + + +Smart Homes + + +Kid’s Playland + + + +# BLOG + +News & Blogs + +Leatest News Feeds + +alt = The Most Inspiring Interior Design Of 2021 + + +by: Admin + + +Interior + +The Most Inspiring Interior Design Of 2021 + + +Apr 27, 2022 + +Read More + + +alt = Recent Commercial Real Estate Transactions + +Estate + +Recent Commercial Real Estate Transactions + + +alt = Renovating a Living Room? Experts Share Their Secrets + +Room + +Renovating a Living Room? Experts Share Their Secrets + + + +# CTA + +Looking for a dream home? + +We can help you realize your dream of a new home + +Explore Properties + + + + +# FOOTER + +alt = Homeverse logo + +Lorem Ipsum is simply dummy text of the and typesetting industry. Lorem Ipsum is dummy text of the printing. + + +Brooklyn, New York, United States + + ++0123-456789 + + +contact@homeverse.com + + + + + + +Company + +About +Blog +All Products +Locations Map +FAQ +Contact us + +Services + +Order tracking +Wish List +Login +My account +Terms & Conditions +Promotional Offers + +Customer Care + +Login +My account +Wish List +Order tracking +FAQ +Contact us + +© 2022 codewithsadee. All Rights Reserved + + + +# GO TO TOP + + \ No newline at end of file diff --git a/Property Website/style-guide.md b/Property Website/style-guide.md new file mode 100644 index 0000000..ff49cba --- /dev/null +++ b/Property Website/style-guide.md @@ -0,0 +1,80 @@ +# Essential Stuff + +## Html import links + +Google font + +``` html + + + +``` + +Ionicon + +``` html + + +``` + +--- + +## Colors + +``` css +--dark-jungle-green: hsl(188, 63%, 7%); +--prussian-blue: hsl(200, 69%, 14%); +--raisin-black-1: hsl(227, 29%, 13%); +--raisin-black-2: hsl(229, 17%, 19%); +--yellow-green: hsl(89, 72%, 45%); +--orange-soda: hsl(9, 100%, 62%); +--cultured-1: hsl(0, 0%, 93%); +--cultured-2: hsl(192, 24%, 96%); +--misty-rose: hsl(7, 56%, 91%); +--alice-blue: hsl(210, 100%, 97%); +--seashell: hsl(8, 100%, 97%); +--cadet: hsl(200, 15%, 43%); +--white: hsl(0, 0%, 100%); +--black: hsl(0, 0%, 0%); +--opal: hsl(180, 20%, 62%); +``` + +## Typography + +``` css +--ff-nunito-sans: "Nunito Sans", sans-serif; +--ff-poppins: "Poppins", sans-serif; + +--fs-1: 1.875rem; +--fs-2: 1.5rem; +--fs-3: 1.375rem; +--fs-4: 1.125rem; +--fs-5: 0.875rem; +--fs-6: 0.813rem; +--fs-7: 0.75rem; + +--fw-500: 500; +--fw-600: 600; +--fw-700: 700; +``` + +## Transition + +``` css +--transition: 0.25s ease; +``` + +## Spacing + +``` css +--section-padding: 100px; +``` + +## Shadow + +``` css +--shadow-1: 0 5px 20px 0 hsla(219, 56%, 21%, 0.1); +--shadow-2: 0 16px 32px hsla(188, 63%, 7%, 0.1); +``` diff --git a/README.md b/README.md index 20d8fec..1e78254 100644 --- a/README.md +++ b/README.md @@ -1 +1,26 @@ -# OHT2 \ No newline at end of file +# Fees-Management-System +1. Engineered a dynamic website using Java and NetBeans for seamless record management. +2. Deployed features like fee addition, record search, course viewing/editing, and report generation. +3. Enable fee addition with Java, offering PDF receipt printing, and Executed SQL for efficient data storage and retrieval, allowing easy post-saving information editing. +4. The developed CRUD application will offer a robust and user-friendly platform for managing data records using Java programming languages integrated with MySQL database. Users will be able to perform CRUD operations efficiently, including entering, editing, and deleting data records, thereby enhancing data management capabilities. +5. The application will contribute to improved data organization, accessibility, and reliability, ultimately facilitating effective decision-making and enhancing productivity. +6. Additionally, the integration of security measures will ensure the confidentiality and integrity of the data stored in the MySQL database, safeguarding it against potential security threats. +7. + +# Password_Manager by Cpp +Team Name: Striver +In today's digital age, the proliferation of online accounts has led to the challenge of managing numerous passwords securely. Users often resort to using weak or repetitive passwords, which compromises the security of their accounts. Therefore, there is a pressing need for a robust and reliable password manager application that can securely store and manage passwords for various accounts across different platforms. + +Requirements: + +1. Secure Password Storage: Develop a mechanism to securely store passwords using encryption techniques to prevent unauthorized access. +2. Password Generation: Implement a feature for generating strong, random passwords to enhance security. +3. Account Management: Allow users to categorize and organize their accounts efficiently, facilitating easy retrieval and management. +4. Cross-Platform Compatibility: Ensure compatibility across multiple devices and platforms to enable seamless synchronization of passwords. +5. User Authentication: Implement a robust authentication mechanism to ensure that only authorized users can access the password manager application. +6. Intuitive User Interface: Design an intuitive and user-friendly interface to enhance usability and user experience. +7. Backup and Restore: Provide functionality for backing up and restoring password data to prevent data loss. +8. Password Strength Analysis: Include a feature to analyze the strength of passwords and prompt users to update weak or compromised passwords. +9. Multi-Language Support: Support multiple languages to cater to a diverse user base. +10. Customization Options: Allow users to customize settings and preferences according to their requirements. + diff --git a/build.xml b/build.xml new file mode 100644 index 0000000..b7cea42 --- /dev/null +++ b/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Fees_Managment_System. + + + diff --git a/build/classes/build-impl.xml b/build/classes/build-impl.xml new file mode 100644 index 0000000..3b5ca2e --- /dev/null +++ b/build/classes/build-impl.xml @@ -0,0 +1,1771 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/build/classes/genfiles.properties b/build/classes/genfiles.properties new file mode 100644 index 0000000..3fde964 --- /dev/null +++ b/build/classes/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=c22ef243 +build.xml.script.CRC32=d02eab33 +build.xml.stylesheet.CRC32=f85dc8f2@1.104.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=c22ef243 +nbproject/build-impl.xml.script.CRC32=b72dbf07 +nbproject/build-impl.xml.stylesheet.CRC32=12e0a6c2@1.104.0.48 diff --git a/build/classes/project.properties b/build/classes/project.properties new file mode 100644 index 0000000..e6ca430 --- /dev/null +++ b/build/classes/project.properties @@ -0,0 +1,125 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +application.title=Fees_Managment_System +application.vendor=yash +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/Fees_Managment_System.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/Fees_Managment_System +endorsed.classpath= +excludes= +file.reference.commons-collections4-4.4.jar=C:\\Users\\yash\\Downloads\\commons-collections4-4.4.jar +file.reference.jcalendar-1.4.jar=C:\\Users\\yash\\OneDrive\\Desktop\\jcalendar-1.4.jar +file.reference.mysql-connector-java-8.0.27.jar=C:\\Users\\yash\\Downloads\\mysql-connector-java-8.0.27\\mysql-connector-java-8.0.27.jar +file.reference.mysql-connector-java-8.0.27.jar-1=C:\\Users\\yash\\OneDrive\\Desktop\\java\\mysql-connector-java-8.0.27.jar +file.reference.poi-3.17.jar=C:\\Users\\yash\\Downloads\\poi-3.17.jar +file.reference.poi-examples-3.17.jar=C:\\Users\\yash\\Downloads\\poi-examples-3.17.jar +file.reference.poi-excelant-3.17.jar=C:\\Users\\yash\\Downloads\\poi-excelant-3.17.jar +file.reference.poi-ooxml-3.17.jar=C:\\Users\\yash\\Downloads\\poi-ooxml-3.17.jar +file.reference.poi-ooxml-schemas-3.17.jar=C:\\Users\\yash\\Downloads\\poi-ooxml-schemas-3.17.jar +file.reference.poi-poi=C:\\Users\\yash\\Downloads\\poi\\poi +file.reference.poi-scratchpad-3.17.jar=C:\\Users\\yash\\Downloads\\poi-scratchpad-3.17.jar +file.reference.xmlbeans-3.0.1.jar=C:\\Users\\yash\\Downloads\\xmlbeans-3.0.1.jar +includes=** +jar.compress=false +javac.classpath=\ + ${file.reference.jcalendar-1.4.jar}:\ + ${file.reference.mysql-connector-java-8.0.27.jar}:\ + ${libs.JAVADB_DRIVER_LABEL.classpath}:\ + ${file.reference.mysql-connector-java-8.0.27.jar-1}:\ + ${libs.absolutelayout.classpath}:\ + ${file.reference.poi-poi}:\ + ${file.reference.commons-collections4-4.4.jar}:\ + ${file.reference.poi-3.17.jar}:\ + ${file.reference.poi-examples-3.17.jar}:\ + ${file.reference.poi-excelant-3.17.jar}:\ + ${file.reference.poi-ooxml-3.17.jar}:\ + ${file.reference.poi-ooxml-schemas-3.17.jar}:\ + ${file.reference.poi-scratchpad-3.17.jar}:\ + ${file.reference.xmlbeans-3.0.1.jar} +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=19 +javac.target=19 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.reference.poi-poi=C:\\Users\\yash\\Downloads\\poi\\poi\\commons-collections4-4.4.jar +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=Fees_Managment_System +main.class=fees_managment_syatem.Fees_Managment_Syatem +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +source.reference.poi-poi=C:\\Users\\yash\\Downloads\\poi\\poi\\commons-collections4-4.4.jar +src.dir=src +test.src.dir=test diff --git a/build/classes/project.xml b/build/classes/project.xml new file mode 100644 index 0000000..1d96f1b --- /dev/null +++ b/build/classes/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Fees_Managment_System + + + + + + + + + diff --git a/derby.log b/derby.log new file mode 100644 index 0000000..1b6bf35 --- /dev/null +++ b/derby.log @@ -0,0 +1,115 @@ +Sun Jul 23 19:22:08 IST 2023 Thread[#25,AWT-EventQueue-0,6,main] Cleanup action starting +java.sql.SQLException: XJ004.C : [0] Fees_Managment + at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:115) + at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:141) + at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Util.java:225) + at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Util.java:220) + at org.apache.derby.impl.jdbc.EmbedConnection.newSQLException(EmbedConnection.java:3208) + at org.apache.derby.impl.jdbc.EmbedConnection.handleDBNotFound(EmbedConnection.java:767) + at org.apache.derby.impl.jdbc.EmbedConnection.(EmbedConnection.java:437) + at org.apache.derby.iapi.jdbc.InternalDriver.getNewEmbedConnection(InternalDriver.java:630) + at org.apache.derby.iapi.jdbc.InternalDriver.connect(InternalDriver.java:295) + at org.apache.derby.iapi.jdbc.InternalDriver.connect(InternalDriver.java:922) + at org.apache.derby.iapi.jdbc.AutoloadedDriver.connect(AutoloadedDriver.java:132) + at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:683) + at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:230) + at Sign_Up_form.insertDetails(Sign_Up_form.java:121) + at Sign_Up_form.btn_signUpActionPerformed(Sign_Up_form.java:422) + at Sign_Up_form$4.actionPerformed(Sign_Up_form.java:261) + at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1972) + at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2313) + at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405) + at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262) + at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279) + at java.desktop/java.awt.Component.processMouseEvent(Component.java:6620) + at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3398) + at java.desktop/java.awt.Component.processEvent(Component.java:6385) + at java.desktop/java.awt.Container.processEvent(Container.java:2266) + at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4995) + at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324) + at java.desktop/java.awt.Component.dispatchEvent(Component.java:4827) + at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948) + at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4575) + at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516) + at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310) + at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780) + at java.desktop/java.awt.Component.dispatchEvent(Component.java:4827) + at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:775) + at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720) + at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714) + at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) + at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) + at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97) + at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:747) + at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745) + at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) + at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) + at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:744) + at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) + at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) + at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) + at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) + at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) + at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90) +Caused by: ERROR XJ004: XJ004.C : [0] Fees_Managment + at org.apache.derby.shared.common.error.StandardException.newException(StandardException.java:299) + at org.apache.derby.impl.jdbc.SQLExceptionFactory.wrapArgsForTransportAcrossDRDA(SQLExceptionFactory.java:170) + at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:75) + ... 50 more +============= begin nested exception, level (1) =========== +ERROR XJ004: XJ004.C : [0] Fees_Managment + at org.apache.derby.shared.common.error.StandardException.newException(StandardException.java:299) + at org.apache.derby.impl.jdbc.SQLExceptionFactory.wrapArgsForTransportAcrossDRDA(SQLExceptionFactory.java:170) + at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:75) + at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:141) + at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Util.java:225) + at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Util.java:220) + at org.apache.derby.impl.jdbc.EmbedConnection.newSQLException(EmbedConnection.java:3208) + at org.apache.derby.impl.jdbc.EmbedConnection.handleDBNotFound(EmbedConnection.java:767) + at org.apache.derby.impl.jdbc.EmbedConnection.(EmbedConnection.java:437) + at org.apache.derby.iapi.jdbc.InternalDriver.getNewEmbedConnection(InternalDriver.java:630) + at org.apache.derby.iapi.jdbc.InternalDriver.connect(InternalDriver.java:295) + at org.apache.derby.iapi.jdbc.InternalDriver.connect(InternalDriver.java:922) + at org.apache.derby.iapi.jdbc.AutoloadedDriver.connect(AutoloadedDriver.java:132) + at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:683) + at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:230) + at Sign_Up_form.insertDetails(Sign_Up_form.java:121) + at Sign_Up_form.btn_signUpActionPerformed(Sign_Up_form.java:422) + at Sign_Up_form$4.actionPerformed(Sign_Up_form.java:261) + at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1972) + at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2313) + at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405) + at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262) + at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279) + at java.desktop/java.awt.Component.processMouseEvent(Component.java:6620) + at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3398) + at java.desktop/java.awt.Component.processEvent(Component.java:6385) + at java.desktop/java.awt.Container.processEvent(Container.java:2266) + at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4995) + at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324) + at java.desktop/java.awt.Component.dispatchEvent(Component.java:4827) + at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948) + at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4575) + at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516) + at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310) + at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780) + at java.desktop/java.awt.Component.dispatchEvent(Component.java:4827) + at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:775) + at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720) + at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714) + at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) + at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) + at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97) + at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:747) + at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745) + at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) + at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) + at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:744) + at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) + at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) + at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) + at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) + at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) + at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90) +============= end nested exception, level (1) =========== +Cleanup action completed diff --git a/manifest.mf b/manifest.mf new file mode 100644 index 0000000..1574df4 --- /dev/null +++ b/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/nbproject/build-impl.xml b/nbproject/build-impl.xml new file mode 100644 index 0000000..3b5ca2e --- /dev/null +++ b/nbproject/build-impl.xml @@ -0,0 +1,1771 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/nbproject/genfiles.properties b/nbproject/genfiles.properties new file mode 100644 index 0000000..3fde964 --- /dev/null +++ b/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=c22ef243 +build.xml.script.CRC32=d02eab33 +build.xml.stylesheet.CRC32=f85dc8f2@1.104.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=c22ef243 +nbproject/build-impl.xml.script.CRC32=b72dbf07 +nbproject/build-impl.xml.stylesheet.CRC32=12e0a6c2@1.104.0.48 diff --git a/nbproject/project.properties b/nbproject/project.properties new file mode 100644 index 0000000..e6ca430 --- /dev/null +++ b/nbproject/project.properties @@ -0,0 +1,125 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +application.title=Fees_Managment_System +application.vendor=yash +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/Fees_Managment_System.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/Fees_Managment_System +endorsed.classpath= +excludes= +file.reference.commons-collections4-4.4.jar=C:\\Users\\yash\\Downloads\\commons-collections4-4.4.jar +file.reference.jcalendar-1.4.jar=C:\\Users\\yash\\OneDrive\\Desktop\\jcalendar-1.4.jar +file.reference.mysql-connector-java-8.0.27.jar=C:\\Users\\yash\\Downloads\\mysql-connector-java-8.0.27\\mysql-connector-java-8.0.27.jar +file.reference.mysql-connector-java-8.0.27.jar-1=C:\\Users\\yash\\OneDrive\\Desktop\\java\\mysql-connector-java-8.0.27.jar +file.reference.poi-3.17.jar=C:\\Users\\yash\\Downloads\\poi-3.17.jar +file.reference.poi-examples-3.17.jar=C:\\Users\\yash\\Downloads\\poi-examples-3.17.jar +file.reference.poi-excelant-3.17.jar=C:\\Users\\yash\\Downloads\\poi-excelant-3.17.jar +file.reference.poi-ooxml-3.17.jar=C:\\Users\\yash\\Downloads\\poi-ooxml-3.17.jar +file.reference.poi-ooxml-schemas-3.17.jar=C:\\Users\\yash\\Downloads\\poi-ooxml-schemas-3.17.jar +file.reference.poi-poi=C:\\Users\\yash\\Downloads\\poi\\poi +file.reference.poi-scratchpad-3.17.jar=C:\\Users\\yash\\Downloads\\poi-scratchpad-3.17.jar +file.reference.xmlbeans-3.0.1.jar=C:\\Users\\yash\\Downloads\\xmlbeans-3.0.1.jar +includes=** +jar.compress=false +javac.classpath=\ + ${file.reference.jcalendar-1.4.jar}:\ + ${file.reference.mysql-connector-java-8.0.27.jar}:\ + ${libs.JAVADB_DRIVER_LABEL.classpath}:\ + ${file.reference.mysql-connector-java-8.0.27.jar-1}:\ + ${libs.absolutelayout.classpath}:\ + ${file.reference.poi-poi}:\ + ${file.reference.commons-collections4-4.4.jar}:\ + ${file.reference.poi-3.17.jar}:\ + ${file.reference.poi-examples-3.17.jar}:\ + ${file.reference.poi-excelant-3.17.jar}:\ + ${file.reference.poi-ooxml-3.17.jar}:\ + ${file.reference.poi-ooxml-schemas-3.17.jar}:\ + ${file.reference.poi-scratchpad-3.17.jar}:\ + ${file.reference.xmlbeans-3.0.1.jar} +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=19 +javac.target=19 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.reference.poi-poi=C:\\Users\\yash\\Downloads\\poi\\poi\\commons-collections4-4.4.jar +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=Fees_Managment_System +main.class=fees_managment_syatem.Fees_Managment_Syatem +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +source.reference.poi-poi=C:\\Users\\yash\\Downloads\\poi\\poi\\commons-collections4-4.4.jar +src.dir=src +test.src.dir=test diff --git a/nbproject/project.xml b/nbproject/project.xml new file mode 100644 index 0000000..1d96f1b --- /dev/null +++ b/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Fees_Managment_System + + + + + + + + + diff --git a/src/fees_management_system/EditCourse.form b/src/fees_management_system/EditCourse.form new file mode 100644 index 0000000..439f43e --- /dev/null +++ b/src/fees_management_system/EditCourse.form @@ -0,0 +1,605 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + <Editor/> + <Renderer/> + </Column> + <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> + <Title/> + <Editor/> + <Renderer/> + </Column> + <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> + <Title/> + <Editor/> + <Renderer/> + </Column> + </TableColumnModel> + </Property> + <Property name="tableHeader" type="javax.swing.table.JTableHeader" editor="org.netbeans.modules.form.editors2.JTableHeaderEditor"> + <TableHeader reorderingAllowed="true" resizingAllowed="true"/> + </Property> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="tblCourseDataMouseClicked"/> + <EventHandler event="mouseReleased" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="tblCourseDataMouseReleased"/> + </Events> + </Component> + </SubComponents> + </Container> + <Component class="javax.swing.JTextField" name="txtCoursePrice"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="130" y="300" width="190" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtCourseId"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="130" y="200" width="190" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtCourseName"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="130" y="250" width="190" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblCourseName"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="14" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Course Name :"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="20" y="250" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblCoursePrice"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="14" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Course Price :"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="20" y="300" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblCourseId"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="14" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Course Id :"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="20" y="200" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JButton" name="btnUpdate"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="UPDATE"/> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnUpdateActionPerformed"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="120" y="380" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JButton" name="btnDelete"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="DELETE"/> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnDeleteActionPerformed"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="240" y="380" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JButton" name="btnAdd"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="ADD"/> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnAddActionPerformed"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="380" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblHeading"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="b5" green="89" red="0" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="Edit Course Details"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="420" y="20" width="210" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="jTextField1"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="b5" green="89" red="0" type="rgb"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="b5" green="89" red="0" type="rgb"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jTextField1ActionPerformed"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="414" y="50" width="210" height="7"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblBack"> + <Properties> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/back1.png"/> + </Property> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="lblBackMouseClicked"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="20" y="20" width="40" height="30"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + </SubComponents> +</Form> diff --git a/src/fees_management_system/EditCourse.java b/src/fees_management_system/EditCourse.java new file mode 100644 index 0000000..8b59206 --- /dev/null +++ b/src/fees_management_system/EditCourse.java @@ -0,0 +1,648 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/GUIForms/JFrame.java to edit this template + */ +package fees_managment_syatem; + +import java.awt.Color; +import java.sql.Connection; +import java.sql.DriverManager; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import javax.swing.JOptionPane; +import javax.swing.table.DefaultTableModel; +import javax.swing.table.TableModel; + +/** + * + * @author yash + */ +public class EditCourse extends javax.swing.JFrame { + + /** + * Creates new form EditCourse + */ + DefaultTableModel model; + public EditCourse() { + initComponents(); + setRecordsToTable(); + } +public void setRecordsToTable(){ + try{ + Class.forName("com.mysql.cj.jdbc.Driver"); + Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/fees_managment?zeroDateTimeBehavior=CONVERT_TO_NULL","root",""); + PreparedStatement pst=con.prepareStatement("select * from course"); + ResultSet rs=pst.executeQuery(); + while(rs.next()){ + String courseId=rs.getString("Id"); + String courseName=rs.getString("CNAME"); + String coursePrice=rs.getString("COST"); + Object[] obj={courseId,courseName,coursePrice}; + model=(DefaultTableModel)tblCourseData.getModel(); + model.addRow(obj); + } + }catch(Exception e){ + e.printStackTrace(); + } +} +public void clearTable(){ + DefaultTableModel model=(DefaultTableModel)tblCourseData.getModel(); + model.setRowCount(0); +} +public void addCourse(int id,String courseName,double coursePrice){ + try{ + Class.forName("com.mysql.cj.jdbc.Driver"); + Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/fees_managment?zeroDateTimeBehavior=CONVERT_TO_NULL","root",""); + PreparedStatement pst=con.prepareStatement("insert into course values(?,?,?)"); + pst.setInt(1,id); + pst.setString(2,courseName); + pst.setDouble(3,coursePrice); + int rowCount=pst.executeUpdate(); + if(rowCount==1){ + JOptionPane.showMessageDialog(this,"Course added successfully"); + clearTable(); + setRecordsToTable(); + }else{ + JOptionPane.showMessageDialog(this,"Course insertion failed"); + + } + }catch(Exception e){ + JOptionPane.showMessageDialog(this,"Course insertion failed"); + e.printStackTrace(); + } + } +public void update(int id,String courseName,double coursePrice){ + try{ + Class.forName("com.mysql.cj.jdbc.Driver"); + Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/fees_managment?zeroDateTimeBehavior=CONVERT_TO_NULL","root",""); + PreparedStatement pst=con.prepareStatement("UPDATE course SET CNAME=?, COST=? WHERE Id=?"); + pst.setString(1,courseName); + pst.setDouble(2,coursePrice); + pst.setInt(3,id); + int rowCount=pst.executeUpdate(); + if(rowCount==1){ + JOptionPane.showMessageDialog(this,"Course Update successfully"); + clearTable(); + setRecordsToTable(); + }else{ + JOptionPane.showMessageDialog(this,"Course Update failed"); + + } + }catch(Exception e){ + JOptionPane.showMessageDialog(this,"Course Update failed"); + e.printStackTrace(); + } +} +public void delete(int id){ + try{ + Class.forName("com.mysql.cj.jdbc.Driver"); + Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/fees_managment?zeroDateTimeBehavior=CONVERT_TO_NULL","root",""); + PreparedStatement pst=con.prepareStatement("delete from COURSE WHERE Id=?"); + pst.setInt(1,id); + int rowCount=pst.executeUpdate(); + if(rowCount==1){ + JOptionPane.showMessageDialog(this,"Course Delete successfully."); + clearTable(); + setRecordsToTable(); + }else{ + JOptionPane.showMessageDialog(this,"Course Delete failed."); + + } + }catch(Exception e){ + JOptionPane.showMessageDialog(this,"Course Delete failed"); + e.printStackTrace(); + } +} + /** + * This method is called from within the constructor to initialize the form. + * WARNING: Do NOT modify this code. The content of this method is always + * regenerated by the Form Editor. + */ + @SuppressWarnings("unchecked") + // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents + private void initComponents() { + + panelSideBar = new javax.swing.JPanel(); + panelLogOut = new javax.swing.JPanel(); + btnLogOut = new javax.swing.JLabel(); + panelHome = new javax.swing.JPanel(); + btnHome = new javax.swing.JLabel(); + panelSearchRecords = new javax.swing.JPanel(); + btnSearchRecords = new javax.swing.JLabel(); + panelEditCourse = new javax.swing.JPanel(); + btnEditCourse = new javax.swing.JLabel(); + panelCourseList = new javax.swing.JPanel(); + btnCourseList = new javax.swing.JLabel(); + panelViewAllRecords = new javax.swing.JPanel(); + btnViewAllRecords = new javax.swing.JLabel(); + panelBack = new javax.swing.JPanel(); + btnBack = new javax.swing.JLabel(); + jPanel1 = new javax.swing.JPanel(); + jScrollPane1 = new javax.swing.JScrollPane(); + tblCourseData = new javax.swing.JTable(); + txtCoursePrice = new javax.swing.JTextField(); + txtCourseId = new javax.swing.JTextField(); + txtCourseName = new javax.swing.JTextField(); + lblCourseName = new javax.swing.JLabel(); + lblCoursePrice = new javax.swing.JLabel(); + lblCourseId = new javax.swing.JLabel(); + btnUpdate = new javax.swing.JButton(); + btnDelete = new javax.swing.JButton(); + btnAdd = new javax.swing.JButton(); + lblHeading = new javax.swing.JLabel(); + jTextField1 = new javax.swing.JTextField(); + lblBack = new javax.swing.JLabel(); + + setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); + getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + panelSideBar.setBackground(new java.awt.Color(255, 102, 102)); + panelSideBar.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + panelLogOut.setBackground(new java.awt.Color(255, 102, 102)); + panelLogOut.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelLogOut.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnLogOut.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnLogOut.setForeground(new java.awt.Color(255, 255, 255)); + btnLogOut.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/exit.png"))); // NOI18N + btnLogOut.setText(" Logout"); + btnLogOut.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + btnLogOutMouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnLogOutMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnLogOutMouseExited(evt); + } + }); + panelLogOut.add(btnLogOut, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 2, 260, 50)); + + panelSideBar.add(panelLogOut, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 530, 320, 50)); + + panelHome.setBackground(new java.awt.Color(255, 102, 102)); + panelHome.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelHome.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnHome.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnHome.setForeground(new java.awt.Color(255, 255, 255)); + btnHome.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/home.png"))); // NOI18N + btnHome.setText(" HOME"); + btnHome.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + btnHomeMouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnHomeMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnHomeMouseExited(evt); + } + }); + panelHome.add(btnHome, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 0, 310, 50)); + + panelSideBar.add(panelHome, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 60, 320, 50)); + + panelSearchRecords.setBackground(new java.awt.Color(255, 102, 102)); + panelSearchRecords.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelSearchRecords.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnSearchRecords.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnSearchRecords.setForeground(new java.awt.Color(255, 255, 255)); + btnSearchRecords.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/search2.png"))); // NOI18N + btnSearchRecords.setText(" Search Records"); + btnSearchRecords.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + btnSearchRecordsMouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnSearchRecordsMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnSearchRecordsMouseExited(evt); + } + }); + panelSearchRecords.add(btnSearchRecords, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 0, 310, 60)); + + panelSideBar.add(panelSearchRecords, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 130, 320, 50)); + + panelEditCourse.setBackground(new java.awt.Color(255, 102, 102)); + panelEditCourse.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelEditCourse.setFont(new java.awt.Font("Segoe UI", 1, 24)); // NOI18N + panelEditCourse.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnEditCourse.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnEditCourse.setForeground(new java.awt.Color(255, 255, 255)); + btnEditCourse.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/edit2.png"))); // NOI18N + btnEditCourse.setText(" Edit Course"); + btnEditCourse.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + btnEditCourseMouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnEditCourseMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnEditCourseMouseExited(evt); + } + }); + panelEditCourse.add(btnEditCourse, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 0, 260, -1)); + + panelSideBar.add(panelEditCourse, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 210, 320, 50)); + + panelCourseList.setBackground(new java.awt.Color(255, 102, 102)); + panelCourseList.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelCourseList.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnCourseList.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnCourseList.setForeground(new java.awt.Color(255, 255, 255)); + btnCourseList.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/list.png"))); // NOI18N + btnCourseList.setText(" Course List"); + btnCourseList.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + btnCourseListMouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnCourseListMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnCourseListMouseExited(evt); + } + }); + panelCourseList.add(btnCourseList, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, -10, 260, -1)); + + panelSideBar.add(panelCourseList, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 290, 320, 50)); + + panelViewAllRecords.setBackground(new java.awt.Color(255, 102, 102)); + panelViewAllRecords.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelViewAllRecords.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnViewAllRecords.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnViewAllRecords.setForeground(new java.awt.Color(255, 255, 255)); + btnViewAllRecords.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/view all record.png"))); // NOI18N + btnViewAllRecords.setText(" View All Records"); + btnViewAllRecords.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + btnViewAllRecordsMouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnViewAllRecordsMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnViewAllRecordsMouseExited(evt); + } + }); + panelViewAllRecords.add(btnViewAllRecords, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 300, -1)); + + panelSideBar.add(panelViewAllRecords, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 370, 320, 50)); + + panelBack.setBackground(new java.awt.Color(255, 102, 102)); + panelBack.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelBack.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnBack.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnBack.setForeground(new java.awt.Color(255, 255, 255)); + btnBack.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/left-arrow.png"))); // NOI18N + btnBack.setText(" Back"); + btnBack.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + btnBackMouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnBackMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnBackMouseExited(evt); + } + }); + panelBack.add(btnBack, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, -10, 260, -1)); + + panelSideBar.add(panelBack, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 450, 320, 50)); + + getContentPane().add(panelSideBar, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 390, 640)); + + jPanel1.setBackground(new java.awt.Color(255, 204, 204)); + jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + tblCourseData.setModel(new javax.swing.table.DefaultTableModel( + new Object [][] { + + }, + new String [] { + "CourseId", "CourseName", "CoursePrice" + } + )); + tblCourseData.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + tblCourseDataMouseClicked(evt); + } + public void mouseReleased(java.awt.event.MouseEvent evt) { + tblCourseDataMouseReleased(evt); + } + }); + jScrollPane1.setViewportView(tblCourseData); + + jPanel1.add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(370, 90, 500, 530)); + jPanel1.add(txtCoursePrice, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 300, 190, -1)); + jPanel1.add(txtCourseId, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 200, 190, -1)); + jPanel1.add(txtCourseName, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 250, 190, -1)); + + lblCourseName.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N + lblCourseName.setText("Course Name :"); + jPanel1.add(lblCourseName, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 250, -1, -1)); + + lblCoursePrice.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N + lblCoursePrice.setText("Course Price :"); + jPanel1.add(lblCoursePrice, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 300, -1, -1)); + + lblCourseId.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N + lblCourseId.setText("Course Id :"); + jPanel1.add(lblCourseId, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 200, -1, -1)); + + btnUpdate.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + btnUpdate.setText("UPDATE"); + btnUpdate.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + btnUpdateActionPerformed(evt); + } + }); + jPanel1.add(btnUpdate, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 380, -1, -1)); + + btnDelete.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + btnDelete.setText("DELETE"); + btnDelete.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + btnDeleteActionPerformed(evt); + } + }); + jPanel1.add(btnDelete, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 380, -1, -1)); + + btnAdd.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + btnAdd.setText("ADD"); + btnAdd.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + btnAddActionPerformed(evt); + } + }); + jPanel1.add(btnAdd, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 380, -1, -1)); + + lblHeading.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + lblHeading.setForeground(new java.awt.Color(0, 137, 181)); + lblHeading.setText("Edit Course Details"); + jPanel1.add(lblHeading, new org.netbeans.lib.awtextra.AbsoluteConstraints(420, 20, 210, -1)); + + jTextField1.setBackground(new java.awt.Color(0, 137, 181)); + jTextField1.setForeground(new java.awt.Color(0, 137, 181)); + jTextField1.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jTextField1ActionPerformed(evt); + } + }); + jPanel1.add(jTextField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(414, 50, 210, 7)); + + lblBack.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/back1.png"))); // NOI18N + lblBack.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + lblBackMouseClicked(evt); + } + }); + jPanel1.add(lblBack, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 20, 40, 30)); + + getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(390, 0, 900, 640)); + + pack(); + setLocationRelativeTo(null); + }// </editor-fold>//GEN-END:initComponents + + private void btnLogOutMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnLogOutMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelLogOut.setBackground(clr); + }//GEN-LAST:event_btnLogOutMouseEntered + + private void btnLogOutMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnLogOutMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelLogOut.setBackground(clr); + }//GEN-LAST:event_btnLogOutMouseExited + + private void btnHomeMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnHomeMouseClicked + HomePage home=new HomePage(); + home.setVisible(true); + this.dispose(); + }//GEN-LAST:event_btnHomeMouseClicked + + private void btnHomeMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnHomeMouseEntered + Color clr=new Color(255,204,204); + panelHome.setBackground(clr); + }//GEN-LAST:event_btnHomeMouseEntered + + private void btnHomeMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnHomeMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelHome.setBackground(clr); + }//GEN-LAST:event_btnHomeMouseExited + + private void btnSearchRecordsMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnSearchRecordsMouseClicked +SearchRecords records=new SearchRecords(); +records.setVisible(true); +this.dispose(); + }//GEN-LAST:event_btnSearchRecordsMouseClicked + + private void btnSearchRecordsMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnSearchRecordsMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelSearchRecords.setBackground(clr); + }//GEN-LAST:event_btnSearchRecordsMouseEntered + + private void btnSearchRecordsMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnSearchRecordsMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelSearchRecords.setBackground(clr); + }//GEN-LAST:event_btnSearchRecordsMouseExited + + private void btnEditCourseMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnEditCourseMouseClicked +EditCourse edit=new EditCourse(); +edit.setVisible(true); +this.dispose(); + }//GEN-LAST:event_btnEditCourseMouseClicked + + private void btnEditCourseMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnEditCourseMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelEditCourse.setBackground(clr); + }//GEN-LAST:event_btnEditCourseMouseEntered + + private void btnEditCourseMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnEditCourseMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelEditCourse.setBackground(clr); + }//GEN-LAST:event_btnEditCourseMouseExited + + private void btnCourseListMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnCourseListMouseClicked + + }//GEN-LAST:event_btnCourseListMouseClicked + + private void btnCourseListMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnCourseListMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelCourseList.setBackground(clr); + }//GEN-LAST:event_btnCourseListMouseEntered + + private void btnCourseListMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnCourseListMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelCourseList.setBackground(clr); + }//GEN-LAST:event_btnCourseListMouseExited + + private void btnViewAllRecordsMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnViewAllRecordsMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelViewAllRecords.setBackground(clr); + }//GEN-LAST:event_btnViewAllRecordsMouseEntered + + private void btnViewAllRecordsMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnViewAllRecordsMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelViewAllRecords.setBackground(clr); + }//GEN-LAST:event_btnViewAllRecordsMouseExited + + private void btnBackMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnBackMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelBack.setBackground(clr); + }//GEN-LAST:event_btnBackMouseEntered + + private void btnBackMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnBackMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelBack.setBackground(clr); + }//GEN-LAST:event_btnBackMouseExited + + private void tblCourseDataMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tblCourseDataMouseReleased + // TODO add your handling code here: + }//GEN-LAST:event_tblCourseDataMouseReleased + + private void tblCourseDataMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tblCourseDataMouseClicked + int rowNo=tblCourseData.getSelectedRow(); + TableModel model=tblCourseData.getModel(); + txtCourseId.setText(model.getValueAt(rowNo,0 ).toString()); + txtCourseName.setText((String)model.getValueAt(rowNo, 1)); + txtCoursePrice.setText(model.getValueAt(rowNo, 2).toString()); + }//GEN-LAST:event_tblCourseDataMouseClicked + + private void btnAddActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAddActionPerformed + int id=Integer.parseInt(txtCourseId.getText()); + String cname=txtCourseName.getText(); + double cost=Double.parseDouble(txtCoursePrice.getText()); + addCourse(id,cname,cost); + }//GEN-LAST:event_btnAddActionPerformed + + private void btnUpdateActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnUpdateActionPerformed + int id=Integer.parseInt(txtCourseId.getText()); + String cname=txtCourseName.getText(); + double cost=Double.parseDouble(txtCoursePrice.getText()); + update(id,cname,cost); + }//GEN-LAST:event_btnUpdateActionPerformed + + private void btnDeleteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDeleteActionPerformed + int id=Integer.parseInt(txtCourseId.getText()); + delete(id); + }//GEN-LAST:event_btnDeleteActionPerformed + + private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField1ActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_jTextField1ActionPerformed + + private void lblBackMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblBackMouseClicked + HomePage home=new HomePage(); + home.setVisible(true); + this.dispose(); + }//GEN-LAST:event_lblBackMouseClicked + + private void btnViewAllRecordsMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnViewAllRecordsMouseClicked + ViewAllRecords view=new ViewAllRecords(); + view.setVisible(true); + this.dispose(); + }//GEN-LAST:event_btnViewAllRecordsMouseClicked + + private void btnBackMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnBackMouseClicked + HomePage home=new HomePage(); + home.setVisible(true); + this.dispose(); + }//GEN-LAST:event_btnBackMouseClicked + + private void btnLogOutMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnLogOutMouseClicked + this.dispose(); + }//GEN-LAST:event_btnLogOutMouseClicked + + /** + * @param args the command line arguments + */ + public static void main(String args[]) { + /* Set the Nimbus look and feel */ + //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> + /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. + * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html + */ + try { + for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { + if ("Nimbus".equals(info.getName())) { + javax.swing.UIManager.setLookAndFeel(info.getClassName()); + break; + } + } + } catch (ClassNotFoundException ex) { + java.util.logging.Logger.getLogger(EditCourse.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (InstantiationException ex) { + java.util.logging.Logger.getLogger(EditCourse.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (IllegalAccessException ex) { + java.util.logging.Logger.getLogger(EditCourse.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (javax.swing.UnsupportedLookAndFeelException ex) { + java.util.logging.Logger.getLogger(EditCourse.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } + //</editor-fold> + + /* Create and display the form */ + java.awt.EventQueue.invokeLater(new Runnable() { + public void run() { + new EditCourse().setVisible(true); + } + }); + } + + // Variables declaration - do not modify//GEN-BEGIN:variables + private javax.swing.JButton btnAdd; + private javax.swing.JLabel btnBack; + private javax.swing.JLabel btnCourseList; + private javax.swing.JButton btnDelete; + private javax.swing.JLabel btnEditCourse; + private javax.swing.JLabel btnHome; + private javax.swing.JLabel btnLogOut; + private javax.swing.JLabel btnSearchRecords; + private javax.swing.JButton btnUpdate; + private javax.swing.JLabel btnViewAllRecords; + private javax.swing.JPanel jPanel1; + private javax.swing.JScrollPane jScrollPane1; + private javax.swing.JTextField jTextField1; + private javax.swing.JLabel lblBack; + private javax.swing.JLabel lblCourseId; + private javax.swing.JLabel lblCourseName; + private javax.swing.JLabel lblCoursePrice; + private javax.swing.JLabel lblHeading; + private javax.swing.JPanel panelBack; + private javax.swing.JPanel panelCourseList; + private javax.swing.JPanel panelEditCourse; + private javax.swing.JPanel panelHome; + private javax.swing.JPanel panelLogOut; + private javax.swing.JPanel panelSearchRecords; + private javax.swing.JPanel panelSideBar; + private javax.swing.JPanel panelViewAllRecords; + private javax.swing.JTable tblCourseData; + private javax.swing.JTextField txtCourseId; + private javax.swing.JTextField txtCourseName; + private javax.swing.JTextField txtCoursePrice; + // End of variables declaration//GEN-END:variables +} diff --git a/src/fees_management_system/Fees_Managment_Syatem.java b/src/fees_management_system/Fees_Managment_Syatem.java new file mode 100644 index 0000000..06567b1 --- /dev/null +++ b/src/fees_management_system/Fees_Managment_Syatem.java @@ -0,0 +1,20 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template + */ +package fees_managment_syatem; + +/** + * + * @author yash + */ +public class Fees_Managment_Syatem { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/src/fees_management_system/GenerateReport.form b/src/fees_management_system/GenerateReport.form new file mode 100644 index 0000000..c10ad89 --- /dev/null +++ b/src/fees_management_system/GenerateReport.form @@ -0,0 +1,738 @@ +<?xml version="1.0" encoding="UTF-8" ?> + +<Form version="1.5" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo"> + <Properties> + <Property name="defaultCloseOperation" type="int" value="3"/> + </Properties> + <SyntheticProperties> + <SyntheticProperty name="formSizePolicy" type="int" value="1"/> + <SyntheticProperty name="generateCenter" type="boolean" value="true"/> + </SyntheticProperties> + <AuxValues> + <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/> + <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/> + <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/> + <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/> + <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/> + <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,2,126,0,0,5,6"/> + </AuxValues> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Container class="javax.swing.JPanel" name="panelSideBar"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="0" y="0" width="390" height="860"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Container class="javax.swing.JPanel" name="panelLogOut"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="30" y="540" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnLogOut"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/exit.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" Logout"/> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnLogOutMouseClicked"/> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnLogOutMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnLogOutMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="2" width="260" height="50"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelHome"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="30" y="60" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnHome"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/home.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" HOME"/> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnHomeMouseClicked"/> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnHomeMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnHomeMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="0" width="310" height="50"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelSearchRecords"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="30" y="140" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnSearchRecords"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/search2.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" Search Records"/> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnSearchRecordsMouseClicked"/> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnSearchRecordsMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnSearchRecordsMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="0" width="310" height="60"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelEditCourse"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="24" style="1"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="30" y="220" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnEditCourse"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/edit2.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" Edit Course"/> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnEditCourseMouseClicked"/> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnEditCourseMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnEditCourseMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="0" width="260" height="-1"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelCourseList"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="30" y="300" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnCourseList"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/list.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" Course List"/> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnCourseListMouseClicked"/> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnCourseListMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnCourseListMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="0" y="-10" width="260" height="-1"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelViewAllRecords"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="30" y="380" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnViewAllRecords"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/view all record.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" View All Records"/> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnViewAllRecordsMouseClicked"/> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnViewAllRecordsMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnViewAllRecordsMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="0" y="0" width="300" height="50"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelBack"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="30" y="460" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnBack"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/left-arrow.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" Back"/> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnBackMouseClicked"/> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnBackMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnBackMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="0" y="-10" width="260" height="-1"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="jPanel1"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="cc" green="cc" red="ff" type="rgb"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="390" y="0" width="900" height="640"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="lblFromDate"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="18" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="From Date :"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="120" y="120" width="100" height="20"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JComboBox" name="jComboBox1"> + <Properties> + <Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor"> + <StringArray count="6"> + <StringItem index="0" value="JAVA "/> + <StringItem index="1" value="WEB DEVELOPMENT"/> + <StringItem index="2" value="SPRINGBOOT"/> + <StringItem index="3" value="C"/> + <StringItem index="4" value="C++"/> + <StringItem index="5" value="PYTHON"/> + </StringArray> + </Property> + </Properties> + <AuxValues> + <AuxValue name="JavaCodeGenerator_TypeParameters" type="java.lang.String" value="<String>"/> + </AuxValues> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="140" y="70" width="260" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblSelectCourse"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="18" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Select Course :"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="20" y="70" width="120" height="20"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblToDate"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="18" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="To Date :"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="360" y="120" width="80" height="20"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblSelectDate"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="18" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Select Date :"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="20" y="120" width="100" height="20"/> + </Constraint> + </Constraints> + </Component> + <Component class="com.toedter.calendar.JDateChooser" name="dateChosserFrom"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="220" y="120" width="130" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="com.toedter.calendar.JDateChooser" name="dateChosserToDate"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="440" y="120" width="130" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JButton" name="btnPrint"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="14" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Print"/> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnPrintActionPerformed"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="230" y="170" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JButton" name="btnBrowser"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="14" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Browser"/> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnBrowserActionPerformed"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="320" y="220" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtFilePath"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="30" y="220" width="270" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JButton" name="btnExportToExcel"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="14" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Export To Excel"/> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnExportToExcelActionPerformed"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="420" y="220" width="160" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JButton" name="btnSubmit"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="14" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Submit"/> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnSubmitActionPerformed"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="30" y="170" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Container class="javax.swing.JScrollPane" name="jScrollPane1"> + <AuxValues> + <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/> + </AuxValues> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="280" width="840" height="350"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/> + <SubComponents> + <Component class="javax.swing.JTable" name="tblGenerateReport"> + <Properties> + <Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor"> + <Table columnCount="6" rowCount="1"> + <Column editable="true" title="ReceiptNo" type="java.lang.Object"/> + <Column editable="true" title="StudentName" type="java.lang.Object"/> + <Column editable="true" title="PaymentMode" type="java.lang.Object"/> + <Column editable="true" title="CourseName" type="java.lang.Object"/> + <Column editable="true" title="Amount" type="java.lang.Object"/> + <Column editable="true" title="Remark" type="java.lang.Object"/> + </Table> + </Property> + <Property name="columnModel" type="javax.swing.table.TableColumnModel" editor="org.netbeans.modules.form.editors2.TableColumnModelEditor"> + <TableColumnModel selectionModel="0"> + <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> + <Title/> + <Editor/> + <Renderer/> + </Column> + <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> + <Title/> + <Editor/> + <Renderer/> + </Column> + <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> + <Title/> + <Editor/> + <Renderer/> + </Column> + <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> + <Title/> + <Editor/> + <Renderer/> + </Column> + <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> + <Title/> + <Editor/> + <Renderer/> + </Column> + <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> + <Title/> + <Editor/> + <Renderer/> + </Column> + </TableColumnModel> + </Property> + <Property name="tableHeader" type="javax.swing.table.JTableHeader" editor="org.netbeans.modules.form.editors2.JTableHeaderEditor"> + <TableHeader reorderingAllowed="true" resizingAllowed="true"/> + </Property> + </Properties> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="jPanel2"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.LineBorderInfo"> + <LineBorder> + <Color PropertyName="color" blue="b5" green="89" red="0" type="rgb"/> + </LineBorder> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="590" y="20" width="290" height="250"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="lblSummaryTotalAmountCollected"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="14" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Total Amount Collected :"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="120" width="160" height="20"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblTotalAmountsInWords"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="14" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Total Amounts In Words :"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="160" width="160" height="20"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblSelectCourse3"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="b5" green="89" red="0" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="Summary"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="110" y="10" width="70" height="20"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblSummaryCourseSelected"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="14" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Course Selected :"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="80" width="110" height="20"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="jTextField1"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="b5" green="89" red="0" type="rgb"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="100" y="30" width="70" height="5"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblDisplaySummaryCourseSelected"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="120" y="80" width="150" height="20"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblDisplaySummaryTotalAmountCollected"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="170" y="120" width="100" height="20"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblDisplaySummaryTotalAmountInWords"> + <Properties> + <Property name="verticalAlignment" type="int" value="1"/> + <Property name="verticalTextPosition" type="int" value="1"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="190" width="260" height="50"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + </SubComponents> + </Container> + </SubComponents> +</Form> diff --git a/src/fees_management_system/GenerateReport.java b/src/fees_management_system/GenerateReport.java new file mode 100644 index 0000000..71ae93a --- /dev/null +++ b/src/fees_management_system/GenerateReport.java @@ -0,0 +1,692 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/GUIForms/JFrame.java to edit this template + */ +package fees_managment_syatem; + +import java.awt.Color; +import java.io.File; +import java.io.FileOutputStream; +import java.sql.Connection; +import java.sql.DriverManager; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.text.MessageFormat; +import java.text.SimpleDateFormat; +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.util.Set; +import java.util.TreeMap; +import javax.swing.JFileChooser; +import javax.swing.JOptionPane; +import javax.swing.JTable; +import javax.swing.table.DefaultTableModel; +import org.apache.poi.xssf.usermodel.XSSFCell; +import org.apache.poi.xssf.usermodel.XSSFRow; +import org.apache.poi.xssf.usermodel.XSSFSheet; +import org.apache.poi.xssf.usermodel.XSSFWorkbook; + +/** + * + * @author yash + */ +public class GenerateReport extends javax.swing.JFrame { + + /** + * Creates new form GenerateReport + */ + DefaultTableModel model; + public GenerateReport() { + initComponents(); + fillComboBox(); + } + public void fillComboBox(){ + try{ + Class.forName("com.mysql.cj.jdbc.Driver"); + Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/fees_managment?zeroDateTimeBehavior=CONVERT_TO_NULL","root",""); + PreparedStatement pst=con.prepareStatement("select CNAME from course"); + ResultSet rs=pst.executeQuery(); + while(rs.next()){ + jComboBox1.addItem(rs.getString("CNAME")); + } + }catch(Exception e){ + e.printStackTrace(); + } + } + public void setRecordsToTable(){ + String cname=jComboBox1.getSelectedItem().toString(); + SimpleDateFormat dateFormat=new SimpleDateFormat("yyyy-MM-dd"); + String fromDate=dateFormat.format(dateChosserFrom.getDate()); + String toDate=dateFormat.format(dateChosserToDate.getDate()); + Float amountTotal=0.0f; + try{ + Class.forName("com.mysql.cj.jdbc.Driver"); + Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/fees_managment?zeroDateTimeBehavior=CONVERT_TO_NULL","root",""); + PreparedStatement pst=con.prepareStatement("select * from fees_details where date between ? and ? and courseName = ?"); + pst.setString(1,fromDate); + pst.setString(2,toDate); + pst.setString(3,cname); + ResultSet rs=pst.executeQuery(); + while(rs.next()){ + String recieptNo=rs.getString("recieptNo"); + String rollNo=rs.getString("rollNo"); + String studentName=rs.getString("studentName"); + String courseName=rs.getString("courseName"); + float amount=rs.getFloat("totalAmount"); + String remark=rs.getString("remark"); + amountTotal = amountTotal + amount; + Object[] obj={recieptNo,rollNo,studentName,courseName,amount,remark}; + model=(DefaultTableModel)tblGenerateReport.getModel(); + model.addRow(obj); + } + lblDisplaySummaryCourseSelected.setText(cname); + lblDisplaySummaryTotalAmountCollected.setText(amountTotal.toString()); + lblDisplaySummaryTotalAmountInWords.setText(NumberToWordsConverter.convert(amountTotal.intValue())+" only /-"); + }catch(Exception e){ + e.printStackTrace(); + } +} + public void clearTable(){ + DefaultTableModel model=(DefaultTableModel)tblGenerateReport.getModel(); + model.setRowCount(1); +} + public void exportToExcel(){ + XSSFWorkbook wb=new XSSFWorkbook(); + XSSFSheet ws=wb.createSheet(); + model=(DefaultTableModel)tblGenerateReport.getModel(); + TreeMap<String,Object[]> map=new TreeMap<>(); + map.put("0",new Object[]{model.getColumnName(0),model.getColumnName(1),model.getColumnName(2),model.getColumnName(3),model.getColumnName(4),model.getColumnName(5)}); + for(int i=1;i<model.getRowCount();i++){ + map.put(Integer.toString(i),new Object[]{model.getValueAt(i, 0),model.getValueAt(i,1),model.getValueAt(i,2),model.getValueAt(i,3),model.getValueAt(i,4),model.getValueAt(i,5)}); + } + Set<String> id=map.keySet(); + XSSFRow fRow; + int rowId=0; + for(String key : id){ + fRow=ws.createRow(rowId++); + Object[] value=map.get(key); + int cellId=0; + for(Object object : value){ + XSSFCell cell=fRow.createCell(cellId++); + cell.setCellValue(object.toString()); + } + + } + try(FileOutputStream fos = new FileOutputStream(new File(txtFilePath.getText()))){ + wb.write(fos); + JOptionPane.showMessageDialog(this,"File Exported Successfully : "+txtFilePath.getText()); + }catch(Exception e){ + e.printStackTrace(); + } + for(Map.Entry<String,Object[]> entry : map.entrySet()){ + String key=entry.getKey(); + Object[] value=entry.getValue(); + System.out.println(Arrays.toString(value)); + } + } + /** + * This method is called from within the constructor to initialize the form. + * WARNING: Do NOT modify this code. The content of this method is always + * regenerated by the Form Editor. + */ + @SuppressWarnings("unchecked") + // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents + private void initComponents() { + + panelSideBar = new javax.swing.JPanel(); + panelLogOut = new javax.swing.JPanel(); + btnLogOut = new javax.swing.JLabel(); + panelHome = new javax.swing.JPanel(); + btnHome = new javax.swing.JLabel(); + panelSearchRecords = new javax.swing.JPanel(); + btnSearchRecords = new javax.swing.JLabel(); + panelEditCourse = new javax.swing.JPanel(); + btnEditCourse = new javax.swing.JLabel(); + panelCourseList = new javax.swing.JPanel(); + btnCourseList = new javax.swing.JLabel(); + panelViewAllRecords = new javax.swing.JPanel(); + btnViewAllRecords = new javax.swing.JLabel(); + panelBack = new javax.swing.JPanel(); + btnBack = new javax.swing.JLabel(); + jPanel1 = new javax.swing.JPanel(); + lblFromDate = new javax.swing.JLabel(); + jComboBox1 = new javax.swing.JComboBox<>(); + lblSelectCourse = new javax.swing.JLabel(); + lblToDate = new javax.swing.JLabel(); + lblSelectDate = new javax.swing.JLabel(); + dateChosserFrom = new com.toedter.calendar.JDateChooser(); + dateChosserToDate = new com.toedter.calendar.JDateChooser(); + btnPrint = new javax.swing.JButton(); + btnBrowser = new javax.swing.JButton(); + txtFilePath = new javax.swing.JTextField(); + btnExportToExcel = new javax.swing.JButton(); + btnSubmit = new javax.swing.JButton(); + jScrollPane1 = new javax.swing.JScrollPane(); + tblGenerateReport = new javax.swing.JTable(); + jPanel2 = new javax.swing.JPanel(); + lblSummaryTotalAmountCollected = new javax.swing.JLabel(); + lblTotalAmountsInWords = new javax.swing.JLabel(); + lblSelectCourse3 = new javax.swing.JLabel(); + lblSummaryCourseSelected = new javax.swing.JLabel(); + jTextField1 = new javax.swing.JTextField(); + lblDisplaySummaryCourseSelected = new javax.swing.JLabel(); + lblDisplaySummaryTotalAmountCollected = new javax.swing.JLabel(); + lblDisplaySummaryTotalAmountInWords = new javax.swing.JLabel(); + + setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); + getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + panelSideBar.setBackground(new java.awt.Color(255, 102, 102)); + panelSideBar.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + panelLogOut.setBackground(new java.awt.Color(255, 102, 102)); + panelLogOut.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelLogOut.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnLogOut.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnLogOut.setForeground(new java.awt.Color(255, 255, 255)); + btnLogOut.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/exit.png"))); // NOI18N + btnLogOut.setText(" Logout"); + btnLogOut.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + btnLogOutMouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnLogOutMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnLogOutMouseExited(evt); + } + }); + panelLogOut.add(btnLogOut, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 2, 260, 50)); + + panelSideBar.add(panelLogOut, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 540, 320, 50)); + + panelHome.setBackground(new java.awt.Color(255, 102, 102)); + panelHome.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelHome.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnHome.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnHome.setForeground(new java.awt.Color(255, 255, 255)); + btnHome.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/home.png"))); // NOI18N + btnHome.setText(" HOME"); + btnHome.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + btnHomeMouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnHomeMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnHomeMouseExited(evt); + } + }); + panelHome.add(btnHome, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 0, 310, 50)); + + panelSideBar.add(panelHome, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 60, 320, 50)); + + panelSearchRecords.setBackground(new java.awt.Color(255, 102, 102)); + panelSearchRecords.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelSearchRecords.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnSearchRecords.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnSearchRecords.setForeground(new java.awt.Color(255, 255, 255)); + btnSearchRecords.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/search2.png"))); // NOI18N + btnSearchRecords.setText(" Search Records"); + btnSearchRecords.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + btnSearchRecordsMouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnSearchRecordsMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnSearchRecordsMouseExited(evt); + } + }); + panelSearchRecords.add(btnSearchRecords, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 0, 310, 60)); + + panelSideBar.add(panelSearchRecords, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 140, 320, 50)); + + panelEditCourse.setBackground(new java.awt.Color(255, 102, 102)); + panelEditCourse.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelEditCourse.setFont(new java.awt.Font("Segoe UI", 1, 24)); // NOI18N + panelEditCourse.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnEditCourse.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnEditCourse.setForeground(new java.awt.Color(255, 255, 255)); + btnEditCourse.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/edit2.png"))); // NOI18N + btnEditCourse.setText(" Edit Course"); + btnEditCourse.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + btnEditCourseMouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnEditCourseMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnEditCourseMouseExited(evt); + } + }); + panelEditCourse.add(btnEditCourse, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 0, 260, -1)); + + panelSideBar.add(panelEditCourse, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 220, 320, 50)); + + panelCourseList.setBackground(new java.awt.Color(255, 102, 102)); + panelCourseList.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelCourseList.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnCourseList.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnCourseList.setForeground(new java.awt.Color(255, 255, 255)); + btnCourseList.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/list.png"))); // NOI18N + btnCourseList.setText(" Course List"); + btnCourseList.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + btnCourseListMouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnCourseListMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnCourseListMouseExited(evt); + } + }); + panelCourseList.add(btnCourseList, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, -10, 260, -1)); + + panelSideBar.add(panelCourseList, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 300, 320, 50)); + + panelViewAllRecords.setBackground(new java.awt.Color(255, 102, 102)); + panelViewAllRecords.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelViewAllRecords.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnViewAllRecords.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnViewAllRecords.setForeground(new java.awt.Color(255, 255, 255)); + btnViewAllRecords.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/view all record.png"))); // NOI18N + btnViewAllRecords.setText(" View All Records"); + btnViewAllRecords.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + btnViewAllRecordsMouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnViewAllRecordsMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnViewAllRecordsMouseExited(evt); + } + }); + panelViewAllRecords.add(btnViewAllRecords, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 300, 50)); + + panelSideBar.add(panelViewAllRecords, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 380, 320, 50)); + + panelBack.setBackground(new java.awt.Color(255, 102, 102)); + panelBack.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelBack.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnBack.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnBack.setForeground(new java.awt.Color(255, 255, 255)); + btnBack.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/left-arrow.png"))); // NOI18N + btnBack.setText(" Back"); + btnBack.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + btnBackMouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnBackMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnBackMouseExited(evt); + } + }); + panelBack.add(btnBack, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, -10, 260, -1)); + + panelSideBar.add(panelBack, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 460, 320, 50)); + + getContentPane().add(panelSideBar, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 390, 860)); + + jPanel1.setBackground(new java.awt.Color(255, 204, 204)); + jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + lblFromDate.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N + lblFromDate.setText("From Date :"); + jPanel1.add(lblFromDate, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 120, 100, 20)); + + jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "JAVA ", "WEB DEVELOPMENT", "SPRINGBOOT", "C", "C++", "PYTHON" })); + jPanel1.add(jComboBox1, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 70, 260, -1)); + + lblSelectCourse.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N + lblSelectCourse.setText("Select Course :"); + jPanel1.add(lblSelectCourse, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 70, 120, 20)); + + lblToDate.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N + lblToDate.setText("To Date :"); + jPanel1.add(lblToDate, new org.netbeans.lib.awtextra.AbsoluteConstraints(360, 120, 80, 20)); + + lblSelectDate.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N + lblSelectDate.setText("Select Date :"); + jPanel1.add(lblSelectDate, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 120, 100, 20)); + jPanel1.add(dateChosserFrom, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 120, 130, -1)); + jPanel1.add(dateChosserToDate, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 120, 130, -1)); + + btnPrint.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N + btnPrint.setText("Print"); + btnPrint.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + btnPrintActionPerformed(evt); + } + }); + jPanel1.add(btnPrint, new org.netbeans.lib.awtextra.AbsoluteConstraints(230, 170, -1, -1)); + + btnBrowser.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N + btnBrowser.setText("Browser"); + btnBrowser.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + btnBrowserActionPerformed(evt); + } + }); + jPanel1.add(btnBrowser, new org.netbeans.lib.awtextra.AbsoluteConstraints(320, 220, -1, -1)); + jPanel1.add(txtFilePath, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 220, 270, -1)); + + btnExportToExcel.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N + btnExportToExcel.setText("Export To Excel"); + btnExportToExcel.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + btnExportToExcelActionPerformed(evt); + } + }); + jPanel1.add(btnExportToExcel, new org.netbeans.lib.awtextra.AbsoluteConstraints(420, 220, 160, -1)); + + btnSubmit.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N + btnSubmit.setText("Submit"); + btnSubmit.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + btnSubmitActionPerformed(evt); + } + }); + jPanel1.add(btnSubmit, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 170, -1, -1)); + + tblGenerateReport.setModel(new javax.swing.table.DefaultTableModel( + new Object [][] { + {null, null, null, null, null, null} + }, + new String [] { + "ReceiptNo", "StudentName", "PaymentMode", "CourseName", "Amount", "Remark" + } + )); + jScrollPane1.setViewportView(tblGenerateReport); + + jPanel1.add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 280, 840, 350)); + + jPanel2.setBackground(new java.awt.Color(255, 255, 255)); + jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 137, 181))); + jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + lblSummaryTotalAmountCollected.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N + lblSummaryTotalAmountCollected.setText("Total Amount Collected :"); + jPanel2.add(lblSummaryTotalAmountCollected, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 120, 160, 20)); + + lblTotalAmountsInWords.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N + lblTotalAmountsInWords.setText("Total Amounts In Words :"); + jPanel2.add(lblTotalAmountsInWords, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 160, 160, 20)); + + lblSelectCourse3.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N + lblSelectCourse3.setForeground(new java.awt.Color(0, 137, 181)); + lblSelectCourse3.setText("Summary"); + jPanel2.add(lblSelectCourse3, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 10, 70, 20)); + + lblSummaryCourseSelected.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N + lblSummaryCourseSelected.setText("Course Selected :"); + jPanel2.add(lblSummaryCourseSelected, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 80, 110, 20)); + + jTextField1.setBackground(new java.awt.Color(0, 137, 181)); + jPanel2.add(jTextField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 30, 70, 5)); + jPanel2.add(lblDisplaySummaryCourseSelected, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 80, 150, 20)); + jPanel2.add(lblDisplaySummaryTotalAmountCollected, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 120, 100, 20)); + + lblDisplaySummaryTotalAmountInWords.setVerticalAlignment(javax.swing.SwingConstants.TOP); + lblDisplaySummaryTotalAmountInWords.setVerticalTextPosition(javax.swing.SwingConstants.TOP); + jPanel2.add(lblDisplaySummaryTotalAmountInWords, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 190, 260, 50)); + + jPanel1.add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(590, 20, 290, 250)); + + getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(390, 0, 900, 640)); + + pack(); + setLocationRelativeTo(null); + }// </editor-fold>//GEN-END:initComponents + + private void btnLogOutMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnLogOutMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelLogOut.setBackground(clr); + }//GEN-LAST:event_btnLogOutMouseEntered + + private void btnLogOutMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnLogOutMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelLogOut.setBackground(clr); + }//GEN-LAST:event_btnLogOutMouseExited + + private void btnHomeMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnHomeMouseClicked + HomePage home=new HomePage(); + home.setVisible(true); + this.dispose(); + }//GEN-LAST:event_btnHomeMouseClicked + + private void btnHomeMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnHomeMouseEntered + Color clr=new Color(255,204,204); + panelHome.setBackground(clr); + }//GEN-LAST:event_btnHomeMouseEntered + + private void btnHomeMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnHomeMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelHome.setBackground(clr); + }//GEN-LAST:event_btnHomeMouseExited + + private void btnSearchRecordsMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnSearchRecordsMouseClicked +SearchRecords records=new SearchRecords(); +records.setVisible(true); +this.dispose(); + }//GEN-LAST:event_btnSearchRecordsMouseClicked + + private void btnSearchRecordsMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnSearchRecordsMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelSearchRecords.setBackground(clr); + }//GEN-LAST:event_btnSearchRecordsMouseEntered + + private void btnSearchRecordsMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnSearchRecordsMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelSearchRecords.setBackground(clr); + }//GEN-LAST:event_btnSearchRecordsMouseExited + + private void btnEditCourseMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnEditCourseMouseClicked + EditCourse edit=new EditCourse(); + edit.setVisible(true); + this.dispose(); + }//GEN-LAST:event_btnEditCourseMouseClicked + + private void btnEditCourseMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnEditCourseMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelEditCourse.setBackground(clr); + }//GEN-LAST:event_btnEditCourseMouseEntered + + private void btnEditCourseMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnEditCourseMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelEditCourse.setBackground(clr); + }//GEN-LAST:event_btnEditCourseMouseExited + + private void btnCourseListMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnCourseListMouseClicked + + }//GEN-LAST:event_btnCourseListMouseClicked + + private void btnCourseListMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnCourseListMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelCourseList.setBackground(clr); + }//GEN-LAST:event_btnCourseListMouseEntered + + private void btnCourseListMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnCourseListMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelCourseList.setBackground(clr); + }//GEN-LAST:event_btnCourseListMouseExited + + private void btnViewAllRecordsMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnViewAllRecordsMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelViewAllRecords.setBackground(clr); + }//GEN-LAST:event_btnViewAllRecordsMouseEntered + + private void btnViewAllRecordsMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnViewAllRecordsMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelViewAllRecords.setBackground(clr); + }//GEN-LAST:event_btnViewAllRecordsMouseExited + + private void btnBackMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnBackMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelBack.setBackground(clr); + }//GEN-LAST:event_btnBackMouseEntered + + private void btnBackMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnBackMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelBack.setBackground(clr); + }//GEN-LAST:event_btnBackMouseExited + + private void btnBrowserActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBrowserActionPerformed + JFileChooser fileChooser =new JFileChooser(); + fileChooser.showOpenDialog(this); + SimpleDateFormat dateFormat=new SimpleDateFormat("yyyy-MM-dd"); + String date=dateFormat.format(new Date()); + try{ + File f=fileChooser.getSelectedFile(); + String path=f.getAbsolutePath(); + path=path+"_"+date+".xlsx"; + txtFilePath.setText(path); + }catch(Exception e){ + e.printStackTrace(); + } + }//GEN-LAST:event_btnBrowserActionPerformed + + private void btnSubmitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSubmitActionPerformed + clearTable(); + setRecordsToTable(); + }//GEN-LAST:event_btnSubmitActionPerformed + + private void btnPrintActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnPrintActionPerformed + SimpleDateFormat dateFormat=new SimpleDateFormat("yyyy-MM-dd"); + String dateFrom=dateFormat.format(dateChosserFrom.getDate()); + String dateTo=dateFormat.format(dateChosserToDate.getDate()); + MessageFormat header=new MessageFormat("Report From "+dateFrom+" To "+dateTo); + MessageFormat fotter=new MessageFormat("page{0,number,integer}"); + try{ + tblGenerateReport.print(JTable.PrintMode.FIT_WIDTH,header,fotter); + }catch(Exception e){ + e.getMessage(); + } + }//GEN-LAST:event_btnPrintActionPerformed + + private void btnExportToExcelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnExportToExcelActionPerformed + exportToExcel(); + }//GEN-LAST:event_btnExportToExcelActionPerformed + + private void btnViewAllRecordsMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnViewAllRecordsMouseClicked + ViewAllRecords view=new ViewAllRecords(); + view.setVisible(true); + this.dispose(); + }//GEN-LAST:event_btnViewAllRecordsMouseClicked + + private void btnBackMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnBackMouseClicked + HomePage home=new HomePage(); + home.setVisible(true); + this.dispose(); + }//GEN-LAST:event_btnBackMouseClicked + + private void btnLogOutMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnLogOutMouseClicked +this.dispose(); // TODO add your handling code here: + }//GEN-LAST:event_btnLogOutMouseClicked + + /** + * @param args the command line arguments + */ + public static void main(String args[]) { + /* Set the Nimbus look and feel */ + //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> + /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. + * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html + */ + try { + for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { + if ("Nimbus".equals(info.getName())) { + javax.swing.UIManager.setLookAndFeel(info.getClassName()); + break; + } + } + } catch (ClassNotFoundException ex) { + java.util.logging.Logger.getLogger(GenerateReport.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (InstantiationException ex) { + java.util.logging.Logger.getLogger(GenerateReport.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (IllegalAccessException ex) { + java.util.logging.Logger.getLogger(GenerateReport.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (javax.swing.UnsupportedLookAndFeelException ex) { + java.util.logging.Logger.getLogger(GenerateReport.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } + //</editor-fold> + + /* Create and display the form */ + java.awt.EventQueue.invokeLater(new Runnable() { + public void run() { + new GenerateReport().setVisible(true); + } + }); + } + + // Variables declaration - do not modify//GEN-BEGIN:variables + private javax.swing.JLabel btnBack; + private javax.swing.JButton btnBrowser; + private javax.swing.JLabel btnCourseList; + private javax.swing.JLabel btnEditCourse; + private javax.swing.JButton btnExportToExcel; + private javax.swing.JLabel btnHome; + private javax.swing.JLabel btnLogOut; + private javax.swing.JButton btnPrint; + private javax.swing.JLabel btnSearchRecords; + private javax.swing.JButton btnSubmit; + private javax.swing.JLabel btnViewAllRecords; + private com.toedter.calendar.JDateChooser dateChosserFrom; + private com.toedter.calendar.JDateChooser dateChosserToDate; + private javax.swing.JComboBox<String> jComboBox1; + private javax.swing.JPanel jPanel1; + private javax.swing.JPanel jPanel2; + private javax.swing.JScrollPane jScrollPane1; + private javax.swing.JTextField jTextField1; + private javax.swing.JLabel lblDisplaySummaryCourseSelected; + private javax.swing.JLabel lblDisplaySummaryTotalAmountCollected; + private javax.swing.JLabel lblDisplaySummaryTotalAmountInWords; + private javax.swing.JLabel lblFromDate; + private javax.swing.JLabel lblSelectCourse; + private javax.swing.JLabel lblSelectCourse3; + private javax.swing.JLabel lblSelectDate; + private javax.swing.JLabel lblSummaryCourseSelected; + private javax.swing.JLabel lblSummaryTotalAmountCollected; + private javax.swing.JLabel lblToDate; + private javax.swing.JLabel lblTotalAmountsInWords; + private javax.swing.JPanel panelBack; + private javax.swing.JPanel panelCourseList; + private javax.swing.JPanel panelEditCourse; + private javax.swing.JPanel panelHome; + private javax.swing.JPanel panelLogOut; + private javax.swing.JPanel panelSearchRecords; + private javax.swing.JPanel panelSideBar; + private javax.swing.JPanel panelViewAllRecords; + private javax.swing.JTable tblGenerateReport; + private javax.swing.JTextField txtFilePath; + // End of variables declaration//GEN-END:variables +} diff --git a/src/fees_management_system/HomePage.form b/src/fees_management_system/HomePage.form new file mode 100644 index 0000000..7f4175f --- /dev/null +++ b/src/fees_management_system/HomePage.form @@ -0,0 +1,638 @@ +<?xml version="1.0" encoding="UTF-8" ?> + +<Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo"> + <Properties> + <Property name="defaultCloseOperation" type="int" value="3"/> + </Properties> + <SyntheticProperties> + <SyntheticProperty name="formSizePolicy" type="int" value="1"/> + <SyntheticProperty name="generateCenter" type="boolean" value="true"/> + </SyntheticProperties> + <AuxValues> + <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/> + <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/> + <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/> + <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/> + <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/> + <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,2,31,0,0,3,-82"/> + </AuxValues> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Container class="javax.swing.JPanel" name="jPanel1"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="cc" green="cc" red="ff" type="rgb"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="6" y="0" width="880" height="-1"/> + </Constraint> + </Constraints> + + <Layout> + <DimensionLayout dim="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="-2" pref="326" max="-2" attributes="0"/> + <Group type="103" groupAlignment="1" attributes="0"> + <Component id="jLabel2" min="-2" max="-2" attributes="0"/> + <Component id="jLabel1" min="-2" pref="142" max="-2" attributes="0"/> + </Group> + <EmptySpace min="0" pref="0" max="32767" attributes="0"/> + </Group> + <Group type="102" attributes="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" attributes="0"> + <EmptySpace min="-2" pref="147" max="-2" attributes="0"/> + <Component id="jLabel3" min="-2" pref="564" max="-2" attributes="0"/> + </Group> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="-2" pref="270" max="-2" attributes="0"/> + <Component id="jLabel4" min="-2" max="-2" attributes="0"/> + </Group> + </Group> + <EmptySpace pref="169" max="32767" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + <DimensionLayout dim="1"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" attributes="0"> + <EmptySpace max="-2" attributes="0"/> + <Component id="jLabel1" min="-2" max="-2" attributes="0"/> + <EmptySpace max="-2" attributes="0"/> + <Component id="jLabel2" min="-2" max="-2" attributes="0"/> + <EmptySpace max="-2" attributes="0"/> + <Component id="jLabel3" min="-2" max="-2" attributes="0"/> + <EmptySpace max="-2" attributes="0"/> + <Component id="jLabel4" min="-2" max="-2" attributes="0"/> + <EmptySpace pref="24" max="32767" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="jLabel1"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="12" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="Laxmi Charitable Trust's"/> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="jLabel2"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="18" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="Manikya Lal Verma"/> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="jLabel3"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="36" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="MLV Textile & Engineering College"/> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="jLabel4"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="12" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="Pur road, Pratap Nagar, Bilwara, Rajasthan 311001"/> + </Properties> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="jPanel2"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="6" y="144" width="-1" height="520"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Container class="javax.swing.JPanel" name="jPanel3"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="cc" green="cc" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Events> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jPanel3MouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jPanel3MouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="22" y="20" width="-1" height="-1"/> + </Constraint> + </Constraints> + + <Layout> + <DimensionLayout dim="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="1" attributes="0"> + <EmptySpace pref="18" max="32767" attributes="0"/> + <Component id="jLabel5" min="-2" max="-2" attributes="0"/> + <EmptySpace min="-2" pref="17" max="-2" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + <DimensionLayout dim="1"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="-2" pref="14" max="-2" attributes="0"/> + <Component id="jLabel5" min="-2" pref="99" max="-2" attributes="0"/> + <EmptySpace pref="23" max="32767" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="jLabel5"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/plus.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" Add Fees"/> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jLabel5MouseClicked"/> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jLabel5MouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jLabel5MouseExited"/> + </Events> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="jPanel5"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="cc" green="cc" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Events> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jPanel5MouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jPanel5MouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="595" y="20" width="250" height="-1"/> + </Constraint> + </Constraints> + + <Layout> + <DimensionLayout dim="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace max="-2" attributes="0"/> + <Component id="jLabel6" min="-2" max="-2" attributes="0"/> + <EmptySpace pref="16" max="32767" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + <DimensionLayout dim="1"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="-2" pref="18" max="-2" attributes="0"/> + <Component id="jLabel6" min="-2" pref="92" max="-2" attributes="0"/> + <EmptySpace pref="26" max="32767" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="jLabel6"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/text-book-opened-from-top-view.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" View Records"/> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jLabel6MouseClicked"/> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jLabel6MouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jLabel6MouseExited"/> + </Events> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="jPanel6"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="cc" green="cc" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Events> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jPanel6MouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jPanel6MouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="22" y="221" width="-1" height="-1"/> + </Constraint> + </Constraints> + + <Layout> + <DimensionLayout dim="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace max="-2" attributes="0"/> + <Component id="jLabel7" min="-2" max="-2" attributes="0"/> + <EmptySpace pref="29" max="32767" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + <DimensionLayout dim="1"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="-2" pref="19" max="-2" attributes="0"/> + <Component id="jLabel7" min="-2" pref="99" max="-2" attributes="0"/> + <EmptySpace pref="18" max="32767" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="jLabel7"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/edit.png"/> + </Property> + <Property name="text" type="java.lang.String" value="Edit Course"/> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jLabel7MouseClicked"/> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jLabel7MouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jLabel7MouseExited"/> + </Events> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="jPanel7"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="cc" green="cc" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Events> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jPanel7MouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jPanel7MouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="301" y="221" width="270" height="-1"/> + </Constraint> + </Constraints> + + <Layout> + <DimensionLayout dim="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace max="-2" attributes="0"/> + <Component id="jLabel8" min="-2" max="-2" attributes="0"/> + <EmptySpace pref="46" max="32767" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + <DimensionLayout dim="1"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="-2" pref="19" max="-2" attributes="0"/> + <Component id="jLabel8" min="-2" pref="99" max="-2" attributes="0"/> + <EmptySpace pref="18" max="32767" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="jLabel8"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/text-book-opened-from-top-view.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" View Course"/> + </Properties> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="jPanel8"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="cc" green="cc" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Events> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jPanel8MouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jPanel8MouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="595" y="221" width="-1" height="-1"/> + </Constraint> + </Constraints> + + <Layout> + <DimensionLayout dim="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace max="-2" attributes="0"/> + <Component id="jLabel9" min="-2" max="-2" attributes="0"/> + <EmptySpace pref="34" max="32767" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + <DimensionLayout dim="1"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="-2" pref="14" max="-2" attributes="0"/> + <Component id="jLabel9" min="-2" pref="108" max="-2" attributes="0"/> + <EmptySpace pref="14" max="32767" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="jLabel9"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/view report.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" View Report"/> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jLabel9MouseClicked"/> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jLabel9MouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jLabel9MouseExited"/> + </Events> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="jPanel9"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="cc" green="cc" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Events> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jPanel9MouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jPanel9MouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="301" y="20" width="-1" height="-1"/> + </Constraint> + </Constraints> + + <Layout> + <DimensionLayout dim="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace max="-2" attributes="0"/> + <Component id="jLabel10" min="-2" max="-2" attributes="0"/> + <EmptySpace pref="29" max="32767" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + <DimensionLayout dim="1"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="-2" pref="14" max="-2" attributes="0"/> + <Component id="jLabel10" min="-2" pref="99" max="-2" attributes="0"/> + <EmptySpace pref="23" max="32767" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="jLabel10"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/search-document.png"/> + </Property> + <Property name="text" type="java.lang.String" value="Search Records"/> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jLabel10MouseClicked"/> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jLabel10MouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jLabel10MouseExited"/> + </Events> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="jPanel4"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="cc" green="cc" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Events> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jPanel4MouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jPanel4MouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="740" y="400" width="140" height="60"/> + </Constraint> + </Constraints> + + <Layout> + <DimensionLayout dim="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace max="-2" attributes="0"/> + <Component id="jLabel12" pref="124" max="32767" attributes="0"/> + <EmptySpace max="-2" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + <DimensionLayout dim="1"> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="jLabel12" alignment="0" pref="56" max="32767" attributes="0"/> + </Group> + </DimensionLayout> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="jLabel12"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/about.png"/> + </Property> + <Property name="text" type="java.lang.String" value="About"/> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jLabel12MouseClicked"/> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jLabel12MouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jLabel12MouseExited"/> + </Events> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="jPanel10"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="cc" green="cc" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="0" y="400" width="130" height="60"/> + </Constraint> + </Constraints> + + <Layout> + <DimensionLayout dim="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace max="-2" attributes="0"/> + <Component id="jLabel13" min="-2" pref="106" max="-2" attributes="0"/> + <EmptySpace pref="14" max="32767" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + <DimensionLayout dim="1"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <Component id="jLabel13" min="-2" pref="58" max="-2" attributes="0"/> + <EmptySpace min="0" pref="0" max="32767" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="jLabel13"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/exit.png"/> + </Property> + <Property name="text" type="java.lang.String" value="Logout"/> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jLabel13MouseClicked"/> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jLabel13MouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jLabel13MouseExited"/> + </Events> + </Component> + </SubComponents> + </Container> + </SubComponents> + </Container> + </SubComponents> +</Form> diff --git a/src/fees_management_system/HomePage.java b/src/fees_management_system/HomePage.java new file mode 100644 index 0000000..64838e6 --- /dev/null +++ b/src/fees_management_system/HomePage.java @@ -0,0 +1,705 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/GUIForms/JFrame.java to edit this template + */ +package fees_managment_syatem; + +import java.awt.Color; + +/** + * + * @author yash + */ +public class HomePage extends javax.swing.JFrame { + + /** + * Creates new form HomePage + */ + public HomePage() { + initComponents(); + } + + /** + * This method is called from within the constructor to initialize the form. + * WARNING: Do NOT modify this code. The content of this method is always + * regenerated by the Form Editor. + */ + @SuppressWarnings("unchecked") + // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents + private void initComponents() { + + jPanel1 = new javax.swing.JPanel(); + jLabel1 = new javax.swing.JLabel(); + jLabel2 = new javax.swing.JLabel(); + jLabel3 = new javax.swing.JLabel(); + jLabel4 = new javax.swing.JLabel(); + jPanel2 = new javax.swing.JPanel(); + jPanel3 = new javax.swing.JPanel(); + jLabel5 = new javax.swing.JLabel(); + jPanel5 = new javax.swing.JPanel(); + jLabel6 = new javax.swing.JLabel(); + jPanel6 = new javax.swing.JPanel(); + jLabel7 = new javax.swing.JLabel(); + jPanel7 = new javax.swing.JPanel(); + jLabel8 = new javax.swing.JLabel(); + jPanel8 = new javax.swing.JPanel(); + jLabel9 = new javax.swing.JLabel(); + jPanel9 = new javax.swing.JPanel(); + jLabel10 = new javax.swing.JLabel(); + jPanel4 = new javax.swing.JPanel(); + jLabel12 = new javax.swing.JLabel(); + jPanel10 = new javax.swing.JPanel(); + jLabel13 = new javax.swing.JLabel(); + + setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); + getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + jPanel1.setBackground(new java.awt.Color(255, 204, 204)); + + jLabel1.setFont(new java.awt.Font("Times New Roman", 1, 12)); // NOI18N + jLabel1.setForeground(new java.awt.Color(255, 102, 102)); + jLabel1.setText("Laxmi Charitable Trust's"); + + jLabel2.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N + jLabel2.setForeground(new java.awt.Color(255, 102, 102)); + jLabel2.setText("Manikya Lal Verma"); + + jLabel3.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N + jLabel3.setForeground(new java.awt.Color(255, 102, 102)); + jLabel3.setText("MLV Textile & Engineering College"); + + jLabel4.setFont(new java.awt.Font("Times New Roman", 1, 12)); // NOI18N + jLabel4.setForeground(new java.awt.Color(255, 102, 102)); + jLabel4.setText("Pur road, Pratap Nagar, Bilwara, Rajasthan 311001"); + + javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); + jPanel1.setLayout(jPanel1Layout); + jPanel1Layout.setHorizontalGroup( + jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel1Layout.createSequentialGroup() + .addGap(326, 326, 326) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) + .addComponent(jLabel2) + .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGap(0, 0, Short.MAX_VALUE)) + .addGroup(jPanel1Layout.createSequentialGroup() + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel1Layout.createSequentialGroup() + .addGap(147, 147, 147) + .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 564, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGroup(jPanel1Layout.createSequentialGroup() + .addGap(270, 270, 270) + .addComponent(jLabel4))) + .addContainerGap(169, Short.MAX_VALUE)) + ); + jPanel1Layout.setVerticalGroup( + jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel1Layout.createSequentialGroup() + .addContainerGap() + .addComponent(jLabel1) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(jLabel2) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(jLabel3) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(jLabel4) + .addContainerGap(24, Short.MAX_VALUE)) + ); + + getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(6, 0, 880, -1)); + + jPanel2.setBackground(new java.awt.Color(255, 102, 102)); + jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + jPanel3.setBackground(new java.awt.Color(255, 204, 204)); + jPanel3.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + jPanel3.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseEntered(java.awt.event.MouseEvent evt) { + jPanel3MouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + jPanel3MouseExited(evt); + } + }); + + jLabel5.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N + jLabel5.setForeground(new java.awt.Color(255, 255, 255)); + jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/plus.png"))); // NOI18N + jLabel5.setText(" Add Fees"); + jLabel5.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + jLabel5MouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + jLabel5MouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + jLabel5MouseExited(evt); + } + }); + + javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); + jPanel3.setLayout(jPanel3Layout); + jPanel3Layout.setHorizontalGroup( + jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup() + .addContainerGap(18, Short.MAX_VALUE) + .addComponent(jLabel5) + .addGap(17, 17, 17)) + ); + jPanel3Layout.setVerticalGroup( + jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel3Layout.createSequentialGroup() + .addGap(14, 14, 14) + .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE) + .addContainerGap(23, Short.MAX_VALUE)) + ); + + jPanel2.add(jPanel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(22, 20, -1, -1)); + + jPanel5.setBackground(new java.awt.Color(255, 204, 204)); + jPanel5.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + jPanel5.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseEntered(java.awt.event.MouseEvent evt) { + jPanel5MouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + jPanel5MouseExited(evt); + } + }); + + jLabel6.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N + jLabel6.setForeground(new java.awt.Color(255, 255, 255)); + jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/text-book-opened-from-top-view.png"))); // NOI18N + jLabel6.setText(" View Records"); + jLabel6.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + jLabel6MouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + jLabel6MouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + jLabel6MouseExited(evt); + } + }); + + javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5); + jPanel5.setLayout(jPanel5Layout); + jPanel5Layout.setHorizontalGroup( + jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel5Layout.createSequentialGroup() + .addContainerGap() + .addComponent(jLabel6) + .addContainerGap(16, Short.MAX_VALUE)) + ); + jPanel5Layout.setVerticalGroup( + jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel5Layout.createSequentialGroup() + .addGap(18, 18, 18) + .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 92, javax.swing.GroupLayout.PREFERRED_SIZE) + .addContainerGap(26, Short.MAX_VALUE)) + ); + + jPanel2.add(jPanel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(595, 20, 250, -1)); + + jPanel6.setBackground(new java.awt.Color(255, 204, 204)); + jPanel6.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + jPanel6.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseEntered(java.awt.event.MouseEvent evt) { + jPanel6MouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + jPanel6MouseExited(evt); + } + }); + + jLabel7.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N + jLabel7.setForeground(new java.awt.Color(255, 255, 255)); + jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/edit.png"))); // NOI18N + jLabel7.setText("Edit Course"); + jLabel7.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + jLabel7MouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + jLabel7MouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + jLabel7MouseExited(evt); + } + }); + + javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6); + jPanel6.setLayout(jPanel6Layout); + jPanel6Layout.setHorizontalGroup( + jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel6Layout.createSequentialGroup() + .addContainerGap() + .addComponent(jLabel7) + .addContainerGap(29, Short.MAX_VALUE)) + ); + jPanel6Layout.setVerticalGroup( + jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel6Layout.createSequentialGroup() + .addGap(19, 19, 19) + .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE) + .addContainerGap(18, Short.MAX_VALUE)) + ); + + jPanel2.add(jPanel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(22, 221, -1, -1)); + + jPanel7.setBackground(new java.awt.Color(255, 204, 204)); + jPanel7.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + jPanel7.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseEntered(java.awt.event.MouseEvent evt) { + jPanel7MouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + jPanel7MouseExited(evt); + } + }); + + jLabel8.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N + jLabel8.setForeground(new java.awt.Color(255, 255, 255)); + jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/text-book-opened-from-top-view.png"))); // NOI18N + jLabel8.setText(" View Course"); + + javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7); + jPanel7.setLayout(jPanel7Layout); + jPanel7Layout.setHorizontalGroup( + jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel7Layout.createSequentialGroup() + .addContainerGap() + .addComponent(jLabel8) + .addContainerGap(46, Short.MAX_VALUE)) + ); + jPanel7Layout.setVerticalGroup( + jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel7Layout.createSequentialGroup() + .addGap(19, 19, 19) + .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE) + .addContainerGap(18, Short.MAX_VALUE)) + ); + + jPanel2.add(jPanel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(301, 221, 270, -1)); + + jPanel8.setBackground(new java.awt.Color(255, 204, 204)); + jPanel8.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + jPanel8.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseEntered(java.awt.event.MouseEvent evt) { + jPanel8MouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + jPanel8MouseExited(evt); + } + }); + + jLabel9.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N + jLabel9.setForeground(new java.awt.Color(255, 255, 255)); + jLabel9.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/view report.png"))); // NOI18N + jLabel9.setText(" View Report"); + jLabel9.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + jLabel9MouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + jLabel9MouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + jLabel9MouseExited(evt); + } + }); + + javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8); + jPanel8.setLayout(jPanel8Layout); + jPanel8Layout.setHorizontalGroup( + jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel8Layout.createSequentialGroup() + .addContainerGap() + .addComponent(jLabel9) + .addContainerGap(34, Short.MAX_VALUE)) + ); + jPanel8Layout.setVerticalGroup( + jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel8Layout.createSequentialGroup() + .addGap(14, 14, 14) + .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE) + .addContainerGap(14, Short.MAX_VALUE)) + ); + + jPanel2.add(jPanel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(595, 221, -1, -1)); + + jPanel9.setBackground(new java.awt.Color(255, 204, 204)); + jPanel9.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + jPanel9.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseEntered(java.awt.event.MouseEvent evt) { + jPanel9MouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + jPanel9MouseExited(evt); + } + }); + + jLabel10.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N + jLabel10.setForeground(new java.awt.Color(255, 255, 255)); + jLabel10.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/search-document.png"))); // NOI18N + jLabel10.setText("Search Records"); + jLabel10.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + jLabel10MouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + jLabel10MouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + jLabel10MouseExited(evt); + } + }); + + javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9); + jPanel9.setLayout(jPanel9Layout); + jPanel9Layout.setHorizontalGroup( + jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel9Layout.createSequentialGroup() + .addContainerGap() + .addComponent(jLabel10) + .addContainerGap(29, Short.MAX_VALUE)) + ); + jPanel9Layout.setVerticalGroup( + jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel9Layout.createSequentialGroup() + .addGap(14, 14, 14) + .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE) + .addContainerGap(23, Short.MAX_VALUE)) + ); + + jPanel2.add(jPanel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(301, 20, -1, -1)); + + jPanel4.setBackground(new java.awt.Color(255, 204, 204)); + jPanel4.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + jPanel4.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseEntered(java.awt.event.MouseEvent evt) { + jPanel4MouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + jPanel4MouseExited(evt); + } + }); + + jLabel12.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N + jLabel12.setForeground(new java.awt.Color(255, 255, 255)); + jLabel12.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/about.png"))); // NOI18N + jLabel12.setText("About"); + jLabel12.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + jLabel12MouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + jLabel12MouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + jLabel12MouseExited(evt); + } + }); + + javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4); + jPanel4.setLayout(jPanel4Layout); + jPanel4Layout.setHorizontalGroup( + jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel4Layout.createSequentialGroup() + .addContainerGap() + .addComponent(jLabel12, javax.swing.GroupLayout.DEFAULT_SIZE, 124, Short.MAX_VALUE) + .addContainerGap()) + ); + jPanel4Layout.setVerticalGroup( + jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 56, Short.MAX_VALUE) + ); + + jPanel2.add(jPanel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(740, 400, 140, 60)); + + jPanel10.setBackground(new java.awt.Color(255, 204, 204)); + jPanel10.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + + jLabel13.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N + jLabel13.setForeground(new java.awt.Color(255, 255, 255)); + jLabel13.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/exit.png"))); // NOI18N + jLabel13.setText("Logout"); + jLabel13.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + jLabel13MouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + jLabel13MouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + jLabel13MouseExited(evt); + } + }); + + javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10); + jPanel10.setLayout(jPanel10Layout); + jPanel10Layout.setHorizontalGroup( + jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel10Layout.createSequentialGroup() + .addContainerGap() + .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE) + .addContainerGap(14, Short.MAX_VALUE)) + ); + jPanel10Layout.setVerticalGroup( + jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel10Layout.createSequentialGroup() + .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(0, 0, Short.MAX_VALUE)) + ); + + jPanel2.add(jPanel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 400, 130, 60)); + + getContentPane().add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(6, 144, -1, 520)); + + pack(); + setLocationRelativeTo(null); + }// </editor-fold>//GEN-END:initComponents + + private void jPanel3MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanel3MouseEntered + // TODO add your handling code here: + + + }//GEN-LAST:event_jPanel3MouseEntered + + private void jPanel3MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanel3MouseExited + // TODO add your handling code here: + + }//GEN-LAST:event_jPanel3MouseExited + + private void jPanel5MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanel5MouseEntered + // TODO add your handling code here: + + }//GEN-LAST:event_jPanel5MouseEntered + + private void jPanel5MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanel5MouseExited + // TODO add your handling code here: + + }//GEN-LAST:event_jPanel5MouseExited + + private void jPanel6MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanel6MouseEntered + // TODO add your handling code here: + + }//GEN-LAST:event_jPanel6MouseEntered + + private void jPanel6MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanel6MouseExited + // TODO add your handling code here: + + }//GEN-LAST:event_jPanel6MouseExited + + private void jPanel7MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanel7MouseEntered + // TODO add your handling code here: + Color clr=new Color(255,102,102); + jPanel7.setBackground(clr); + }//GEN-LAST:event_jPanel7MouseEntered + + private void jPanel7MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanel7MouseExited + // TODO add your handling code here: + Color clr=new Color(255,204,204); + jPanel7.setBackground(clr); + }//GEN-LAST:event_jPanel7MouseExited + + private void jPanel8MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanel8MouseEntered + // TODO add your handling code here: + + }//GEN-LAST:event_jPanel8MouseEntered + + private void jPanel8MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanel8MouseExited + // TODO add your handling code here: + }//GEN-LAST:event_jPanel8MouseExited + + private void jPanel9MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanel9MouseEntered + // TODO add your handling code here: + + }//GEN-LAST:event_jPanel9MouseEntered + + private void jPanel9MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanel9MouseExited + // TODO add your handling code here: + }//GEN-LAST:event_jPanel9MouseExited + + private void jPanel4MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanel4MouseEntered + // TODO add your handling code here: + + }//GEN-LAST:event_jPanel4MouseEntered + + private void jPanel4MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanel4MouseExited + + }//GEN-LAST:event_jPanel4MouseExited + + private void jLabel5MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel5MouseClicked + + addFees addFees =new addFees(); + addFees.setVisible(true); + this.dispose(); + }//GEN-LAST:event_jLabel5MouseClicked + + private void jLabel10MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel10MouseClicked + SearchRecords search=new SearchRecords(); + search.setVisible(true); + this.dispose(); + }//GEN-LAST:event_jLabel10MouseClicked + + private void jLabel7MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel7MouseClicked + EditCourse edit=new EditCourse(); + edit.setVisible(true); + this.dispose(); + }//GEN-LAST:event_jLabel7MouseClicked + + private void jLabel6MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel6MouseClicked + ViewAllRecords allRecords=new ViewAllRecords(); + allRecords.setVisible(true); + this.dispose(); + }//GEN-LAST:event_jLabel6MouseClicked + + private void jLabel5MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel5MouseEntered + Color clr=new Color(255,102,102); + jPanel3.setBackground(clr); + }//GEN-LAST:event_jLabel5MouseEntered + + private void jLabel5MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel5MouseExited + Color clr=new Color(255,204,204); + jPanel3.setBackground(clr); + }//GEN-LAST:event_jLabel5MouseExited + + private void jLabel10MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel10MouseEntered + Color clr=new Color(255,102,102); + jPanel9.setBackground(clr); + }//GEN-LAST:event_jLabel10MouseEntered + + private void jLabel10MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel10MouseExited + Color clr=new Color(255,204,204); + jPanel9.setBackground(clr); + }//GEN-LAST:event_jLabel10MouseExited + + private void jLabel6MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel6MouseEntered + Color clr=new Color(255,102,102); + jPanel5.setBackground(clr); + }//GEN-LAST:event_jLabel6MouseEntered + + private void jLabel6MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel6MouseExited + Color clr=new Color(255,204,204); + jPanel5.setBackground(clr); + }//GEN-LAST:event_jLabel6MouseExited + + private void jLabel7MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel7MouseEntered + Color clr=new Color(255,102,102); + jPanel6.setBackground(clr); + }//GEN-LAST:event_jLabel7MouseEntered + + private void jLabel7MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel7MouseExited + Color clr=new Color(255,204,204); + jPanel6.setBackground(clr); + }//GEN-LAST:event_jLabel7MouseExited + + private void jLabel13MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel13MouseClicked + this.dispose(); + }//GEN-LAST:event_jLabel13MouseClicked + + private void jLabel13MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel13MouseEntered + Color clr=new Color(255,102,102); + jPanel10.setBackground(clr); + }//GEN-LAST:event_jLabel13MouseEntered + + private void jLabel13MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel13MouseExited + Color clr=new Color(255,204,204); + jPanel10.setBackground(clr); + }//GEN-LAST:event_jLabel13MouseExited + + private void jLabel9MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel9MouseClicked + GenerateReport report=new GenerateReport(); + report.setVisible(true); + this.dispose(); + }//GEN-LAST:event_jLabel9MouseClicked + + private void jLabel12MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel12MouseClicked + copyRightPage about=new copyRightPage(); + about.setVisible(true); + this.dispose(); + }//GEN-LAST:event_jLabel12MouseClicked + + private void jLabel12MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel12MouseEntered + Color clr=new Color(255,102,102); + jPanel4.setBackground(clr); + }//GEN-LAST:event_jLabel12MouseEntered + + private void jLabel12MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel12MouseExited + Color clr=new Color(255,204,204); + jPanel4.setBackground(clr); + }//GEN-LAST:event_jLabel12MouseExited + + private void jLabel9MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel9MouseEntered + Color clr=new Color(255,102,102); + jPanel8.setBackground(clr); + }//GEN-LAST:event_jLabel9MouseEntered + + private void jLabel9MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel9MouseExited + Color clr=new Color(255,204,204); + jPanel8.setBackground(clr); + }//GEN-LAST:event_jLabel9MouseExited + + /** + * @param args the command line arguments + */ + public static void main(String args[]) { + /* Set the Nimbus look and feel */ + //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> + /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. + * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html + */ + try { + for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { + if ("Nimbus".equals(info.getName())) { + javax.swing.UIManager.setLookAndFeel(info.getClassName()); + break; + } + } + } catch (ClassNotFoundException ex) { + java.util.logging.Logger.getLogger(HomePage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (InstantiationException ex) { + java.util.logging.Logger.getLogger(HomePage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (IllegalAccessException ex) { + java.util.logging.Logger.getLogger(HomePage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (javax.swing.UnsupportedLookAndFeelException ex) { + java.util.logging.Logger.getLogger(HomePage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } + //</editor-fold> + + /* Create and display the form */ + java.awt.EventQueue.invokeLater(new Runnable() { + public void run() { + new HomePage().setVisible(true); + } + }); + } + + // Variables declaration - do not modify//GEN-BEGIN:variables + private javax.swing.JLabel jLabel1; + private javax.swing.JLabel jLabel10; + private javax.swing.JLabel jLabel12; + private javax.swing.JLabel jLabel13; + private javax.swing.JLabel jLabel2; + private javax.swing.JLabel jLabel3; + private javax.swing.JLabel jLabel4; + private javax.swing.JLabel jLabel5; + private javax.swing.JLabel jLabel6; + private javax.swing.JLabel jLabel7; + private javax.swing.JLabel jLabel8; + private javax.swing.JLabel jLabel9; + private javax.swing.JPanel jPanel1; + private javax.swing.JPanel jPanel10; + private javax.swing.JPanel jPanel2; + private javax.swing.JPanel jPanel3; + private javax.swing.JPanel jPanel4; + private javax.swing.JPanel jPanel5; + private javax.swing.JPanel jPanel6; + private javax.swing.JPanel jPanel7; + private javax.swing.JPanel jPanel8; + private javax.swing.JPanel jPanel9; + // End of variables declaration//GEN-END:variables +} diff --git a/src/fees_management_system/Login.form b/src/fees_management_system/Login.form new file mode 100644 index 0000000..a93af24 --- /dev/null +++ b/src/fees_management_system/Login.form @@ -0,0 +1,243 @@ +<?xml version="1.0" encoding="UTF-8" ?> + +<Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo"> + <NonVisualComponents> + <Container class="javax.swing.JPanel" name="jPanel2"> + + <Layout> + <DimensionLayout dim="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <EmptySpace min="0" pref="100" max="32767" attributes="0"/> + </Group> + </DimensionLayout> + <DimensionLayout dim="1"> + <Group type="103" groupAlignment="0" attributes="0"> + <EmptySpace min="0" pref="100" max="32767" attributes="0"/> + </Group> + </DimensionLayout> + </Layout> + </Container> + </NonVisualComponents> + <Properties> + <Property name="defaultCloseOperation" type="int" value="3"/> + </Properties> + <SyntheticProperties> + <SyntheticProperty name="formSizePolicy" type="int" value="1"/> + <SyntheticProperty name="generateCenter" type="boolean" value="true"/> + </SyntheticProperties> + <AuxValues> + <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/> + <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/> + <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/> + <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/> + <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/> + <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,-102,0,0,2,90"/> + </AuxValues> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Container class="javax.swing.JPanel" name="jPanel1"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="cc" green="cc" red="ff" type="rgb"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="6" y="6" width="590" height="120"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="jLabel1"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="36" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="Login"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="268" y="27" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="jLabel3"> + <Properties> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/admin.png"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="190" y="17" width="72" height="-1"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="jPanel3"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="6" y="121" width="590" height="284"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="jLabel2"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="18" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Enter User Name :"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="93" y="72" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="jLabel4"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="18" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Enter Password :"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="93" y="128" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtUserName"> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="txtUserNameActionPerformed"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="267" y="72" width="170" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JPasswordField" name="txtPassword"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="267" y="128" width="170" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JButton" name="txtSignUp"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="cc" green="cc" red="ff" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="99" green="99" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/signup.png"/> + </Property> + <Property name="text" type="java.lang.String" value="SignUp"/> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="txtSignUpActionPerformed"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="238" y="227" width="-1" height="29"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JButton" name="txtLogin"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="cc" green="cc" red="ff" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="99" green="99" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/login.png"/> + </Property> + <Property name="text" type="java.lang.String" value="Login"/> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="null"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="txtLoginActionPerformed"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="117" y="226" width="103" height="30"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JButton" name="txtExit"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="cc" green="cc" red="ff" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="99" green="99" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/exit.png"/> + </Property> + <Property name="text" type="java.lang.String" value="Exit"/> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="txtExitActionPerformed"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="365" y="227" width="-1" height="30"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="txtError"> + <Properties> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="0" green="0" red="ff" type="rgb"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="93" y="182" width="311" height="-1"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + </SubComponents> +</Form> diff --git a/src/fees_management_system/Login.java b/src/fees_management_system/Login.java new file mode 100644 index 0000000..1dc92bc --- /dev/null +++ b/src/fees_management_system/Login.java @@ -0,0 +1,242 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/GUIForms/JFrame.java to edit this template + */ +package fees_managment_syatem; + + +import java.sql.Statement; +import javax.swing.JOptionPane; +import java.sql.Connection; +import java.sql.DriverManager; +import java.sql.PreparedStatement; +import java.sql.ResultSet; + +/** + * + * @author yash + */ +public class Login extends javax.swing.JFrame { + + /** + * Creates new form Login + */ + public Login() { + initComponents(); + } + void userVerification(String userName, String password){ + try{ + Class.forName("com.mysql.cj.jdbc.Driver"); + Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/fees_managment?zeroDateTimeBehavior=CONVERT_TO_NULL","root",""); + String sql="select * from signUp where uname=? and password=?"; + PreparedStatement pst=con.prepareStatement(sql); + pst.setString(1,userName); + pst.setString(2,password); + ResultSet rs= pst.executeQuery(); + if(rs.next()){ + JOptionPane.showMessageDialog(this,"Login SuccessFull"); + HomePage HomePage = new HomePage(); + HomePage.show(); + this.dispose(); + } + else{ + JOptionPane.showMessageDialog(this,"Wrong UserName and Password"); + } + } + catch(Exception e){ + e.printStackTrace(); + } + } + /** + * This method is called from within the constructor to initialize the form. + * WARNING: Do NOT modify this code. The content of this method is always + * regenerated by the Form Editor. + */ + @SuppressWarnings("unchecked") + // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents + private void initComponents() { + + jPanel2 = new javax.swing.JPanel(); + jPanel1 = new javax.swing.JPanel(); + jLabel1 = new javax.swing.JLabel(); + jLabel3 = new javax.swing.JLabel(); + jPanel3 = new javax.swing.JPanel(); + jLabel2 = new javax.swing.JLabel(); + jLabel4 = new javax.swing.JLabel(); + txtUserName = new javax.swing.JTextField(); + txtPassword = new javax.swing.JPasswordField(); + txtSignUp = new javax.swing.JButton(); + txtLogin = new javax.swing.JButton(); + txtExit = new javax.swing.JButton(); + txtError = new javax.swing.JLabel(); + + javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); + jPanel2.setLayout(jPanel2Layout); + jPanel2Layout.setHorizontalGroup( + jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGap(0, 100, Short.MAX_VALUE) + ); + jPanel2Layout.setVerticalGroup( + jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGap(0, 100, Short.MAX_VALUE) + ); + + setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); + getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + jPanel1.setBackground(new java.awt.Color(255, 204, 204)); + jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + jLabel1.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N + jLabel1.setForeground(new java.awt.Color(255, 102, 102)); + jLabel1.setText("Login"); + jPanel1.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(268, 27, -1, -1)); + + jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/admin.png"))); // NOI18N + jPanel1.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 17, 72, -1)); + + getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(6, 6, 590, 120)); + + jPanel3.setBackground(new java.awt.Color(255, 102, 102)); + jPanel3.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + jLabel2.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N + jLabel2.setText("Enter User Name :"); + jPanel3.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(93, 72, -1, -1)); + + jLabel4.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N + jLabel4.setText("Enter Password :"); + jPanel3.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(93, 128, -1, -1)); + + txtUserName.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + txtUserNameActionPerformed(evt); + } + }); + jPanel3.add(txtUserName, new org.netbeans.lib.awtextra.AbsoluteConstraints(267, 72, 170, -1)); + jPanel3.add(txtPassword, new org.netbeans.lib.awtextra.AbsoluteConstraints(267, 128, 170, -1)); + + txtSignUp.setBackground(new java.awt.Color(255, 204, 204)); + txtSignUp.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N + txtSignUp.setForeground(new java.awt.Color(255, 153, 153)); + txtSignUp.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/signup.png"))); // NOI18N + txtSignUp.setText("SignUp"); + txtSignUp.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + txtSignUpActionPerformed(evt); + } + }); + jPanel3.add(txtSignUp, new org.netbeans.lib.awtextra.AbsoluteConstraints(238, 227, -1, 29)); + + txtLogin.setBackground(new java.awt.Color(255, 204, 204)); + txtLogin.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N + txtLogin.setForeground(new java.awt.Color(255, 153, 153)); + txtLogin.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/login.png"))); // NOI18N + txtLogin.setText("Login"); + txtLogin.setBorder(null); + txtLogin.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + txtLoginActionPerformed(evt); + } + }); + jPanel3.add(txtLogin, new org.netbeans.lib.awtextra.AbsoluteConstraints(117, 226, 103, 30)); + + txtExit.setBackground(new java.awt.Color(255, 204, 204)); + txtExit.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N + txtExit.setForeground(new java.awt.Color(255, 153, 153)); + txtExit.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/exit.png"))); // NOI18N + txtExit.setText("Exit"); + txtExit.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + txtExitActionPerformed(evt); + } + }); + jPanel3.add(txtExit, new org.netbeans.lib.awtextra.AbsoluteConstraints(365, 227, -1, 30)); + + txtError.setForeground(new java.awt.Color(255, 0, 0)); + jPanel3.add(txtError, new org.netbeans.lib.awtextra.AbsoluteConstraints(93, 182, 311, -1)); + + getContentPane().add(jPanel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(6, 121, 590, 284)); + + pack(); + setLocationRelativeTo(null); + }// </editor-fold>//GEN-END:initComponents + + private void txtSignUpActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtSignUpActionPerformed + // TODO add your handling code here: + Sign_Up_form signUp =new Sign_Up_form(); + signUp.show(); + this.dispose(); + }//GEN-LAST:event_txtSignUpActionPerformed + + private void txtLoginActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtLoginActionPerformed + String username=txtUserName.getText(); + String password=txtPassword.getText(); + if(username.trim().equals("")||password.trim().equals("")){ + txtError.setText("Please Enter UserName and Password"); + } + else{ + userVerification(username,password); + } + }//GEN-LAST:event_txtLoginActionPerformed + + private void txtExitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtExitActionPerformed + // TODO add your handling code here: + System.exit(0); + }//GEN-LAST:event_txtExitActionPerformed + + private void txtUserNameActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtUserNameActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_txtUserNameActionPerformed + + /** + * @param args the command line arguments + */ + public static void main(String args[]) { + /* Set the Nimbus look and feel */ + //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> + /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. + * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html + */ + try { + for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { + if ("Nimbus".equals(info.getName())) { + javax.swing.UIManager.setLookAndFeel(info.getClassName()); + break; + } + } + } catch (ClassNotFoundException ex) { + java.util.logging.Logger.getLogger(Login.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (InstantiationException ex) { + java.util.logging.Logger.getLogger(Login.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (IllegalAccessException ex) { + java.util.logging.Logger.getLogger(Login.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (javax.swing.UnsupportedLookAndFeelException ex) { + java.util.logging.Logger.getLogger(Login.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } + //</editor-fold> + + /* Create and display the form */ + java.awt.EventQueue.invokeLater(new Runnable() { + public void run() { + new Login().setVisible(true); + } + }); + } + + // Variables declaration - do not modify//GEN-BEGIN:variables + private javax.swing.JLabel jLabel1; + private javax.swing.JLabel jLabel2; + private javax.swing.JLabel jLabel3; + private javax.swing.JLabel jLabel4; + private javax.swing.JPanel jPanel1; + private javax.swing.JPanel jPanel2; + private javax.swing.JPanel jPanel3; + private javax.swing.JLabel txtError; + private javax.swing.JButton txtExit; + private javax.swing.JButton txtLogin; + private javax.swing.JPasswordField txtPassword; + private javax.swing.JButton txtSignUp; + private javax.swing.JTextField txtUserName; + // End of variables declaration//GEN-END:variables +} diff --git a/src/fees_management_system/NumberToWordsConverter.java b/src/fees_management_system/NumberToWordsConverter.java new file mode 100644 index 0000000..423c0ba --- /dev/null +++ b/src/fees_management_system/NumberToWordsConverter.java @@ -0,0 +1,67 @@ +package fees_managment_syatem; + + +import java.text.NumberFormat; +import java.util.Scanner; + +public class NumberToWordsConverter { + + public static final String[] units = { "", "One", "Two", "Three", "Four", + "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven", "Twelve", + "Thirteen", "Fourteen", "Fifteen", "Sixteen", "Seventeen", + "Eighteen", "Nineteen" }; + + public static final String[] tens = { + "", // 0 + "", // 1 + "Twenty", // 2 + "Thirty", // 3 + "Forty", // 4 + "Fifty", // 5 + "Sixty", // 6 + "Seventy", // 7 + "Eighty", // 8 + "Ninety" // 9 + }; + + public static String convert(final int n) { + if (n < 0) + { + return "Minus " + convert(-n); + } + + if (n < 20) + { + return units[n]; + } + + if (n < 100) { + return tens[n / 10] + ((n % 10 != 0) ? " " : "") + units[n % 10]; + } + + if (n < 1000) { + return units[n / 100] + " Hundred" + ((n % 100 != 0) ? " " : "") + convert(n % 100); + } + + if (n < 100000) { + return convert(n / 1000) + " Thousand" + ((n % 10000 != 0) ? " " : "") + convert(n % 1000); + } + + if (n < 10000000) { + return convert(n / 100000) + " Lakh" + ((n % 100000 != 0) ? " " : "") + convert(n % 100000); + } + + return convert(n / 10000000) + " Crore" + ((n % 10000000 != 0) ? " " : "") + convert(n % 10000000); + } + + public static void main(final String[] args) { + Scanner sc=new Scanner(System.in); + System.out.println("Enter the Amount : "); + int n=sc.nextInt(); + + + System.out.println( convert(n)+ " Only"); + + + } +} \ No newline at end of file diff --git a/src/fees_management_system/SearchRecords.form b/src/fees_management_system/SearchRecords.form new file mode 100644 index 0000000..fe1290a --- /dev/null +++ b/src/fees_management_system/SearchRecords.form @@ -0,0 +1,522 @@ +<?xml version="1.0" encoding="UTF-8" ?> + +<Form version="1.5" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo"> + <Properties> + <Property name="defaultCloseOperation" type="int" value="3"/> + </Properties> + <SyntheticProperties> + <SyntheticProperty name="formSizePolicy" type="int" value="1"/> + <SyntheticProperty name="generateCenter" type="boolean" value="true"/> + </SyntheticProperties> + <AuxValues> + <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/> + <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/> + <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/> + <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/> + <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/> + <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,2,-109,0,0,5,1"/> + </AuxValues> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Container class="javax.swing.JPanel" name="panelSideBar"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="0" y="0" width="430" height="860"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Container class="javax.swing.JPanel" name="panelLogOut"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="80" y="540" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnLogOut"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/exit.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" Logout"/> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnLogOutMouseClicked"/> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnLogOutMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnLogOutMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="20" y="0" width="260" height="40"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelHome"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="80" y="60" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnHome"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/home.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" HOME"/> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnHomeMouseClicked"/> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnHomeMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnHomeMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="0" width="310" height="50"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelSearchRecords"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="80" y="140" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnSearchRecords"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/search2.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" Search Records"/> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnSearchRecordsMouseClicked"/> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnSearchRecordsMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnSearchRecordsMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="0" width="310" height="60"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelEditCourse"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="24" style="1"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="80" y="220" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnEditCourse"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/edit2.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" Edit Course"/> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnEditCourseMouseClicked"/> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnEditCourseMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnEditCourseMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="0" width="260" height="-1"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelCourseList"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="80" y="300" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnCourseList"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/list.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" Course List"/> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnCourseListMouseClicked"/> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnCourseListMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnCourseListMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="0" y="-10" width="260" height="-1"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelViewAllRecords"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="80" y="380" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnViewAllRecords"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/view all record.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" View All Records"/> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnViewAllRecordsMouseClicked"/> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnViewAllRecordsMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnViewAllRecordsMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="0" y="0" width="320" height="-1"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelBack"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="80" y="460" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnBack"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/left-arrow.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" Back"/> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnBackMouseClicked"/> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnBackMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnBackMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="0" y="-10" width="260" height="-1"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="jPanel1"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="cc" green="cc" red="ff" type="rgb"/> + </Property> + </Properties> + <Events> + <EventHandler event="keyReleased" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="jPanel1KeyReleased"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="430" y="0" width="850" height="660"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Container class="javax.swing.JScrollPane" name="jScrollPane1"> + <AuxValues> + <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/> + </AuxValues> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="20" y="140" width="800" height="500"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/> + <SubComponents> + <Component class="javax.swing.JTable" name="tblStudentData"> + <Properties> + <Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor"> + <Table columnCount="7" rowCount="0"> + <Column editable="true" title="ReceiptNo" type="java.lang.Object"/> + <Column editable="true" title="RollNo" type="java.lang.Object"/> + <Column editable="true" title="StudentName" type="java.lang.Object"/> + <Column editable="true" title="Course" type="java.lang.Object"/> + <Column editable="true" title="PaymentMode" type="java.lang.Object"/> + <Column editable="true" title="Amount" type="java.lang.Object"/> + <Column editable="true" title="Remark" type="java.lang.Object"/> + </Table> + </Property> + <Property name="columnModel" type="javax.swing.table.TableColumnModel" editor="org.netbeans.modules.form.editors2.TableColumnModelEditor"> + <TableColumnModel selectionModel="0"> + <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> + <Title/> + <Editor/> + <Renderer/> + </Column> + <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> + <Title/> + <Editor/> + <Renderer/> + </Column> + <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> + <Title/> + <Editor/> + <Renderer/> + </Column> + <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> + <Title/> + <Editor/> + <Renderer/> + </Column> + <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> + <Title/> + <Editor/> + <Renderer/> + </Column> + <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> + <Title/> + <Editor/> + <Renderer/> + </Column> + <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> + <Title/> + <Editor/> + <Renderer/> + </Column> + </TableColumnModel> + </Property> + <Property name="tableHeader" type="javax.swing.table.JTableHeader" editor="org.netbeans.modules.form.editors2.JTableHeaderEditor"> + <TableHeader reorderingAllowed="true" resizingAllowed="true"/> + </Property> + </Properties> + </Component> + </SubComponents> + </Container> + <Component class="javax.swing.JLabel" name="jLabel1"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="b5" green="89" red="0" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="Search Records"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="370" y="10" width="170" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="jLabel2"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="14" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Enter Search String :"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="60" y="70" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtSearchString"> + <Events> + <EventHandler event="keyReleased" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="txtSearchStringKeyReleased"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="200" y="70" width="240" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="jTextField1"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="b5" green="89" red="0" type="rgb"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="340" y="40" width="220" height="6"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + </SubComponents> +</Form> diff --git a/src/fees_management_system/SearchRecords.java b/src/fees_management_system/SearchRecords.java new file mode 100644 index 0000000..dac04a7 --- /dev/null +++ b/src/fees_management_system/SearchRecords.java @@ -0,0 +1,493 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/GUIForms/JFrame.java to edit this template + */ +package fees_managment_syatem; + +import java.awt.Color; +import java.sql.Connection; +import java.sql.DriverManager; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import javax.swing.RowFilter; +import javax.swing.table.DefaultTableModel; +import javax.swing.table.TableRowSorter; +/** + * + * @author yash + */ +public class SearchRecords extends javax.swing.JFrame { + + /** + * Creates new form SearchRecords + */ + DefaultTableModel model; + public SearchRecords() { + initComponents(); + setRecordsToTable(); + } +public void setRecordsToTable(){ + try{ + Class.forName("com.mysql.cj.jdbc.Driver"); + Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/fees_managment?zeroDateTimeBehavior=CONVERT_TO_NULL","root",""); + PreparedStatement pst=con.prepareStatement("select * from fees_details"); + ResultSet rs=pst.executeQuery(); + while(rs.next()){ + String ReceiptNo=rs.getString("recieptNo"); + String RollNo=rs.getString("rollNo"); + String StudentName=rs.getString("studentName"); + String Course=rs.getString("courseName"); + String PaymentMode=rs.getString("paymentMode"); + String Amount=rs.getString("totalAmount"); + String Remark=rs.getString("remark"); + Object[] obj={ReceiptNo,RollNo,StudentName,Course,PaymentMode,Amount,Remark}; + model=(DefaultTableModel)tblStudentData.getModel(); + model.addRow(obj); + } + }catch(Exception e){ + e.printStackTrace(); + } +} +public void search(String str){ + model=(DefaultTableModel)tblStudentData.getModel(); + TableRowSorter<DefaultTableModel> trs=new TableRowSorter<>(model); + tblStudentData.setRowSorter(trs); + trs.setRowFilter(RowFilter.regexFilter(str)); +} + /** + * This method is called from within the constructor to initialize the form. + * WARNING: Do NOT modify this code. The content of this method is always + * regenerated by the Form Editor. + */ + @SuppressWarnings("unchecked") + // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents + private void initComponents() { + + panelSideBar = new javax.swing.JPanel(); + panelLogOut = new javax.swing.JPanel(); + btnLogOut = new javax.swing.JLabel(); + panelHome = new javax.swing.JPanel(); + btnHome = new javax.swing.JLabel(); + panelSearchRecords = new javax.swing.JPanel(); + btnSearchRecords = new javax.swing.JLabel(); + panelEditCourse = new javax.swing.JPanel(); + btnEditCourse = new javax.swing.JLabel(); + panelCourseList = new javax.swing.JPanel(); + btnCourseList = new javax.swing.JLabel(); + panelViewAllRecords = new javax.swing.JPanel(); + btnViewAllRecords = new javax.swing.JLabel(); + panelBack = new javax.swing.JPanel(); + btnBack = new javax.swing.JLabel(); + jPanel1 = new javax.swing.JPanel(); + jScrollPane1 = new javax.swing.JScrollPane(); + tblStudentData = new javax.swing.JTable(); + jLabel1 = new javax.swing.JLabel(); + jLabel2 = new javax.swing.JLabel(); + txtSearchString = new javax.swing.JTextField(); + jTextField1 = new javax.swing.JTextField(); + + setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); + getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + panelSideBar.setBackground(new java.awt.Color(255, 102, 102)); + panelSideBar.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + panelLogOut.setBackground(new java.awt.Color(255, 102, 102)); + panelLogOut.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelLogOut.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnLogOut.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnLogOut.setForeground(new java.awt.Color(255, 255, 255)); + btnLogOut.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/exit.png"))); // NOI18N + btnLogOut.setText(" Logout"); + btnLogOut.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + btnLogOutMouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnLogOutMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnLogOutMouseExited(evt); + } + }); + panelLogOut.add(btnLogOut, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 0, 260, 40)); + + panelSideBar.add(panelLogOut, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 540, 320, 50)); + + panelHome.setBackground(new java.awt.Color(255, 102, 102)); + panelHome.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelHome.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnHome.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnHome.setForeground(new java.awt.Color(255, 255, 255)); + btnHome.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/home.png"))); // NOI18N + btnHome.setText(" HOME"); + btnHome.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + btnHomeMouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnHomeMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnHomeMouseExited(evt); + } + }); + panelHome.add(btnHome, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 0, 310, 50)); + + panelSideBar.add(panelHome, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 60, 320, 50)); + + panelSearchRecords.setBackground(new java.awt.Color(255, 102, 102)); + panelSearchRecords.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelSearchRecords.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnSearchRecords.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnSearchRecords.setForeground(new java.awt.Color(255, 255, 255)); + btnSearchRecords.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/search2.png"))); // NOI18N + btnSearchRecords.setText(" Search Records"); + btnSearchRecords.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + btnSearchRecordsMouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnSearchRecordsMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnSearchRecordsMouseExited(evt); + } + }); + panelSearchRecords.add(btnSearchRecords, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 0, 310, 60)); + + panelSideBar.add(panelSearchRecords, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 140, 320, 50)); + + panelEditCourse.setBackground(new java.awt.Color(255, 102, 102)); + panelEditCourse.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelEditCourse.setFont(new java.awt.Font("Segoe UI", 1, 24)); // NOI18N + panelEditCourse.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnEditCourse.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnEditCourse.setForeground(new java.awt.Color(255, 255, 255)); + btnEditCourse.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/edit2.png"))); // NOI18N + btnEditCourse.setText(" Edit Course"); + btnEditCourse.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + btnEditCourseMouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnEditCourseMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnEditCourseMouseExited(evt); + } + }); + panelEditCourse.add(btnEditCourse, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 0, 260, -1)); + + panelSideBar.add(panelEditCourse, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 220, 320, 50)); + + panelCourseList.setBackground(new java.awt.Color(255, 102, 102)); + panelCourseList.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelCourseList.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnCourseList.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnCourseList.setForeground(new java.awt.Color(255, 255, 255)); + btnCourseList.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/list.png"))); // NOI18N + btnCourseList.setText(" Course List"); + btnCourseList.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + btnCourseListMouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnCourseListMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnCourseListMouseExited(evt); + } + }); + panelCourseList.add(btnCourseList, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, -10, 260, -1)); + + panelSideBar.add(panelCourseList, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 300, 320, 50)); + + panelViewAllRecords.setBackground(new java.awt.Color(255, 102, 102)); + panelViewAllRecords.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelViewAllRecords.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnViewAllRecords.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnViewAllRecords.setForeground(new java.awt.Color(255, 255, 255)); + btnViewAllRecords.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/view all record.png"))); // NOI18N + btnViewAllRecords.setText(" View All Records"); + btnViewAllRecords.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + btnViewAllRecordsMouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnViewAllRecordsMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnViewAllRecordsMouseExited(evt); + } + }); + panelViewAllRecords.add(btnViewAllRecords, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 320, -1)); + + panelSideBar.add(panelViewAllRecords, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 380, 320, 50)); + + panelBack.setBackground(new java.awt.Color(255, 102, 102)); + panelBack.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelBack.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnBack.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnBack.setForeground(new java.awt.Color(255, 255, 255)); + btnBack.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/left-arrow.png"))); // NOI18N + btnBack.setText(" Back"); + btnBack.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + btnBackMouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnBackMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnBackMouseExited(evt); + } + }); + panelBack.add(btnBack, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, -10, 260, -1)); + + panelSideBar.add(panelBack, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 460, 320, 50)); + + getContentPane().add(panelSideBar, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 430, 860)); + + jPanel1.setBackground(new java.awt.Color(255, 204, 204)); + jPanel1.addKeyListener(new java.awt.event.KeyAdapter() { + public void keyReleased(java.awt.event.KeyEvent evt) { + jPanel1KeyReleased(evt); + } + }); + jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + tblStudentData.setModel(new javax.swing.table.DefaultTableModel( + new Object [][] { + + }, + new String [] { + "ReceiptNo", "RollNo", "StudentName", "Course", "PaymentMode", "Amount", "Remark" + } + )); + jScrollPane1.setViewportView(tblStudentData); + + jPanel1.add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 140, 800, 500)); + + jLabel1.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + jLabel1.setForeground(new java.awt.Color(0, 137, 181)); + jLabel1.setText("Search Records"); + jPanel1.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(370, 10, 170, -1)); + + jLabel2.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N + jLabel2.setText("Enter Search String :"); + jPanel1.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 70, -1, -1)); + + txtSearchString.addKeyListener(new java.awt.event.KeyAdapter() { + public void keyReleased(java.awt.event.KeyEvent evt) { + txtSearchStringKeyReleased(evt); + } + }); + jPanel1.add(txtSearchString, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 70, 240, -1)); + + jTextField1.setBackground(new java.awt.Color(0, 137, 181)); + jPanel1.add(jTextField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(340, 40, 220, 6)); + + getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(430, 0, 850, 660)); + + pack(); + setLocationRelativeTo(null); + }// </editor-fold>//GEN-END:initComponents + + private void btnLogOutMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnLogOutMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelLogOut.setBackground(clr); + }//GEN-LAST:event_btnLogOutMouseEntered + + private void btnLogOutMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnLogOutMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelLogOut.setBackground(clr); + }//GEN-LAST:event_btnLogOutMouseExited + + private void btnHomeMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnHomeMouseEntered + Color clr=new Color(255,204,204); + panelHome.setBackground(clr); + }//GEN-LAST:event_btnHomeMouseEntered + + private void btnHomeMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnHomeMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelHome.setBackground(clr); + }//GEN-LAST:event_btnHomeMouseExited + + private void btnSearchRecordsMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnSearchRecordsMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelSearchRecords.setBackground(clr); + }//GEN-LAST:event_btnSearchRecordsMouseEntered + + private void btnSearchRecordsMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnSearchRecordsMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelSearchRecords.setBackground(clr); + }//GEN-LAST:event_btnSearchRecordsMouseExited + + private void btnEditCourseMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnEditCourseMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelEditCourse.setBackground(clr); + }//GEN-LAST:event_btnEditCourseMouseEntered + + private void btnEditCourseMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnEditCourseMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelEditCourse.setBackground(clr); + }//GEN-LAST:event_btnEditCourseMouseExited + + private void btnCourseListMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnCourseListMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelCourseList.setBackground(clr); + }//GEN-LAST:event_btnCourseListMouseEntered + + private void btnCourseListMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnCourseListMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelCourseList.setBackground(clr); + }//GEN-LAST:event_btnCourseListMouseExited + + private void btnViewAllRecordsMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnViewAllRecordsMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelViewAllRecords.setBackground(clr); + }//GEN-LAST:event_btnViewAllRecordsMouseEntered + + private void btnViewAllRecordsMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnViewAllRecordsMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelViewAllRecords.setBackground(clr); + }//GEN-LAST:event_btnViewAllRecordsMouseExited + + private void btnBackMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnBackMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelBack.setBackground(clr); + }//GEN-LAST:event_btnBackMouseEntered + + private void btnBackMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnBackMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelBack.setBackground(clr); + }//GEN-LAST:event_btnBackMouseExited + + private void jPanel1KeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jPanel1KeyReleased + // TODO add your handling code here: + }//GEN-LAST:event_jPanel1KeyReleased + + private void txtSearchStringKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txtSearchStringKeyReleased + String searchString=txtSearchString.getText(); + search(searchString); + }//GEN-LAST:event_txtSearchStringKeyReleased + + private void btnHomeMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnHomeMouseClicked + HomePage home=new HomePage(); + home.setVisible(true); + this.dispose(); + }//GEN-LAST:event_btnHomeMouseClicked + + private void btnSearchRecordsMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnSearchRecordsMouseClicked + SearchRecords records=new SearchRecords(); + records.setVisible(true); + this.dispose(); + }//GEN-LAST:event_btnSearchRecordsMouseClicked + + private void btnEditCourseMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnEditCourseMouseClicked +EditCourse edit=new EditCourse(); +edit.setVisible(true); +this.dispose(); + }//GEN-LAST:event_btnEditCourseMouseClicked + + private void btnCourseListMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnCourseListMouseClicked + + }//GEN-LAST:event_btnCourseListMouseClicked + + private void btnViewAllRecordsMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnViewAllRecordsMouseClicked + ViewAllRecords viewrecords=new ViewAllRecords(); + viewrecords.setVisible(true); + this.dispose(); + }//GEN-LAST:event_btnViewAllRecordsMouseClicked + + private void btnBackMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnBackMouseClicked + HomePage home=new HomePage(); + home.setVisible(true); + this.dispose(); + }//GEN-LAST:event_btnBackMouseClicked + + private void btnLogOutMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnLogOutMouseClicked + this.dispose(); + }//GEN-LAST:event_btnLogOutMouseClicked + + /** + * @param args the command line arguments + */ + public static void main(String args[]) { + /* Set the Nimbus look and feel */ + //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> + /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. + * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html + */ + try { + for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { + if ("Nimbus".equals(info.getName())) { + javax.swing.UIManager.setLookAndFeel(info.getClassName()); + break; + } + } + } catch (ClassNotFoundException ex) { + java.util.logging.Logger.getLogger(SearchRecords.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (InstantiationException ex) { + java.util.logging.Logger.getLogger(SearchRecords.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (IllegalAccessException ex) { + java.util.logging.Logger.getLogger(SearchRecords.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (javax.swing.UnsupportedLookAndFeelException ex) { + java.util.logging.Logger.getLogger(SearchRecords.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } + //</editor-fold> + + /* Create and display the form */ + java.awt.EventQueue.invokeLater(new Runnable() { + public void run() { + new SearchRecords().setVisible(true); + } + }); + } + + // Variables declaration - do not modify//GEN-BEGIN:variables + private javax.swing.JLabel btnBack; + private javax.swing.JLabel btnCourseList; + private javax.swing.JLabel btnEditCourse; + private javax.swing.JLabel btnHome; + private javax.swing.JLabel btnLogOut; + private javax.swing.JLabel btnSearchRecords; + private javax.swing.JLabel btnViewAllRecords; + private javax.swing.JLabel jLabel1; + private javax.swing.JLabel jLabel2; + private javax.swing.JPanel jPanel1; + private javax.swing.JScrollPane jScrollPane1; + private javax.swing.JTextField jTextField1; + private javax.swing.JPanel panelBack; + private javax.swing.JPanel panelCourseList; + private javax.swing.JPanel panelEditCourse; + private javax.swing.JPanel panelHome; + private javax.swing.JPanel panelLogOut; + private javax.swing.JPanel panelSearchRecords; + private javax.swing.JPanel panelSideBar; + private javax.swing.JPanel panelViewAllRecords; + private javax.swing.JTable tblStudentData; + private javax.swing.JTextField txtSearchString; + // End of variables declaration//GEN-END:variables +} diff --git a/src/fees_management_system/Sign_Up_form.form b/src/fees_management_system/Sign_Up_form.form new file mode 100644 index 0000000..641bc02 --- /dev/null +++ b/src/fees_management_system/Sign_Up_form.form @@ -0,0 +1,396 @@ +<?xml version="1.0" encoding="UTF-8" ?> + +<Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo"> + <NonVisualComponents> + <Component class="javax.swing.JLabel" name="jLabel3"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="18" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Last Name :"/> + </Properties> + </Component> + <Component class="javax.swing.ButtonGroup" name="gendergroup"> + </Component> + </NonVisualComponents> + <Properties> + <Property name="defaultCloseOperation" type="int" value="3"/> + </Properties> + <SyntheticProperties> + <SyntheticProperty name="formSizePolicy" type="int" value="1"/> + <SyntheticProperty name="generateCenter" type="boolean" value="true"/> + </SyntheticProperties> + <AuxValues> + <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/> + <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/> + <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/> + <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/> + <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/> + </AuxValues> + + <Layout> + <DimensionLayout dim="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" attributes="0"> + <EmptySpace max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="jPanel1" max="32767" attributes="0"/> + <Component id="jPanel2" alignment="1" max="32767" attributes="0"/> + </Group> + <EmptySpace max="-2" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + <DimensionLayout dim="1"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <Component id="jPanel1" min="-2" max="-2" attributes="0"/> + <EmptySpace max="32767" attributes="0"/> + <Component id="jPanel2" min="-2" max="-2" attributes="0"/> + <EmptySpace max="-2" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + </Layout> + <SubComponents> + <Container class="javax.swing.JPanel" name="jPanel1"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="cc" green="cc" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.LineBorderInfo"> + <LineBorder> + <Color PropertyName="color" blue="0" green="ff" red="33" type="rgb"/> + </LineBorder> + </Border> + </Property> + </Properties> + + <Layout> + <DimensionLayout dim="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="jSeparator1" alignment="1" pref="708" max="32767" attributes="0"/> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="-2" pref="234" max="-2" attributes="0"/> + <Component id="jLabel1" min="-2" pref="169" max="-2" attributes="0"/> + <EmptySpace max="32767" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + <DimensionLayout dim="1"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="1" attributes="0"> + <EmptySpace max="-2" attributes="0"/> + <Component id="jLabel1" pref="40" max="32767" attributes="0"/> + <EmptySpace max="-2" attributes="0"/> + <Component id="jSeparator1" min="-2" max="-2" attributes="0"/> + <EmptySpace min="-2" pref="10" max="-2" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="jLabel1"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value=" Sign Up"/> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.LineBorderInfo"> + <LineBorder> + <Color PropertyName="color" blue="0" green="ff" red="0" type="rgb"/> + </LineBorder> + </Border> + </Property> + </Properties> + <AuxValues> + <AuxValue name="JavaCodeGenerator_SerializeTo" type="java.lang.String" value="Sign_Up_form_jLabel1"/> + </AuxValues> + </Component> + <Component class="javax.swing.JSeparator" name="jSeparator1"> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="jPanel2"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="99" green="99" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.LineBorderInfo"> + <LineBorder> + <Color PropertyName="color" blue="0" green="ff" red="66" type="rgb"/> + </LineBorder> + </Border> + </Property> + </Properties> + + <Layout> + <DimensionLayout dim="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" attributes="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="1" attributes="0"> + <EmptySpace max="32767" attributes="0"/> + <Component id="jLabel8" min="-2" max="-2" attributes="0"/> + </Group> + <Group type="102" attributes="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" attributes="0"> + <EmptySpace min="-2" pref="29" max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="jLabel2" alignment="0" min="-2" max="-2" attributes="0"/> + <Component id="jLabel5" alignment="0" min="-2" max="-2" attributes="0"/> + <Component id="jLabel4" alignment="0" min="-2" max="-2" attributes="0"/> + <Component id="jLabel9" alignment="0" min="-2" max="-2" attributes="0"/> + <Component id="jLabel6" alignment="0" min="-2" max="-2" attributes="0"/> + <Component id="jLabel7" alignment="0" min="-2" max="-2" attributes="0"/> + <Component id="jLabel11" alignment="0" min="-2" max="-2" attributes="0"/> + </Group> + <EmptySpace min="-2" pref="30" max="-2" attributes="0"/> + </Group> + <Group type="102" alignment="1" attributes="0"> + <EmptySpace max="-2" attributes="0"/> + <Component id="btn_signUp" min="-2" max="-2" attributes="0"/> + <EmptySpace min="-2" pref="2" max="-2" attributes="0"/> + </Group> + </Group> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" attributes="0"> + <EmptySpace min="-2" pref="62" max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="103" alignment="0" groupAlignment="1" max="-2" attributes="0"> + <Component id="txt_dob" alignment="0" pref="180" max="32767" attributes="0"/> + <Component id="txt_password" alignment="0" max="32767" attributes="0"/> + <Component id="txt_userName" alignment="0" max="32767" attributes="0"/> + <Component id="txt_lastName" alignment="0" max="32767" attributes="0"/> + <Component id="txt_firstName" alignment="0" max="32767" attributes="0"/> + <Component id="txt_confirmPassword" alignment="0" max="32767" attributes="0"/> + </Group> + <Component id="txt_contactNo" alignment="0" min="-2" pref="180" max="-2" attributes="0"/> + </Group> + <EmptySpace min="-2" pref="42" max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="txt_password_error" pref="202" max="32767" attributes="0"/> + <Component id="txt_number_error" max="32767" attributes="0"/> + </Group> + </Group> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="-2" pref="54" max="-2" attributes="0"/> + <Component id="btn_login" min="-2" max="-2" attributes="0"/> + <EmptySpace min="0" pref="0" max="32767" attributes="0"/> + </Group> + </Group> + </Group> + </Group> + <EmptySpace max="-2" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + <DimensionLayout dim="1"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace max="-2" attributes="0"/> + <Component id="jLabel8" min="-2" max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" attributes="0"> + <EmptySpace min="-2" pref="24" max="-2" attributes="0"/> + <Group type="103" groupAlignment="1" attributes="0"> + <Group type="102" attributes="0"> + <Group type="103" groupAlignment="1" attributes="0"> + <Group type="102" attributes="0"> + <Group type="103" groupAlignment="3" attributes="0"> + <Component id="jLabel2" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="txt_firstName" alignment="3" min="-2" max="-2" attributes="0"/> + </Group> + <EmptySpace type="separate" max="-2" attributes="0"/> + <Group type="103" groupAlignment="3" attributes="0"> + <Component id="jLabel5" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="txt_lastName" alignment="3" min="-2" max="-2" attributes="0"/> + </Group> + <EmptySpace type="separate" max="-2" attributes="0"/> + <Group type="103" groupAlignment="3" attributes="0"> + <Component id="jLabel4" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="txt_userName" alignment="3" min="-2" max="-2" attributes="0"/> + </Group> + <EmptySpace type="separate" max="-2" attributes="0"/> + <Group type="103" groupAlignment="3" attributes="0"> + <Component id="jLabel9" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="txt_password" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="txt_password_error" alignment="3" min="-2" max="-2" attributes="0"/> + </Group> + <EmptySpace type="separate" max="-2" attributes="0"/> + <Group type="103" groupAlignment="3" attributes="0"> + <Component id="jLabel6" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="txt_confirmPassword" alignment="3" min="-2" max="-2" attributes="0"/> + </Group> + <EmptySpace type="separate" max="-2" attributes="0"/> + <Component id="jLabel7" min="-2" max="-2" attributes="0"/> + </Group> + <Component id="txt_dob" min="-2" max="-2" attributes="0"/> + </Group> + <EmptySpace type="separate" max="-2" attributes="0"/> + <Group type="103" groupAlignment="3" attributes="0"> + <Component id="jLabel11" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="txt_contactNo" alignment="3" min="-2" max="-2" attributes="0"/> + </Group> + <EmptySpace min="-2" pref="9" max="-2" attributes="0"/> + </Group> + <Component id="txt_number_error" min="-2" max="-2" attributes="0"/> + </Group> + <EmptySpace min="22" pref="107" max="32767" attributes="0"/> + </Group> + <Group type="102" alignment="1" attributes="0"> + <EmptySpace max="32767" attributes="0"/> + <Group type="103" groupAlignment="3" attributes="0"> + <Component id="btn_signUp" alignment="3" min="-2" max="-2" attributes="0"/> + <Component id="btn_login" alignment="3" min="-2" max="-2" attributes="0"/> + </Group> + <EmptySpace min="-2" pref="32" max="-2" attributes="0"/> + </Group> + </Group> + </Group> + </Group> + </DimensionLayout> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="jLabel2"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="18" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="First Name :"/> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="jLabel4"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="18" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Username :"/> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="jLabel5"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="18" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Last Name :"/> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="jLabel6"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="18" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Confirm Password :"/> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="jLabel8"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="18" style="1"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="jLabel9"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="18" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Password :"/> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="jLabel7"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="18" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Date Of Birth :"/> + </Properties> + </Component> + <Component class="com.toedter.calendar.JDateChooser" name="txt_dob"> + </Component> + <Component class="javax.swing.JTextField" name="txt_firstName"> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="txt_firstNameActionPerformed"/> + </Events> + </Component> + <Component class="javax.swing.JTextField" name="txt_lastName"> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="txt_lastNameActionPerformed"/> + </Events> + </Component> + <Component class="javax.swing.JTextField" name="txt_userName"> + </Component> + <Component class="javax.swing.JPasswordField" name="txt_password"> + <Events> + <EventHandler event="keyPressed" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="txt_passwordKeyPressed"/> + <EventHandler event="keyReleased" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="txt_passwordKeyReleased"/> + <EventHandler event="keyTyped" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="txt_passwordKeyTyped"/> + </Events> + </Component> + <Component class="javax.swing.JPasswordField" name="txt_confirmPassword"> + </Component> + <Component class="javax.swing.JButton" name="btn_signUp"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="SignUp"/> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btn_signUpActionPerformed"/> + </Events> + </Component> + <Component class="javax.swing.JButton" name="btn_login"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Login"/> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="jLabel11"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="18" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Contact No:"/> + </Properties> + </Component> + <Component class="javax.swing.JTextField" name="txt_contactNo"> + <Events> + <EventHandler event="keyPressed" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="txt_contactNoKeyPressed"/> + <EventHandler event="keyReleased" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="txt_contactNoKeyReleased"/> + <EventHandler event="keyTyped" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="txt_contactNoKeyTyped"/> + </Events> + </Component> + <Component class="javax.swing.JLabel" name="txt_password_error"> + <Properties> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="0" red="ff" type="rgb"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="txt_number_error"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="14" style="0"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="0" green="0" red="ff" type="rgb"/> + </Property> + <Property name="verticalAlignment" type="int" value="1"/> + </Properties> + </Component> + </SubComponents> + </Container> + </SubComponents> +</Form> diff --git a/src/fees_management_system/Sign_Up_form.java b/src/fees_management_system/Sign_Up_form.java new file mode 100644 index 0000000..8e3fabb --- /dev/null +++ b/src/fees_management_system/Sign_Up_form.java @@ -0,0 +1,515 @@ +package fees_managment_syatem; + + +import java.util.Date; +import javax.swing.JOptionPane; +import java.sql.Connection; +import java.sql.DriverManager; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.text.SimpleDateFormat; +import java.sql.Statement; + +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/GUIForms/JFrame.java to edit this template + */ + +/** + * + * @author y + */ +public class Sign_Up_form extends javax.swing.JFrame { + + /** + * Creates new form Sign_Up_form + */ + String fname,lname,usname,password,com_password,contNo; + Date dob; + int id=0; + public Sign_Up_form() { + initComponents(); + } + public int getId(){ + ResultSet rs=null; + try{ + Class.forName("com.mysql.cj.jdbc.Driver"); + Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/fees_managment?zeroDateTimeBehavior=CONVERT_TO_NULL","root",""); + String sql="select max(id) from SIGNUP"; + Statement st=con.createStatement(); + rs=st.executeQuery(sql); + while(rs.next()){ + id=rs.getInt(1); + ++id; + } + } + catch(Exception e){ + e.printStackTrace(); + } + return id; + } + boolean validation(){ + + fname=txt_firstName.getText(); + lname=txt_lastName.getText(); + usname=txt_userName.getText(); + password=txt_password.getText(); + com_password=txt_confirmPassword.getText(); + contNo=txt_contactNo.getText(); + dob=txt_dob.getDate(); + if(fname.equals("")){ + JOptionPane.showMessageDialog(this,"Please Enter First Name."); + return false; + } + if(lname.equals("")){ + JOptionPane.showMessageDialog(this, "Please Enter Last Name."); + return false; + } + if(usname.equals("")){ + JOptionPane.showMessageDialog(this,"Please Enter UserName."); + return false; + } + if(password.equals("")){ + JOptionPane.showMessageDialog(this, "Please Enter Password."); + return false; + } + if(com_password.equals("")){ + JOptionPane.showMessageDialog(this,"Please Enter Confirm Password."); + return false; + } + if(contNo.equals("")){ + JOptionPane.showMessageDialog(this,"Please Enter Contact No."); + return false; + } + if(dob == null){ + JOptionPane.showMessageDialog(this,"Pleaase Enter Date Of Birth"); + return false; + } + if(password.length()<8){ + txt_password_error.setText("Password should be of 8 charachter"); + } + if(contNo.length()<10){ + txt_number_error.setText("Number should be of 10 digits "); + } + if(!(password.equals(com_password))){ + JOptionPane.showMessageDialog(this, "Password Not Match."); + } + + return true; + } + public void checkPassword() + { + password=txt_password.getText(); + if(password.length()<8){ + txt_password_error.setText("Password should be of 8 charachter"); + } + else{ + txt_password_error.setText(""); + } + } + public void checkContactNo(){ + contNo=txt_contactNo.getText(); + if(contNo.length()==10){ + txt_number_error.setText(""); + } + else{ + txt_number_error.setText("Number should be of 10 digits"); + } + } + void insertDetails(){ + SimpleDateFormat format=new SimpleDateFormat("yyyy-MM-dd"); + String mydob=format.format(dob); + try{ + Class.forName("com.mysql.cj.jdbc.Driver"); + Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/fees_managment?zeroDateTimeBehavior=CONVERT_TO_NULL","root",""); + String sql="insert into signUp values(?,?,?,?,?,?,?)"; + PreparedStatement stmt=con.prepareStatement(sql); + stmt.setInt(1,getId()); + stmt.setString(2, fname); + stmt.setString(3,lname); + stmt.setString(4,usname); + stmt.setString(5, password); + stmt.setString(6,mydob); + stmt.setString(7,contNo); + int i=stmt.executeUpdate(); + if(i>0){ + JOptionPane.showMessageDialog(this,"Record Succesfully Inserted"); + } + else{ + JOptionPane.showMessageDialog(this,"Records Not Inserted"); + } + } + catch(Exception e){ + e.printStackTrace(); + } + } + /** + * This method is called from within the constructor to initialize the form. + * WARNING: Do NOT modify this code. The content of this method is always + * regenerated by the Form Editor. + */ + @SuppressWarnings("unchecked") + // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents + private void initComponents() { + + jLabel3 = new javax.swing.JLabel(); + gendergroup = new javax.swing.ButtonGroup(); + jPanel1 = new javax.swing.JPanel(); + jLabel1 = new javax.swing.JLabel(); + jSeparator1 = new javax.swing.JSeparator(); + jPanel2 = new javax.swing.JPanel(); + jLabel2 = new javax.swing.JLabel(); + jLabel4 = new javax.swing.JLabel(); + jLabel5 = new javax.swing.JLabel(); + jLabel6 = new javax.swing.JLabel(); + jLabel8 = new javax.swing.JLabel(); + jLabel9 = new javax.swing.JLabel(); + jLabel7 = new javax.swing.JLabel(); + txt_dob = new com.toedter.calendar.JDateChooser(); + txt_firstName = new javax.swing.JTextField(); + txt_lastName = new javax.swing.JTextField(); + txt_userName = new javax.swing.JTextField(); + txt_password = new javax.swing.JPasswordField(); + txt_confirmPassword = new javax.swing.JPasswordField(); + btn_signUp = new javax.swing.JButton(); + btn_login = new javax.swing.JButton(); + jLabel11 = new javax.swing.JLabel(); + txt_contactNo = new javax.swing.JTextField(); + txt_password_error = new javax.swing.JLabel(); + txt_number_error = new javax.swing.JLabel(); + + jLabel3.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N + jLabel3.setText("Last Name :"); + + setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); + + jPanel1.setBackground(new java.awt.Color(255, 204, 204)); + jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(51, 255, 0))); + + jLabel1.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + jLabel1.setText(" Sign Up"); + jLabel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 255, 0))); + + javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); + jPanel1.setLayout(jPanel1Layout); + jPanel1Layout.setHorizontalGroup( + jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 708, Short.MAX_VALUE) + .addGroup(jPanel1Layout.createSequentialGroup() + .addGap(234, 234, 234) + .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE) + .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) + ); + jPanel1Layout.setVerticalGroup( + jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() + .addContainerGap() + .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 40, Short.MAX_VALUE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(10, 10, 10)) + ); + + jPanel2.setBackground(new java.awt.Color(255, 153, 153)); + jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(102, 255, 0))); + + jLabel2.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N + jLabel2.setText("First Name :"); + + jLabel4.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N + jLabel4.setText("Username :"); + + jLabel5.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N + jLabel5.setText("Last Name :"); + + jLabel6.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N + jLabel6.setText("Confirm Password :"); + + jLabel8.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N + + jLabel9.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N + jLabel9.setText("Password :"); + + jLabel7.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N + jLabel7.setText("Date Of Birth :"); + + txt_firstName.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + txt_firstNameActionPerformed(evt); + } + }); + + txt_lastName.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + txt_lastNameActionPerformed(evt); + } + }); + + txt_password.addKeyListener(new java.awt.event.KeyAdapter() { + public void keyPressed(java.awt.event.KeyEvent evt) { + txt_passwordKeyPressed(evt); + } + public void keyReleased(java.awt.event.KeyEvent evt) { + txt_passwordKeyReleased(evt); + } + public void keyTyped(java.awt.event.KeyEvent evt) { + txt_passwordKeyTyped(evt); + } + }); + + btn_signUp.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + btn_signUp.setText("SignUp"); + btn_signUp.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + btn_signUpActionPerformed(evt); + } + }); + + btn_login.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + btn_login.setText("Login"); + + jLabel11.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N + jLabel11.setText("Contact No:"); + + txt_contactNo.addKeyListener(new java.awt.event.KeyAdapter() { + public void keyPressed(java.awt.event.KeyEvent evt) { + txt_contactNoKeyPressed(evt); + } + public void keyReleased(java.awt.event.KeyEvent evt) { + txt_contactNoKeyReleased(evt); + } + public void keyTyped(java.awt.event.KeyEvent evt) { + txt_contactNoKeyTyped(evt); + } + }); + + txt_password_error.setForeground(new java.awt.Color(255, 0, 51)); + + txt_number_error.setFont(new java.awt.Font("Segoe UI", 0, 14)); // NOI18N + txt_number_error.setForeground(new java.awt.Color(255, 0, 0)); + txt_number_error.setVerticalAlignment(javax.swing.SwingConstants.TOP); + + javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); + jPanel2.setLayout(jPanel2Layout); + jPanel2Layout.setHorizontalGroup( + jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel2Layout.createSequentialGroup() + .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() + .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addComponent(jLabel8)) + .addGroup(jPanel2Layout.createSequentialGroup() + .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel2Layout.createSequentialGroup() + .addGap(29, 29, 29) + .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jLabel2) + .addComponent(jLabel5) + .addComponent(jLabel4) + .addComponent(jLabel9) + .addComponent(jLabel6) + .addComponent(jLabel7) + .addComponent(jLabel11)) + .addGap(30, 30, 30)) + .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() + .addContainerGap() + .addComponent(btn_signUp) + .addGap(2, 2, 2))) + .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel2Layout.createSequentialGroup() + .addGap(62, 62, 62) + .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) + .addComponent(txt_dob, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 180, Short.MAX_VALUE) + .addComponent(txt_password, javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(txt_userName, javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(txt_lastName, javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(txt_firstName, javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(txt_confirmPassword, javax.swing.GroupLayout.Alignment.LEADING)) + .addComponent(txt_contactNo, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGap(42, 42, 42) + .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(txt_password_error, javax.swing.GroupLayout.DEFAULT_SIZE, 202, Short.MAX_VALUE) + .addComponent(txt_number_error, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) + .addGroup(jPanel2Layout.createSequentialGroup() + .addGap(54, 54, 54) + .addComponent(btn_login) + .addGap(0, 0, Short.MAX_VALUE))))) + .addContainerGap()) + ); + jPanel2Layout.setVerticalGroup( + jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel2Layout.createSequentialGroup() + .addContainerGap() + .addComponent(jLabel8) + .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel2Layout.createSequentialGroup() + .addGap(24, 24, 24) + .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) + .addGroup(jPanel2Layout.createSequentialGroup() + .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) + .addGroup(jPanel2Layout.createSequentialGroup() + .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel2) + .addComponent(txt_firstName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGap(18, 18, 18) + .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel5) + .addComponent(txt_lastName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGap(18, 18, 18) + .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel4) + .addComponent(txt_userName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGap(18, 18, 18) + .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel9) + .addComponent(txt_password, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(txt_password_error)) + .addGap(18, 18, 18) + .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel6) + .addComponent(txt_confirmPassword, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGap(18, 18, 18) + .addComponent(jLabel7)) + .addComponent(txt_dob, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGap(18, 18, 18) + .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel11) + .addComponent(txt_contactNo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGap(9, 9, 9)) + .addComponent(txt_number_error)) + .addGap(22, 107, Short.MAX_VALUE)) + .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(btn_signUp) + .addComponent(btn_login)) + .addGap(32, 32, 32)))) + ); + + javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); + getContentPane().setLayout(layout); + layout.setHorizontalGroup( + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addContainerGap() + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) + .addContainerGap()) + ); + layout.setVerticalGroup( + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addContainerGap()) + ); + + pack(); + setLocationRelativeTo(null); + }// </editor-fold>//GEN-END:initComponents + + private void txt_lastNameActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txt_lastNameActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_txt_lastNameActionPerformed + + private void txt_firstNameActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txt_firstNameActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_txt_firstNameActionPerformed + + private void btn_signUpActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_signUpActionPerformed + // TODO add your handling code here: + if(validation()){ + insertDetails(); + } + }//GEN-LAST:event_btn_signUpActionPerformed + + private void txt_passwordKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_passwordKeyPressed +checkPassword(); // TODO add your handling code here: + }//GEN-LAST:event_txt_passwordKeyPressed + + private void txt_passwordKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_passwordKeyReleased +checkPassword(); // TODO add your handling code here: + }//GEN-LAST:event_txt_passwordKeyReleased + + private void txt_passwordKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_passwordKeyTyped +checkPassword(); // TODO add your handling code here: + }//GEN-LAST:event_txt_passwordKeyTyped + + private void txt_contactNoKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_contactNoKeyPressed +checkContactNo(); // TODO add your handling code here: + }//GEN-LAST:event_txt_contactNoKeyPressed + + private void txt_contactNoKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_contactNoKeyReleased +checkContactNo(); // TODO add your handling code here: + }//GEN-LAST:event_txt_contactNoKeyReleased + + private void txt_contactNoKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txt_contactNoKeyTyped +checkContactNo(); // TODO add your handling code here: + }//GEN-LAST:event_txt_contactNoKeyTyped + + /** + * @param args the command line arguments + */ + public static void main(String args[]) { + /* Set the Nimbus look and feel */ + //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> + /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. + * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html + */ + try { + for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { + if ("Nimbus".equals(info.getName())) { + javax.swing.UIManager.setLookAndFeel(info.getClassName()); + break; + } + } + } catch (ClassNotFoundException ex) { + java.util.logging.Logger.getLogger(Sign_Up_form.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (InstantiationException ex) { + java.util.logging.Logger.getLogger(Sign_Up_form.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (IllegalAccessException ex) { + java.util.logging.Logger.getLogger(Sign_Up_form.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (javax.swing.UnsupportedLookAndFeelException ex) { + java.util.logging.Logger.getLogger(Sign_Up_form.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } + //</editor-fold> + + /* Create and display the form */ + java.awt.EventQueue.invokeLater(new Runnable() { + public void run() { + new Sign_Up_form().setVisible(true); + } + }); + } + + // Variables declaration - do not modify//GEN-BEGIN:variables + private javax.swing.JButton btn_login; + private javax.swing.JButton btn_signUp; + private javax.swing.ButtonGroup gendergroup; + private javax.swing.JLabel jLabel1; + private javax.swing.JLabel jLabel11; + private javax.swing.JLabel jLabel2; + private javax.swing.JLabel jLabel3; + private javax.swing.JLabel jLabel4; + private javax.swing.JLabel jLabel5; + private javax.swing.JLabel jLabel6; + private javax.swing.JLabel jLabel7; + private javax.swing.JLabel jLabel8; + private javax.swing.JLabel jLabel9; + private javax.swing.JPanel jPanel1; + private javax.swing.JPanel jPanel2; + private javax.swing.JSeparator jSeparator1; + private javax.swing.JPasswordField txt_confirmPassword; + private javax.swing.JTextField txt_contactNo; + private com.toedter.calendar.JDateChooser txt_dob; + private javax.swing.JTextField txt_firstName; + private javax.swing.JTextField txt_lastName; + private javax.swing.JLabel txt_number_error; + private javax.swing.JPasswordField txt_password; + private javax.swing.JLabel txt_password_error; + private javax.swing.JTextField txt_userName; + // End of variables declaration//GEN-END:variables +} diff --git a/src/fees_management_system/UpdateFeesDetails.form b/src/fees_management_system/UpdateFeesDetails.form new file mode 100644 index 0000000..98870dd --- /dev/null +++ b/src/fees_management_system/UpdateFeesDetails.form @@ -0,0 +1,954 @@ +<?xml version="1.0" encoding="UTF-8" ?> + +<Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo"> + <Properties> + <Property name="defaultCloseOperation" type="int" value="3"/> + </Properties> + <SyntheticProperties> + <SyntheticProperty name="formSizePolicy" type="int" value="1"/> + <SyntheticProperty name="generateCenter" type="boolean" value="true"/> + </SyntheticProperties> + <AuxValues> + <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/> + <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/> + <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/> + <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/> + <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/> + <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,2,50,0,0,5,24"/> + </AuxValues> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Container class="javax.swing.JPanel" name="panelSideBar"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="0" y="0" width="430" height="1040"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Container class="javax.swing.JPanel" name="panelLogOut"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="80" y="540" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnLogOut"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/logout.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" Logout"/> + </Properties> + <Events> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnLogOutMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnLogOutMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="0" y="-10" width="260" height="-1"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelHome"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="80" y="60" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnHome"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/home.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" HOME"/> + </Properties> + <Events> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnHomeMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnHomeMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="0" width="310" height="50"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelSearchRecords"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="80" y="140" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnSearchRecords"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/search2.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" Search Records"/> + </Properties> + <Events> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnSearchRecordsMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnSearchRecordsMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="0" width="310" height="60"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelEditCourse"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="24" style="1"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="80" y="220" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnEditCourse"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/edit2.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" Edit Course"/> + </Properties> + <Events> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnEditCourseMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnEditCourseMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="0" width="260" height="-1"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelCourseList"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="80" y="300" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnCourseList"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/list.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" Course List"/> + </Properties> + <Events> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnCourseListMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnCourseListMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="0" y="-10" width="260" height="-1"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelViewAllRecords"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="80" y="380" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnViewAllRecords"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/view all record.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" View All Records"/> + </Properties> + <Events> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnViewAllRecordsMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnViewAllRecordsMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="0" y="0" width="320" height="-1"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelBack"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="80" y="460" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnBack"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/left-arrow.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" Back"/> + </Properties> + <Events> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnBackMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnBackMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="0" y="-10" width="260" height="-1"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelParent"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="cc" green="cc" red="ff" type="rgb"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="430" y="0" width="1420" height="1040"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="lblChequeNo"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Cheque No :"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="70" y="80" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblReceiptNo"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Receipt no : MLV-"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="30" y="20" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblDdNo"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="DD no :"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="100" y="80" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblModeOfPayment"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value=" Mode of payment : "/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="30" y="50" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="txtGSTNo"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value=" sffsfe22"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="630" y="50" width="70" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblDate"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value=" Date : "/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="570" y="20" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtReceiptNo"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="160" y="20" width="150" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtChequeNo"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="160" y="80" width="150" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="com.toedter.calendar.JDateChooser" name="DateChosser"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="620" y="20" width="140" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Container class="javax.swing.JPanel" name="panelChild"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="cc" green="cc" red="ff" type="rgb"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="0" y="140" width="870" height="900"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="lblPaymentCollage"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="the following paymemnts the collage office for the year "/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="30" y="50" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblTo"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="to"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="460" y="50" width="20" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtLastDate"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="490" y="50" width="80" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblAmount"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Amount"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="700" y="130" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtFirstDate"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="360" y="50" width="90" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblReceiverSignature"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Receiver signature"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="710" y="340" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblRecievedFrom"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Recieved From :"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="30" y="20" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JSeparator" name="jSeparator1"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="150" width="820" height="10"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JSeparator" name="jSeparator2"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="120" width="820" height="10"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblCourse"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Course :"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="30" y="80" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblRemark"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Remark :"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="20" y="380" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblSgst"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="SGST 9% "/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="300" y="220" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtSumTotal"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="660" y="260" width="150" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtTotalInWords"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="130" y="310" width="410" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtCgst"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="660" y="190" width="150" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtAmountFirst"> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="txtAmountFirstActionPerformed"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="660" y="160" width="150" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JSeparator" name="jSeparator3"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="650" y="250" width="180" height="10"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtSgst"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="660" y="220" width="150" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblSrNo"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Sr No "/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="30" y="130" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtHead"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="130" y="20" width="400" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Container class="javax.swing.JScrollPane" name="jScrollPane1"> + <AuxValues> + <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/> + </AuxValues> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="130" y="360" width="410" height="90"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/> + <SubComponents> + <Component class="javax.swing.JTextPane" name="textPaneRemark"> + </Component> + </SubComponents> + </Container> + <Component class="javax.swing.JLabel" name="lblTotalInWords"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Total in words : "/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="20" y="310" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JSeparator" name="jSeparator4"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="650" y="330" width="190" height="20"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="jLabel18"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Roll No :"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="610" y="80" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JButton" name="btnPrint"> + <Properties> + <Property name="text" type="java.lang.String" value="Print"/> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnPrintActionPerformed"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="720" y="430" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblHead"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Head "/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="300" y="130" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblCgst"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="CGST 9%"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="300" y="190" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JComboBox" name="comboBoxCourse1"> + <Properties> + <Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor"> + <StringArray count="0"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="comboBoxCourse1ActionPerformed"/> + </Events> + <AuxValues> + <AuxValue name="JavaCodeGenerator_TypeParameters" type="java.lang.String" value="<String>"/> + </AuxValues> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="130" y="80" width="350" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtHead1"> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="txtHead1ActionPerformed"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="130" y="160" width="400" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtRollNo"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="660" y="80" width="90" height="-1"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Component class="javax.swing.JTextField" name="txtDDNo"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="160" y="80" width="150" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JComboBox" name="comboBoxPayment"> + <Properties> + <Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor"> + <StringArray count="4"> + <StringItem index="0" value="DD"/> + <StringItem index="1" value="Cheque"/> + <StringItem index="2" value="Cash"/> + <StringItem index="3" value="Card"/> + </StringArray> + </Property> + <Property name="selectedIndex" type="int" value="2"/> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="comboBoxPaymentActionPerformed"/> + </Events> + <AuxValues> + <AuxValue name="JavaCodeGenerator_TypeParameters" type="java.lang.String" value="<String>"/> + </AuxValues> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="160" y="50" width="150" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtBankName1"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="160" y="110" width="150" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblBankName1"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Bank Name : "/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="70" y="110" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblGSTNo1"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value=" GSTIN: "/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="570" y="50" width="60" height="-1"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + </SubComponents> +</Form> diff --git a/src/fees_management_system/UpdateFeesDetails.java b/src/fees_management_system/UpdateFeesDetails.java new file mode 100644 index 0000000..9270b2c --- /dev/null +++ b/src/fees_management_system/UpdateFeesDetails.java @@ -0,0 +1,848 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/GUIForms/JFrame.java to edit this template + */ +package fees_managment_syatem; + +import java.awt.Color; +import java.sql.Connection; +import java.sql.DriverManager; +import javax.swing.JOptionPane; +import java.sql.ResultSet; +import java.sql.PreparedStatement; +import java.text.SimpleDateFormat; + +/** + * + * @author yash + */ +public class UpdateFeesDetails extends javax.swing.JFrame { + + /** + * Creates new form addFees + */ + public UpdateFeesDetails() { + initComponents(); + displayCashFirst(); + fillComboBox(); + int receipt_no=getReceiptNo(); + txtReceiptNo.setText(Integer.toString(receipt_no)); + setRecords(); + } + public void displayCashFirst(){ + lblDdNo.setVisible(false); + lblChequeNo.setVisible(false); + txtChequeNo.setVisible(false); + txtDDNo.setVisible(false); + lblBankName1.setVisible(false); + txtBankName1.setVisible(false); + + } + public boolean validation(){ + if(txtHead.getText().equals("")){ + JOptionPane.showMessageDialog(this,"please enter user name."); + return false; + } + if(DateChosser.getDate() == null){ + JOptionPane.showMessageDialog(this, "please select a date."); + return false; + } + if(txtAmountFirst.getText().equals("")){ + JOptionPane.showMessageDialog(this,"please enter amount."); + return false; + } + if(comboBoxPayment.getSelectedItem().toString().equalsIgnoreCase("Cheque")){ + if(txtChequeNo.getText().equals("")){ + JOptionPane.showMessageDialog(this,"please enter cheque number."); + return false; + } + if(txtGSTNo.getText().equals("")){ + JOptionPane.showMessageDialog(this,"please enter bank name."); + return false; + } + } + if(comboBoxPayment.getSelectedItem().toString().equalsIgnoreCase("DD")){ + if(txtDDNo.getText().equals("")){ + JOptionPane.showMessageDialog(this, "please enter dd no."); + return false; + } + if(txtBankName1.getText().equals("")){ + JOptionPane.showMessageDialog(this,"please enter bank name."); + return false; + } + } + if(comboBoxPayment.getSelectedItem().toString().equalsIgnoreCase("Card")){ + if(txtBankName1.getText().equals("")){ + JOptionPane.showMessageDialog(this,"please enter bank name"); + return false; + } + } + return true; + } + public void fillComboBox(){ + try{ + Class.forName("com.mysql.cj.jdbc.Driver"); + Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/fees_managment?zeroDateTimeBehavior=CONVERT_TO_NULL","root",""); + PreparedStatement pst=con.prepareStatement("select CNAME from course"); + ResultSet rs=pst.executeQuery(); + while(rs.next()){ + comboBoxCourse1.addItem(rs.getString("CNAME")); + } + }catch(Exception e){ + e.printStackTrace(); + } + } + /** + * This method is called from within the constructor to initialize the form. + * WARNING: Do NOT modify this code. The content of this method is always + * regenerated by the Form Editor. + */ + @SuppressWarnings("unchecked") + // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents + private void initComponents() { + + panelSideBar = new javax.swing.JPanel(); + panelLogOut = new javax.swing.JPanel(); + btnLogOut = new javax.swing.JLabel(); + panelHome = new javax.swing.JPanel(); + btnHome = new javax.swing.JLabel(); + panelSearchRecords = new javax.swing.JPanel(); + btnSearchRecords = new javax.swing.JLabel(); + panelEditCourse = new javax.swing.JPanel(); + btnEditCourse = new javax.swing.JLabel(); + panelCourseList = new javax.swing.JPanel(); + btnCourseList = new javax.swing.JLabel(); + panelViewAllRecords = new javax.swing.JPanel(); + btnViewAllRecords = new javax.swing.JLabel(); + panelBack = new javax.swing.JPanel(); + btnBack = new javax.swing.JLabel(); + panelParent = new javax.swing.JPanel(); + lblChequeNo = new javax.swing.JLabel(); + lblReceiptNo = new javax.swing.JLabel(); + lblDdNo = new javax.swing.JLabel(); + lblModeOfPayment = new javax.swing.JLabel(); + txtGSTNo = new javax.swing.JLabel(); + lblDate = new javax.swing.JLabel(); + txtReceiptNo = new javax.swing.JTextField(); + txtChequeNo = new javax.swing.JTextField(); + DateChosser = new com.toedter.calendar.JDateChooser(); + panelChild = new javax.swing.JPanel(); + lblPaymentCollage = new javax.swing.JLabel(); + lblTo = new javax.swing.JLabel(); + txtLastDate = new javax.swing.JTextField(); + lblAmount = new javax.swing.JLabel(); + txtFirstDate = new javax.swing.JTextField(); + lblReceiverSignature = new javax.swing.JLabel(); + lblRecievedFrom = new javax.swing.JLabel(); + jSeparator1 = new javax.swing.JSeparator(); + jSeparator2 = new javax.swing.JSeparator(); + lblCourse = new javax.swing.JLabel(); + lblRemark = new javax.swing.JLabel(); + lblSgst = new javax.swing.JLabel(); + txtSumTotal = new javax.swing.JTextField(); + txtTotalInWords = new javax.swing.JTextField(); + txtCgst = new javax.swing.JTextField(); + txtAmountFirst = new javax.swing.JTextField(); + jSeparator3 = new javax.swing.JSeparator(); + txtSgst = new javax.swing.JTextField(); + lblSrNo = new javax.swing.JLabel(); + txtHead = new javax.swing.JTextField(); + jScrollPane1 = new javax.swing.JScrollPane(); + textPaneRemark = new javax.swing.JTextPane(); + lblTotalInWords = new javax.swing.JLabel(); + jSeparator4 = new javax.swing.JSeparator(); + jLabel18 = new javax.swing.JLabel(); + btnPrint = new javax.swing.JButton(); + lblHead = new javax.swing.JLabel(); + lblCgst = new javax.swing.JLabel(); + comboBoxCourse1 = new javax.swing.JComboBox<>(); + txtHead1 = new javax.swing.JTextField(); + txtRollNo = new javax.swing.JTextField(); + txtDDNo = new javax.swing.JTextField(); + comboBoxPayment = new javax.swing.JComboBox<>(); + txtBankName1 = new javax.swing.JTextField(); + lblBankName1 = new javax.swing.JLabel(); + lblGSTNo1 = new javax.swing.JLabel(); + + setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); + getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + panelSideBar.setBackground(new java.awt.Color(255, 102, 102)); + panelSideBar.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + panelLogOut.setBackground(new java.awt.Color(255, 102, 102)); + panelLogOut.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelLogOut.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnLogOut.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnLogOut.setForeground(new java.awt.Color(255, 255, 255)); + btnLogOut.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/logout.png"))); // NOI18N + btnLogOut.setText(" Logout"); + btnLogOut.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnLogOutMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnLogOutMouseExited(evt); + } + }); + panelLogOut.add(btnLogOut, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, -10, 260, -1)); + + panelSideBar.add(panelLogOut, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 540, 320, 50)); + + panelHome.setBackground(new java.awt.Color(255, 102, 102)); + panelHome.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelHome.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnHome.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnHome.setForeground(new java.awt.Color(255, 255, 255)); + btnHome.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/home.png"))); // NOI18N + btnHome.setText(" HOME"); + btnHome.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnHomeMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnHomeMouseExited(evt); + } + }); + panelHome.add(btnHome, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 0, 310, 50)); + + panelSideBar.add(panelHome, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 60, 320, 50)); + + panelSearchRecords.setBackground(new java.awt.Color(255, 102, 102)); + panelSearchRecords.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelSearchRecords.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnSearchRecords.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnSearchRecords.setForeground(new java.awt.Color(255, 255, 255)); + btnSearchRecords.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/search2.png"))); // NOI18N + btnSearchRecords.setText(" Search Records"); + btnSearchRecords.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnSearchRecordsMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnSearchRecordsMouseExited(evt); + } + }); + panelSearchRecords.add(btnSearchRecords, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 0, 310, 60)); + + panelSideBar.add(panelSearchRecords, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 140, 320, 50)); + + panelEditCourse.setBackground(new java.awt.Color(255, 102, 102)); + panelEditCourse.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelEditCourse.setFont(new java.awt.Font("Segoe UI", 1, 24)); // NOI18N + panelEditCourse.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnEditCourse.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnEditCourse.setForeground(new java.awt.Color(255, 255, 255)); + btnEditCourse.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/edit2.png"))); // NOI18N + btnEditCourse.setText(" Edit Course"); + btnEditCourse.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnEditCourseMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnEditCourseMouseExited(evt); + } + }); + panelEditCourse.add(btnEditCourse, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 0, 260, -1)); + + panelSideBar.add(panelEditCourse, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 220, 320, 50)); + + panelCourseList.setBackground(new java.awt.Color(255, 102, 102)); + panelCourseList.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelCourseList.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnCourseList.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnCourseList.setForeground(new java.awt.Color(255, 255, 255)); + btnCourseList.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/list.png"))); // NOI18N + btnCourseList.setText(" Course List"); + btnCourseList.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnCourseListMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnCourseListMouseExited(evt); + } + }); + panelCourseList.add(btnCourseList, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, -10, 260, -1)); + + panelSideBar.add(panelCourseList, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 300, 320, 50)); + + panelViewAllRecords.setBackground(new java.awt.Color(255, 102, 102)); + panelViewAllRecords.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelViewAllRecords.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnViewAllRecords.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnViewAllRecords.setForeground(new java.awt.Color(255, 255, 255)); + btnViewAllRecords.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/view all record.png"))); // NOI18N + btnViewAllRecords.setText(" View All Records"); + btnViewAllRecords.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnViewAllRecordsMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnViewAllRecordsMouseExited(evt); + } + }); + panelViewAllRecords.add(btnViewAllRecords, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 320, -1)); + + panelSideBar.add(panelViewAllRecords, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 380, 320, 50)); + + panelBack.setBackground(new java.awt.Color(255, 102, 102)); + panelBack.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelBack.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnBack.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnBack.setForeground(new java.awt.Color(255, 255, 255)); + btnBack.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/left-arrow.png"))); // NOI18N + btnBack.setText(" Back"); + btnBack.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnBackMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnBackMouseExited(evt); + } + }); + panelBack.add(btnBack, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, -10, 260, -1)); + + panelSideBar.add(panelBack, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 460, 320, 50)); + + getContentPane().add(panelSideBar, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 430, 1040)); + + panelParent.setBackground(new java.awt.Color(255, 204, 204)); + panelParent.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + lblChequeNo.setBackground(new java.awt.Color(51, 51, 51)); + lblChequeNo.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblChequeNo.setText("Cheque No :"); + panelParent.add(lblChequeNo, new org.netbeans.lib.awtextra.AbsoluteConstraints(70, 80, -1, -1)); + + lblReceiptNo.setBackground(new java.awt.Color(51, 51, 51)); + lblReceiptNo.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblReceiptNo.setText("Receipt no : MLV-"); + panelParent.add(lblReceiptNo, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 20, -1, -1)); + + lblDdNo.setBackground(new java.awt.Color(51, 51, 51)); + lblDdNo.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblDdNo.setText("DD no :"); + panelParent.add(lblDdNo, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 80, -1, -1)); + + lblModeOfPayment.setBackground(new java.awt.Color(51, 51, 51)); + lblModeOfPayment.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblModeOfPayment.setText(" Mode of payment : "); + panelParent.add(lblModeOfPayment, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 50, -1, -1)); + + txtGSTNo.setBackground(new java.awt.Color(51, 51, 51)); + txtGSTNo.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + txtGSTNo.setText(" sffsfe22"); + panelParent.add(txtGSTNo, new org.netbeans.lib.awtextra.AbsoluteConstraints(630, 50, 70, -1)); + + lblDate.setBackground(new java.awt.Color(51, 51, 51)); + lblDate.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblDate.setText(" Date : "); + panelParent.add(lblDate, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 20, -1, -1)); + panelParent.add(txtReceiptNo, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 20, 150, -1)); + panelParent.add(txtChequeNo, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 80, 150, -1)); + panelParent.add(DateChosser, new org.netbeans.lib.awtextra.AbsoluteConstraints(620, 20, 140, -1)); + + panelChild.setBackground(new java.awt.Color(255, 204, 204)); + panelChild.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + lblPaymentCollage.setBackground(new java.awt.Color(51, 51, 51)); + lblPaymentCollage.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblPaymentCollage.setText("the following paymemnts the collage office for the year "); + panelChild.add(lblPaymentCollage, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 50, -1, -1)); + + lblTo.setBackground(new java.awt.Color(51, 51, 51)); + lblTo.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblTo.setText("to"); + panelChild.add(lblTo, new org.netbeans.lib.awtextra.AbsoluteConstraints(460, 50, 20, -1)); + panelChild.add(txtLastDate, new org.netbeans.lib.awtextra.AbsoluteConstraints(490, 50, 80, -1)); + + lblAmount.setBackground(new java.awt.Color(51, 51, 51)); + lblAmount.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblAmount.setText("Amount"); + panelChild.add(lblAmount, new org.netbeans.lib.awtextra.AbsoluteConstraints(700, 130, -1, -1)); + panelChild.add(txtFirstDate, new org.netbeans.lib.awtextra.AbsoluteConstraints(360, 50, 90, -1)); + + lblReceiverSignature.setBackground(new java.awt.Color(51, 51, 51)); + lblReceiverSignature.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblReceiverSignature.setText("Receiver signature"); + panelChild.add(lblReceiverSignature, new org.netbeans.lib.awtextra.AbsoluteConstraints(710, 340, -1, -1)); + + lblRecievedFrom.setBackground(new java.awt.Color(51, 51, 51)); + lblRecievedFrom.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblRecievedFrom.setText("Recieved From :"); + panelChild.add(lblRecievedFrom, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 20, -1, -1)); + panelChild.add(jSeparator1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 150, 820, 10)); + panelChild.add(jSeparator2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 120, 820, 10)); + + lblCourse.setBackground(new java.awt.Color(51, 51, 51)); + lblCourse.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblCourse.setText("Course :"); + panelChild.add(lblCourse, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 80, -1, -1)); + + lblRemark.setBackground(new java.awt.Color(51, 51, 51)); + lblRemark.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblRemark.setText("Remark :"); + panelChild.add(lblRemark, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 380, -1, -1)); + + lblSgst.setBackground(new java.awt.Color(51, 51, 51)); + lblSgst.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblSgst.setText("SGST 9% "); + panelChild.add(lblSgst, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 220, -1, -1)); + panelChild.add(txtSumTotal, new org.netbeans.lib.awtextra.AbsoluteConstraints(660, 260, 150, -1)); + panelChild.add(txtTotalInWords, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 310, 410, -1)); + panelChild.add(txtCgst, new org.netbeans.lib.awtextra.AbsoluteConstraints(660, 190, 150, -1)); + + txtAmountFirst.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + txtAmountFirstActionPerformed(evt); + } + }); + panelChild.add(txtAmountFirst, new org.netbeans.lib.awtextra.AbsoluteConstraints(660, 160, 150, -1)); + panelChild.add(jSeparator3, new org.netbeans.lib.awtextra.AbsoluteConstraints(650, 250, 180, 10)); + panelChild.add(txtSgst, new org.netbeans.lib.awtextra.AbsoluteConstraints(660, 220, 150, -1)); + + lblSrNo.setBackground(new java.awt.Color(51, 51, 51)); + lblSrNo.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblSrNo.setText("Sr No "); + panelChild.add(lblSrNo, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 130, -1, -1)); + panelChild.add(txtHead, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 20, 400, -1)); + + jScrollPane1.setViewportView(textPaneRemark); + + panelChild.add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 360, 410, 90)); + + lblTotalInWords.setBackground(new java.awt.Color(51, 51, 51)); + lblTotalInWords.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblTotalInWords.setText("Total in words : "); + panelChild.add(lblTotalInWords, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 310, -1, -1)); + panelChild.add(jSeparator4, new org.netbeans.lib.awtextra.AbsoluteConstraints(650, 330, 190, 20)); + + jLabel18.setBackground(new java.awt.Color(51, 51, 51)); + jLabel18.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + jLabel18.setText("Roll No :"); + panelChild.add(jLabel18, new org.netbeans.lib.awtextra.AbsoluteConstraints(610, 80, -1, -1)); + + btnPrint.setText("Print"); + btnPrint.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + btnPrintActionPerformed(evt); + } + }); + panelChild.add(btnPrint, new org.netbeans.lib.awtextra.AbsoluteConstraints(720, 430, -1, -1)); + + lblHead.setBackground(new java.awt.Color(51, 51, 51)); + lblHead.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblHead.setText("Head "); + panelChild.add(lblHead, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 130, -1, -1)); + + lblCgst.setBackground(new java.awt.Color(51, 51, 51)); + lblCgst.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblCgst.setText("CGST 9%"); + panelChild.add(lblCgst, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 190, -1, -1)); + + comboBoxCourse1.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + comboBoxCourse1ActionPerformed(evt); + } + }); + panelChild.add(comboBoxCourse1, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 80, 350, -1)); + + txtHead1.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + txtHead1ActionPerformed(evt); + } + }); + panelChild.add(txtHead1, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 160, 400, -1)); + panelChild.add(txtRollNo, new org.netbeans.lib.awtextra.AbsoluteConstraints(660, 80, 90, -1)); + + panelParent.add(panelChild, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 140, 870, 900)); + panelParent.add(txtDDNo, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 80, 150, -1)); + + comboBoxPayment.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "DD", "Cheque", "Cash", "Card" })); + comboBoxPayment.setSelectedIndex(2); + comboBoxPayment.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + comboBoxPaymentActionPerformed(evt); + } + }); + panelParent.add(comboBoxPayment, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 50, 150, -1)); + panelParent.add(txtBankName1, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 110, 150, -1)); + + lblBankName1.setBackground(new java.awt.Color(51, 51, 51)); + lblBankName1.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblBankName1.setText("Bank Name : "); + panelParent.add(lblBankName1, new org.netbeans.lib.awtextra.AbsoluteConstraints(70, 110, -1, -1)); + + lblGSTNo1.setBackground(new java.awt.Color(51, 51, 51)); + lblGSTNo1.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblGSTNo1.setText(" GSTIN: "); + panelParent.add(lblGSTNo1, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 50, 60, -1)); + + getContentPane().add(panelParent, new org.netbeans.lib.awtextra.AbsoluteConstraints(430, 0, 1420, 1040)); + + pack(); + setLocationRelativeTo(null); + }// </editor-fold>//GEN-END:initComponents + + private void btnLogOutMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnLogOutMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelLogOut.setBackground(clr); + }//GEN-LAST:event_btnLogOutMouseEntered + + private void btnLogOutMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnLogOutMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelLogOut.setBackground(clr); + }//GEN-LAST:event_btnLogOutMouseExited + + private void btnHomeMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnHomeMouseEntered + Color clr=new Color(255,204,204); + panelHome.setBackground(clr); + }//GEN-LAST:event_btnHomeMouseEntered + + private void btnHomeMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnHomeMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelHome.setBackground(clr); + }//GEN-LAST:event_btnHomeMouseExited + + private void btnSearchRecordsMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnSearchRecordsMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelSearchRecords.setBackground(clr); + }//GEN-LAST:event_btnSearchRecordsMouseEntered + + private void btnSearchRecordsMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnSearchRecordsMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelSearchRecords.setBackground(clr); + }//GEN-LAST:event_btnSearchRecordsMouseExited + + private void btnEditCourseMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnEditCourseMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelEditCourse.setBackground(clr); + }//GEN-LAST:event_btnEditCourseMouseEntered + + private void btnEditCourseMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnEditCourseMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelEditCourse.setBackground(clr); + }//GEN-LAST:event_btnEditCourseMouseExited + + private void btnCourseListMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnCourseListMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelCourseList.setBackground(clr); + }//GEN-LAST:event_btnCourseListMouseEntered + + private void btnCourseListMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnCourseListMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelCourseList.setBackground(clr); + }//GEN-LAST:event_btnCourseListMouseExited + + private void btnViewAllRecordsMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnViewAllRecordsMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelViewAllRecords.setBackground(clr); + }//GEN-LAST:event_btnViewAllRecordsMouseEntered + + private void btnViewAllRecordsMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnViewAllRecordsMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelViewAllRecords.setBackground(clr); + }//GEN-LAST:event_btnViewAllRecordsMouseExited + + private void btnBackMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnBackMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelBack.setBackground(clr); + }//GEN-LAST:event_btnBackMouseEntered + + private void btnBackMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnBackMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelBack.setBackground(clr); + }//GEN-LAST:event_btnBackMouseExited + + private void comboBoxPaymentActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_comboBoxPaymentActionPerformed + // TODO add your handling code here: + if(comboBoxPayment.getSelectedIndex() == 0){ + lblDdNo.setVisible(true); + txtDDNo.setVisible(true); + lblChequeNo.setVisible(false); + txtChequeNo.setVisible(false); + lblBankName1.setVisible(true); + txtBankName1.setVisible(true); + } + if(comboBoxPayment.getSelectedIndex() == 1){ + lblDdNo.setVisible(false); + txtDDNo.setVisible(false); + lblChequeNo.setVisible(true); + txtChequeNo.setVisible(true); + lblBankName1.setVisible(true); + txtBankName1.setVisible(true); + } + if(comboBoxPayment.getSelectedIndex() == 2){ + lblDdNo.setVisible(false); + txtDDNo.setVisible(false); + lblChequeNo.setVisible(false); + txtChequeNo.setVisible(false); + lblBankName1.setVisible(false); + txtBankName1.setVisible(false); + } + if(comboBoxPayment.getSelectedItem().equals("Card")){ + lblDdNo.setVisible(false); + txtDDNo.setVisible(false); + txtGSTNo.setVisible(true); + txtGSTNo.setVisible(true); + lblChequeNo.setVisible(false); + txtChequeNo.setVisible(false); + lblBankName1.setVisible(true); + txtBankName1.setVisible(true); + } + }//GEN-LAST:event_comboBoxPaymentActionPerformed + + private void btnPrintActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnPrintActionPerformed + if(validation() == true){ + String result= updateData(); + if(result.equals("Success")){ + JOptionPane.showMessageDialog(this, "Records Update SuccessFully"); + printReceipt p =new printReceipt(); + p.setVisible(true); + this.dispose(); + } + else{ + JOptionPane.showMessageDialog(this, "Records Update Failed"); + } + } + }//GEN-LAST:event_btnPrintActionPerformed + + private void txtAmountFirstActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtAmountFirstActionPerformed + Float amnt=Float.parseFloat(txtAmountFirst.getText()); + Float cgst=(float)(amnt * 0.09); + Float sgst=(float)(amnt * 0.09); + txtCgst.setText(cgst.toString()); + txtSgst.setText(sgst.toString()); + float total=amnt+cgst+sgst; + txtSumTotal.setText(Float.toString(total)); + txtTotalInWords.setText(NumberToWordsConverter.convert((int)total)+" only /-"); + }//GEN-LAST:event_txtAmountFirstActionPerformed + + private void txtHead1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtHead1ActionPerformed + + }//GEN-LAST:event_txtHead1ActionPerformed + + private void comboBoxCourse1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_comboBoxCourse1ActionPerformed + // TODO add your handling code here: + txtHead1.setText(comboBoxCourse1.getSelectedItem().toString()); + }//GEN-LAST:event_comboBoxCourse1ActionPerformed + public int getReceiptNo(){ + int receipt_no=0; + try{ + Class.forName("com.mysql.cj.jdbc.Driver"); + Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/fees_managment?zeroDateTimeBehavior=CONVERT_TO_NULL","root",""); + PreparedStatement pst=con.prepareStatement("select max(recieptNo) from fees_details"); + ResultSet rs=pst.executeQuery(); + if(rs.next() == true){ + receipt_no=rs.getInt(1); + } + }catch(Exception e){ + e.printStackTrace(); + } + return receipt_no+1; + } + public String updateData(){ + String status=""; + int recieptNo=Integer.parseInt(txtReceiptNo.getText()); + String studentName=txtHead.getText(); + String rollNo=txtRollNo.getText(); + String paymentMode=comboBoxPayment.getSelectedItem().toString(); + String chequeNo=txtChequeNo.getText(); + String bankName=txtBankName1.getText(); + String ddNo=txtDDNo.getText(); + String courseName=txtHead1.getText(); + String gstin=txtGSTNo.getText(); + float totalAmount=Float.parseFloat(txtSumTotal.getText()); + SimpleDateFormat dateFormat =new SimpleDateFormat("yyyy-MM-dd"); + String date=dateFormat.format(DateChosser.getDate()); + float initialAmount=Float.parseFloat(txtAmountFirst.getText()); + float cgst=Float.parseFloat(txtCgst.getText()); + float sgst=Float.parseFloat(txtSgst.getText()); + String totalInWords=txtTotalInWords.getText(); + String remark=textPaneRemark.getText(); + int year1=Integer.parseInt(txtFirstDate.getText()); + int year2=Integer.parseInt(txtLastDate.getText()); + + try{ + Class.forName("com.mysql.cj.jdbc.Driver"); + Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/fees_managment?zeroDateTimeBehavior=CONVERT_TO_NULL","root",""); + PreparedStatement pst=con.prepareStatement("update fees_details set studentName=?,rollNo=?,paymentMode=?,chequeNo=?,bankName=?,ddNo=?,courseName=?,gstin=?,totalAmount=?,date=?,amount=?,cgst=?,sgst=?,totalInWords=?,remark=?,year1=?,year2=? where recieptNo=?"); + pst.setString(1, studentName); + pst.setString(2,rollNo); + pst.setString(3,paymentMode); + pst.setString(4,chequeNo); + pst.setString(5, bankName); + pst.setString(6,ddNo); + pst.setString(7,courseName); + pst.setString(8,gstin); + pst.setFloat(9,totalAmount); + pst.setString(10,date); + pst.setFloat(11, initialAmount); + pst.setFloat(12,cgst); + pst.setFloat(13,sgst); + pst.setString(14,totalInWords); + pst.setString(15,remark); + pst.setInt(16,year1); + pst.setInt(17,year2); + pst.setInt(18,recieptNo); + int rowCount=pst.executeUpdate(); + if(rowCount==1){ + status="Success"; + } + else{ + status="Failed"; + } + }catch(Exception e){ + e.printStackTrace(); + } + return status; + } + public void setRecords(){ + try{ + Class.forName("com.mysql.cj.jdbc.Driver"); + Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/fees_managment?zeroDateTimeBehavior=CONVERT_TO_NULL","root",""); + PreparedStatement pst=con.prepareStatement("SELECT * FROM fees_details ORDER BY recieptNo DESC LIMIT 1"); + ResultSet rs=pst.executeQuery(); + rs.next(); + txtReceiptNo.setText(rs.getString("recieptNo")); + comboBoxPayment.setSelectedItem(rs.getString("paymentMode")); + txtChequeNo.setText(rs.getString("chequeNo")); + txtDDNo.setText(rs.getString("ddNo")); + txtBankName1.setText(rs.getString("bankName")); + txtHead.setText(rs.getString("studentName")); + DateChosser.setDate(rs.getDate("date")); + txtFirstDate.setText(rs.getString("year1")); + txtLastDate.setText(rs.getString("year2")); + comboBoxCourse1.setSelectedItem(rs.getString("courseName")); + txtAmountFirst.setText(rs.getString("amount")); + txtCgst.setText(rs.getString("cgst")); + txtSgst.setText(rs.getString("sgst")); + txtSumTotal.setText(rs.getString("totalAmount")); + txtTotalInWords.setText(rs.getString("totalInWords")); + txtRollNo.setText(rs.getString("rollNo")); + textPaneRemark.setText(rs.getString("remark")); + }catch(Exception e){ + e.printStackTrace(); + } + } + /** + * @param args the command line arguments + */ + public static void main(String args[]) { + /* Set the Nimbus look and feel */ + //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> + /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. + * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html + */ + try { + for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { + if ("Nimbus".equals(info.getName())) { + javax.swing.UIManager.setLookAndFeel(info.getClassName()); + break; + } + } + } catch (ClassNotFoundException ex) { + java.util.logging.Logger.getLogger(UpdateFeesDetails.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (InstantiationException ex) { + java.util.logging.Logger.getLogger(UpdateFeesDetails.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (IllegalAccessException ex) { + java.util.logging.Logger.getLogger(UpdateFeesDetails.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (javax.swing.UnsupportedLookAndFeelException ex) { + java.util.logging.Logger.getLogger(UpdateFeesDetails.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } + //</editor-fold> + //</editor-fold> + + /* Create and display the form */ + java.awt.EventQueue.invokeLater(new Runnable() { + public void run() { + new UpdateFeesDetails().setVisible(true); + } + }); + } + + // Variables declaration - do not modify//GEN-BEGIN:variables + private com.toedter.calendar.JDateChooser DateChosser; + private javax.swing.JLabel btnBack; + private javax.swing.JLabel btnCourseList; + private javax.swing.JLabel btnEditCourse; + private javax.swing.JLabel btnHome; + private javax.swing.JLabel btnLogOut; + private javax.swing.JButton btnPrint; + private javax.swing.JLabel btnSearchRecords; + private javax.swing.JLabel btnViewAllRecords; + private javax.swing.JComboBox<String> comboBoxCourse1; + private javax.swing.JComboBox<String> comboBoxPayment; + private javax.swing.JLabel jLabel18; + private javax.swing.JScrollPane jScrollPane1; + private javax.swing.JSeparator jSeparator1; + private javax.swing.JSeparator jSeparator2; + private javax.swing.JSeparator jSeparator3; + private javax.swing.JSeparator jSeparator4; + private javax.swing.JLabel lblAmount; + private javax.swing.JLabel lblBankName1; + private javax.swing.JLabel lblCgst; + private javax.swing.JLabel lblChequeNo; + private javax.swing.JLabel lblCourse; + private javax.swing.JLabel lblDate; + private javax.swing.JLabel lblDdNo; + private javax.swing.JLabel lblGSTNo1; + private javax.swing.JLabel lblHead; + private javax.swing.JLabel lblModeOfPayment; + private javax.swing.JLabel lblPaymentCollage; + private javax.swing.JLabel lblReceiptNo; + private javax.swing.JLabel lblReceiverSignature; + private javax.swing.JLabel lblRecievedFrom; + private javax.swing.JLabel lblRemark; + private javax.swing.JLabel lblSgst; + private javax.swing.JLabel lblSrNo; + private javax.swing.JLabel lblTo; + private javax.swing.JLabel lblTotalInWords; + private javax.swing.JPanel panelBack; + private javax.swing.JPanel panelChild; + private javax.swing.JPanel panelCourseList; + private javax.swing.JPanel panelEditCourse; + private javax.swing.JPanel panelHome; + private javax.swing.JPanel panelLogOut; + private javax.swing.JPanel panelParent; + private javax.swing.JPanel panelSearchRecords; + private javax.swing.JPanel panelSideBar; + private javax.swing.JPanel panelViewAllRecords; + private javax.swing.JTextPane textPaneRemark; + private javax.swing.JTextField txtAmountFirst; + private javax.swing.JTextField txtBankName1; + private javax.swing.JTextField txtCgst; + private javax.swing.JTextField txtChequeNo; + private javax.swing.JTextField txtDDNo; + private javax.swing.JTextField txtFirstDate; + private javax.swing.JLabel txtGSTNo; + private javax.swing.JTextField txtHead; + private javax.swing.JTextField txtHead1; + private javax.swing.JTextField txtLastDate; + private javax.swing.JTextField txtReceiptNo; + private javax.swing.JTextField txtRollNo; + private javax.swing.JTextField txtSgst; + private javax.swing.JTextField txtSumTotal; + private javax.swing.JTextField txtTotalInWords; + // End of variables declaration//GEN-END:variables +} diff --git a/src/fees_management_system/ViewAllRecords.form b/src/fees_management_system/ViewAllRecords.form new file mode 100644 index 0000000..e99cd11 --- /dev/null +++ b/src/fees_management_system/ViewAllRecords.form @@ -0,0 +1,502 @@ +<?xml version="1.0" encoding="UTF-8" ?> + +<Form version="1.5" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo"> + <Properties> + <Property name="defaultCloseOperation" type="int" value="3"/> + </Properties> + <SyntheticProperties> + <SyntheticProperty name="formSizePolicy" type="int" value="1"/> + <SyntheticProperty name="generateCenter" type="boolean" value="true"/> + </SyntheticProperties> + <AuxValues> + <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/> + <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/> + <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/> + <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/> + <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/> + <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,2,126,0,0,5,6"/> + </AuxValues> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Container class="javax.swing.JPanel" name="panelSideBar"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="0" y="0" width="430" height="860"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Container class="javax.swing.JPanel" name="panelLogOut"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="80" y="540" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnLogOut"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/exit.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" Logout"/> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnLogOutMouseClicked"/> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnLogOutMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnLogOutMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="20" y="2" width="260" height="40"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelHome"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="80" y="60" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnHome"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/home.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" HOME"/> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnHomeMouseClicked"/> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnHomeMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnHomeMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="0" width="310" height="50"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelSearchRecords"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="80" y="140" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnSearchRecords"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/search2.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" Search Records"/> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnSearchRecordsMouseClicked"/> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnSearchRecordsMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnSearchRecordsMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="0" width="310" height="60"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelEditCourse"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="24" style="1"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="80" y="220" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnEditCourse"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/edit2.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" Edit Course"/> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnEditCourseMouseClicked"/> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnEditCourseMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnEditCourseMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="0" width="260" height="-1"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelCourseList"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="80" y="300" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnCourseList"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/list.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" Course List"/> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnCourseListMouseClicked"/> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnCourseListMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnCourseListMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="0" y="-10" width="260" height="-1"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelViewAllRecords"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="80" y="380" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnViewAllRecords"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/view all record.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" View All Records"/> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnViewAllRecordsMouseClicked"/> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnViewAllRecordsMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnViewAllRecordsMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="0" y="0" width="320" height="-1"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelBack"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="80" y="460" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnBack"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/left-arrow.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" Back"/> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnBackMouseClicked"/> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnBackMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnBackMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="0" y="-10" width="260" height="-1"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="jPanel1"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="cc" green="cc" red="ff" type="rgb"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="430" y="0" width="850" height="660"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Container class="javax.swing.JScrollPane" name="jScrollPane1"> + <AuxValues> + <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/> + </AuxValues> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="20" y="90" width="810" height="540"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/> + <SubComponents> + <Component class="javax.swing.JTable" name="tblViewAllRecords"> + <Properties> + <Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor"> + <Table columnCount="8" rowCount="0"> + <Column editable="true" title="Reciept No" type="java.lang.Object"/> + <Column editable="true" title="Roll No" type="java.lang.Object"/> + <Column editable="true" title="Student Name" type="java.lang.Object"/> + <Column editable="true" title="Course Name" type="java.lang.Object"/> + <Column editable="true" title="Total Amount" type="java.lang.Object"/> + <Column editable="true" title="Payment Mode" type="java.lang.Object"/> + <Column editable="true" title="Date" type="java.lang.Object"/> + <Column editable="true" title="Remark" type="java.lang.Object"/> + </Table> + </Property> + <Property name="columnModel" type="javax.swing.table.TableColumnModel" editor="org.netbeans.modules.form.editors2.TableColumnModelEditor"> + <TableColumnModel selectionModel="0"> + <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> + <Title/> + <Editor/> + <Renderer/> + </Column> + <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> + <Title/> + <Editor/> + <Renderer/> + </Column> + <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> + <Title/> + <Editor/> + <Renderer/> + </Column> + <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> + <Title/> + <Editor/> + <Renderer/> + </Column> + <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> + <Title/> + <Editor/> + <Renderer/> + </Column> + <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> + <Title/> + <Editor/> + <Renderer/> + </Column> + <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> + <Title/> + <Editor/> + <Renderer/> + </Column> + <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> + <Title/> + <Editor/> + <Renderer/> + </Column> + </TableColumnModel> + </Property> + <Property name="tableHeader" type="javax.swing.table.JTableHeader" editor="org.netbeans.modules.form.editors2.JTableHeaderEditor"> + <TableHeader reorderingAllowed="true" resizingAllowed="true"/> + </Property> + </Properties> + </Component> + </SubComponents> + </Container> + <Component class="javax.swing.JLabel" name="jLabel1"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="b5" green="89" red="0" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="View All Records"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="320" y="20" width="200" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="jTextField1"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="b5" green="89" red="0" type="rgb"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="310" y="50" width="200" height="5"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + </SubComponents> +</Form> diff --git a/src/fees_management_system/ViewAllRecords.java b/src/fees_management_system/ViewAllRecords.java new file mode 100644 index 0000000..4997e9f --- /dev/null +++ b/src/fees_management_system/ViewAllRecords.java @@ -0,0 +1,458 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/GUIForms/JFrame.java to edit this template + */ +package fees_managment_syatem; + +import java.awt.Color; +import java.sql.Connection; +import java.sql.DriverManager; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import javax.swing.table.DefaultTableModel; + +/** + * + * @author yash + */ +public class ViewAllRecords extends javax.swing.JFrame { + + /** + * Creates new form ViewAllRecords + */ + DefaultTableModel model; + public ViewAllRecords() { + initComponents(); + setViewAllRecords(); + } +public void setViewAllRecords(){ + try{ + Class.forName("com.mysql.cj.jdbc.Driver"); + Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/fees_managment?zeroDateTimeBehavior=CONVERT_TO_NULL","root",""); + PreparedStatement pst=con.prepareStatement("select * from fees_details"); + ResultSet rs=pst.executeQuery(); + while(rs.next()){ + String ReceiptNo=rs.getString("recieptNo"); + String RollNo=rs.getString("rollNo"); + String StudentName=rs.getString("studentName"); + String Course=rs.getString("courseName"); + String Amount=rs.getString("totalAmount"); + String PaymentMode=rs.getString("paymentMode"); + String Date=rs.getString("date"); + String Remark=rs.getString("remark"); + Object[] obj={ReceiptNo,RollNo,StudentName,Course,PaymentMode,Amount,Remark}; + model=(DefaultTableModel)tblViewAllRecords.getModel(); + model.addRow(obj); + } + }catch(Exception e){ + e.printStackTrace(); + } +} + /** + * This method is called from within the constructor to initialize the form. + * WARNING: Do NOT modify this code. The content of this method is always + * regenerated by the Form Editor. + */ + @SuppressWarnings("unchecked") + // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents + private void initComponents() { + + panelSideBar = new javax.swing.JPanel(); + panelLogOut = new javax.swing.JPanel(); + btnLogOut = new javax.swing.JLabel(); + panelHome = new javax.swing.JPanel(); + btnHome = new javax.swing.JLabel(); + panelSearchRecords = new javax.swing.JPanel(); + btnSearchRecords = new javax.swing.JLabel(); + panelEditCourse = new javax.swing.JPanel(); + btnEditCourse = new javax.swing.JLabel(); + panelCourseList = new javax.swing.JPanel(); + btnCourseList = new javax.swing.JLabel(); + panelViewAllRecords = new javax.swing.JPanel(); + btnViewAllRecords = new javax.swing.JLabel(); + panelBack = new javax.swing.JPanel(); + btnBack = new javax.swing.JLabel(); + jPanel1 = new javax.swing.JPanel(); + jScrollPane1 = new javax.swing.JScrollPane(); + tblViewAllRecords = new javax.swing.JTable(); + jLabel1 = new javax.swing.JLabel(); + jTextField1 = new javax.swing.JTextField(); + + setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); + getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + panelSideBar.setBackground(new java.awt.Color(255, 102, 102)); + panelSideBar.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + panelLogOut.setBackground(new java.awt.Color(255, 102, 102)); + panelLogOut.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelLogOut.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnLogOut.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnLogOut.setForeground(new java.awt.Color(255, 255, 255)); + btnLogOut.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/exit.png"))); // NOI18N + btnLogOut.setText(" Logout"); + btnLogOut.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + btnLogOutMouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnLogOutMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnLogOutMouseExited(evt); + } + }); + panelLogOut.add(btnLogOut, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 2, 260, 40)); + + panelSideBar.add(panelLogOut, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 540, 320, 50)); + + panelHome.setBackground(new java.awt.Color(255, 102, 102)); + panelHome.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelHome.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnHome.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnHome.setForeground(new java.awt.Color(255, 255, 255)); + btnHome.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/home.png"))); // NOI18N + btnHome.setText(" HOME"); + btnHome.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + btnHomeMouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnHomeMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnHomeMouseExited(evt); + } + }); + panelHome.add(btnHome, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 0, 310, 50)); + + panelSideBar.add(panelHome, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 60, 320, 50)); + + panelSearchRecords.setBackground(new java.awt.Color(255, 102, 102)); + panelSearchRecords.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelSearchRecords.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnSearchRecords.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnSearchRecords.setForeground(new java.awt.Color(255, 255, 255)); + btnSearchRecords.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/search2.png"))); // NOI18N + btnSearchRecords.setText(" Search Records"); + btnSearchRecords.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + btnSearchRecordsMouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnSearchRecordsMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnSearchRecordsMouseExited(evt); + } + }); + panelSearchRecords.add(btnSearchRecords, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 0, 310, 60)); + + panelSideBar.add(panelSearchRecords, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 140, 320, 50)); + + panelEditCourse.setBackground(new java.awt.Color(255, 102, 102)); + panelEditCourse.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelEditCourse.setFont(new java.awt.Font("Segoe UI", 1, 24)); // NOI18N + panelEditCourse.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnEditCourse.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnEditCourse.setForeground(new java.awt.Color(255, 255, 255)); + btnEditCourse.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/edit2.png"))); // NOI18N + btnEditCourse.setText(" Edit Course"); + btnEditCourse.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + btnEditCourseMouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnEditCourseMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnEditCourseMouseExited(evt); + } + }); + panelEditCourse.add(btnEditCourse, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 0, 260, -1)); + + panelSideBar.add(panelEditCourse, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 220, 320, 50)); + + panelCourseList.setBackground(new java.awt.Color(255, 102, 102)); + panelCourseList.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelCourseList.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnCourseList.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnCourseList.setForeground(new java.awt.Color(255, 255, 255)); + btnCourseList.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/list.png"))); // NOI18N + btnCourseList.setText(" Course List"); + btnCourseList.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + btnCourseListMouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnCourseListMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnCourseListMouseExited(evt); + } + }); + panelCourseList.add(btnCourseList, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, -10, 260, -1)); + + panelSideBar.add(panelCourseList, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 300, 320, 50)); + + panelViewAllRecords.setBackground(new java.awt.Color(255, 102, 102)); + panelViewAllRecords.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelViewAllRecords.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnViewAllRecords.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnViewAllRecords.setForeground(new java.awt.Color(255, 255, 255)); + btnViewAllRecords.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/view all record.png"))); // NOI18N + btnViewAllRecords.setText(" View All Records"); + btnViewAllRecords.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + btnViewAllRecordsMouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnViewAllRecordsMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnViewAllRecordsMouseExited(evt); + } + }); + panelViewAllRecords.add(btnViewAllRecords, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 320, -1)); + + panelSideBar.add(panelViewAllRecords, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 380, 320, 50)); + + panelBack.setBackground(new java.awt.Color(255, 102, 102)); + panelBack.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelBack.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnBack.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnBack.setForeground(new java.awt.Color(255, 255, 255)); + btnBack.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/left-arrow.png"))); // NOI18N + btnBack.setText(" Back"); + btnBack.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + btnBackMouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnBackMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnBackMouseExited(evt); + } + }); + panelBack.add(btnBack, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, -10, 260, -1)); + + panelSideBar.add(panelBack, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 460, 320, 50)); + + getContentPane().add(panelSideBar, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 430, 860)); + + jPanel1.setBackground(new java.awt.Color(255, 204, 204)); + jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + tblViewAllRecords.setModel(new javax.swing.table.DefaultTableModel( + new Object [][] { + + }, + new String [] { + "Reciept No", "Roll No", "Student Name", "Course Name", "Total Amount", "Payment Mode", "Date", "Remark" + } + )); + jScrollPane1.setViewportView(tblViewAllRecords); + + jPanel1.add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 90, 810, 540)); + + jLabel1.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + jLabel1.setForeground(new java.awt.Color(0, 137, 181)); + jLabel1.setText("View All Records"); + jPanel1.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(320, 20, 200, -1)); + + jTextField1.setBackground(new java.awt.Color(0, 137, 181)); + jPanel1.add(jTextField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(310, 50, 200, 5)); + + getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(430, 0, 850, 660)); + + pack(); + setLocationRelativeTo(null); + }// </editor-fold>//GEN-END:initComponents + + private void btnLogOutMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnLogOutMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelLogOut.setBackground(clr); + }//GEN-LAST:event_btnLogOutMouseEntered + + private void btnLogOutMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnLogOutMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelLogOut.setBackground(clr); + }//GEN-LAST:event_btnLogOutMouseExited + + private void btnHomeMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnHomeMouseClicked + HomePage home=new HomePage(); + home.setVisible(true); + this.dispose(); + }//GEN-LAST:event_btnHomeMouseClicked + + private void btnHomeMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnHomeMouseEntered + Color clr=new Color(255,204,204); + panelHome.setBackground(clr); + }//GEN-LAST:event_btnHomeMouseEntered + + private void btnHomeMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnHomeMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelHome.setBackground(clr); + }//GEN-LAST:event_btnHomeMouseExited + + private void btnSearchRecordsMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnSearchRecordsMouseClicked + SearchRecords search=new SearchRecords(); + search.setVisible(true); + this.dispose(); + }//GEN-LAST:event_btnSearchRecordsMouseClicked + + private void btnSearchRecordsMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnSearchRecordsMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelSearchRecords.setBackground(clr); + }//GEN-LAST:event_btnSearchRecordsMouseEntered + + private void btnSearchRecordsMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnSearchRecordsMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelSearchRecords.setBackground(clr); + }//GEN-LAST:event_btnSearchRecordsMouseExited + + private void btnEditCourseMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnEditCourseMouseClicked + EditCourse edit=new EditCourse(); + edit.setVisible(true); + this.dispose(); + }//GEN-LAST:event_btnEditCourseMouseClicked + + private void btnEditCourseMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnEditCourseMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelEditCourse.setBackground(clr); + }//GEN-LAST:event_btnEditCourseMouseEntered + + private void btnEditCourseMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnEditCourseMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelEditCourse.setBackground(clr); + }//GEN-LAST:event_btnEditCourseMouseExited + + private void btnCourseListMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnCourseListMouseClicked + + }//GEN-LAST:event_btnCourseListMouseClicked + + private void btnCourseListMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnCourseListMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelCourseList.setBackground(clr); + }//GEN-LAST:event_btnCourseListMouseEntered + + private void btnCourseListMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnCourseListMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelCourseList.setBackground(clr); + }//GEN-LAST:event_btnCourseListMouseExited + + private void btnViewAllRecordsMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnViewAllRecordsMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelViewAllRecords.setBackground(clr); + }//GEN-LAST:event_btnViewAllRecordsMouseEntered + + private void btnViewAllRecordsMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnViewAllRecordsMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelViewAllRecords.setBackground(clr); + }//GEN-LAST:event_btnViewAllRecordsMouseExited + + private void btnBackMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnBackMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelBack.setBackground(clr); + }//GEN-LAST:event_btnBackMouseEntered + + private void btnBackMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnBackMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelBack.setBackground(clr); + }//GEN-LAST:event_btnBackMouseExited + + private void btnViewAllRecordsMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnViewAllRecordsMouseClicked + ViewAllRecords viewrecords=new ViewAllRecords(); + viewrecords.setVisible(true); + this.dispose(); + }//GEN-LAST:event_btnViewAllRecordsMouseClicked + + private void btnBackMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnBackMouseClicked + HomePage home=new HomePage(); + home.setVisible(true); + this.dispose(); + }//GEN-LAST:event_btnBackMouseClicked + + private void btnLogOutMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnLogOutMouseClicked + this.dispose(); + }//GEN-LAST:event_btnLogOutMouseClicked + + /** + * @param args the command line arguments + */ + public static void main(String args[]) { + /* Set the Nimbus look and feel */ + //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> + /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. + * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html + */ + try { + for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { + if ("Nimbus".equals(info.getName())) { + javax.swing.UIManager.setLookAndFeel(info.getClassName()); + break; + } + } + } catch (ClassNotFoundException ex) { + java.util.logging.Logger.getLogger(ViewAllRecords.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (InstantiationException ex) { + java.util.logging.Logger.getLogger(ViewAllRecords.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (IllegalAccessException ex) { + java.util.logging.Logger.getLogger(ViewAllRecords.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (javax.swing.UnsupportedLookAndFeelException ex) { + java.util.logging.Logger.getLogger(ViewAllRecords.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } + //</editor-fold> + + /* Create and display the form */ + java.awt.EventQueue.invokeLater(new Runnable() { + public void run() { + new ViewAllRecords().setVisible(true); + } + }); + } + + // Variables declaration - do not modify//GEN-BEGIN:variables + private javax.swing.JLabel btnBack; + private javax.swing.JLabel btnCourseList; + private javax.swing.JLabel btnEditCourse; + private javax.swing.JLabel btnHome; + private javax.swing.JLabel btnLogOut; + private javax.swing.JLabel btnSearchRecords; + private javax.swing.JLabel btnViewAllRecords; + private javax.swing.JLabel jLabel1; + private javax.swing.JPanel jPanel1; + private javax.swing.JScrollPane jScrollPane1; + private javax.swing.JTextField jTextField1; + private javax.swing.JPanel panelBack; + private javax.swing.JPanel panelCourseList; + private javax.swing.JPanel panelEditCourse; + private javax.swing.JPanel panelHome; + private javax.swing.JPanel panelLogOut; + private javax.swing.JPanel panelSearchRecords; + private javax.swing.JPanel panelSideBar; + private javax.swing.JPanel panelViewAllRecords; + private javax.swing.JTable tblViewAllRecords; + // End of variables declaration//GEN-END:variables +} diff --git a/src/fees_management_system/addFees.form b/src/fees_management_system/addFees.form new file mode 100644 index 0000000..872bdbe --- /dev/null +++ b/src/fees_management_system/addFees.form @@ -0,0 +1,969 @@ +<?xml version="1.0" encoding="UTF-8" ?> + +<Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo"> + <Properties> + <Property name="defaultCloseOperation" type="int" value="3"/> + </Properties> + <SyntheticProperties> + <SyntheticProperty name="formSizePolicy" type="int" value="1"/> + <SyntheticProperty name="generateCenter" type="boolean" value="true"/> + </SyntheticProperties> + <AuxValues> + <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/> + <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/> + <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/> + <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/> + <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/> + <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,2,50,0,0,5,24"/> + </AuxValues> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Container class="javax.swing.JPanel" name="panelSideBar"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="0" y="0" width="430" height="1040"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Container class="javax.swing.JPanel" name="panelLogOut"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="80" y="540" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnLogOut"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/exit.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" Logout"/> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnLogOutMouseClicked"/> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnLogOutMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnLogOutMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="20" y="0" width="260" height="50"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelHome"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="80" y="60" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnHome"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/home.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" HOME"/> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnHomeMouseClicked"/> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnHomeMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnHomeMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="0" width="310" height="50"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelSearchRecords"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="80" y="140" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnSearchRecords"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/search2.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" Search Records"/> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnSearchRecordsMouseClicked"/> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnSearchRecordsMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnSearchRecordsMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="0" width="310" height="60"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelEditCourse"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="24" style="1"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="80" y="220" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnEditCourse"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/edit2.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" Edit Course"/> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnEditCourseMouseClicked"/> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnEditCourseMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnEditCourseMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="0" width="260" height="-1"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelCourseList"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="80" y="300" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnCourseList"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/list.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" Course List"/> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnCourseListMouseClicked"/> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnCourseListMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnCourseListMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="0" y="-10" width="260" height="-1"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelViewAllRecords"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="80" y="380" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnViewAllRecords"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/view all record.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" View All Records"/> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnViewAllRecordsMouseClicked"/> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnViewAllRecordsMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnViewAllRecordsMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="0" y="0" width="320" height="-1"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelBack"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="80" y="460" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnBack"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/left-arrow.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" Back"/> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnBackMouseClicked"/> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnBackMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnBackMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="0" y="-10" width="260" height="-1"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelParent"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="cc" green="cc" red="ff" type="rgb"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="430" y="0" width="1420" height="1040"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="lblChequeNo"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Cheque No :"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="70" y="80" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblReceiptNo"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Receipt no : MLV-"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="30" y="20" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblDdNo"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="DD no :"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="100" y="80" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblModeOfPayment"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value=" Mode of payment : "/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="30" y="50" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="txtGSTNo"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value=" sffsfe22"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="630" y="50" width="70" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblDate"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value=" Date : "/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="570" y="20" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtReceiptNo"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="160" y="20" width="150" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtChequeNo"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="160" y="80" width="150" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="com.toedter.calendar.JDateChooser" name="DateChosser"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="620" y="20" width="140" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Container class="javax.swing.JPanel" name="panelChild"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="cc" green="cc" red="ff" type="rgb"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="0" y="140" width="870" height="900"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="lblPaymentCollage"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="the following paymemnts the collage office for the year "/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="30" y="50" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblTo"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="to"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="460" y="50" width="20" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtLastDate"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="490" y="50" width="80" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblAmount"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Amount"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="700" y="130" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtFirstDate"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="360" y="50" width="90" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblReceiverSignature"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Receiver signature"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="710" y="340" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblRecievedFrom"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Recieved From :"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="30" y="20" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JSeparator" name="jSeparator1"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="150" width="820" height="10"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JSeparator" name="jSeparator2"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="120" width="820" height="10"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblCourse"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Course :"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="30" y="80" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblRemark"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Remark :"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="20" y="380" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblSgst"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="SGST 9% "/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="300" y="220" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtSumTotal"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="660" y="260" width="150" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtTotalInWords"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="130" y="310" width="410" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtCgst"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="660" y="190" width="150" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtAmountFirst"> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="txtAmountFirstActionPerformed"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="660" y="160" width="150" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JSeparator" name="jSeparator3"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="650" y="250" width="180" height="10"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtSgst"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="660" y="220" width="150" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblSrNo"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Sr No "/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="30" y="130" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtHead"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="130" y="20" width="400" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Container class="javax.swing.JScrollPane" name="jScrollPane1"> + <AuxValues> + <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/> + </AuxValues> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="130" y="360" width="410" height="90"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/> + <SubComponents> + <Component class="javax.swing.JTextPane" name="textPaneRemark"> + </Component> + </SubComponents> + </Container> + <Component class="javax.swing.JLabel" name="lblTotalInWords"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Total in words : "/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="20" y="310" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JSeparator" name="jSeparator4"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="650" y="330" width="190" height="20"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="jLabel18"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Roll No :"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="610" y="80" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JButton" name="btnPrint"> + <Properties> + <Property name="text" type="java.lang.String" value="Print"/> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnPrintActionPerformed"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="720" y="430" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblHead"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Head "/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="300" y="130" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblCgst"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="CGST 9%"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="300" y="190" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JComboBox" name="comboBoxCourse1"> + <Properties> + <Property name="maximumRowCount" type="int" value="5"/> + <Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor"> + <StringArray count="6"> + <StringItem index="0" value="JAVA"/> + <StringItem index="1" value="WEB DEVELOPMENT"/> + <StringItem index="2" value="SPRINGBOOT"/> + <StringItem index="3" value="C"/> + <StringItem index="4" value="C++"/> + <StringItem index="5" value="PYTHON"/> + </StringArray> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="comboBoxCourse1ActionPerformed"/> + </Events> + <AuxValues> + <AuxValue name="JavaCodeGenerator_TypeParameters" type="java.lang.String" value="<String>"/> + </AuxValues> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="130" y="80" width="350" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtHead1"> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="txtHead1ActionPerformed"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="130" y="160" width="400" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtRollNo"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="660" y="80" width="90" height="-1"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Component class="javax.swing.JTextField" name="txtDDNo"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="160" y="80" width="150" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JComboBox" name="comboBoxPayment"> + <Properties> + <Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor"> + <StringArray count="4"> + <StringItem index="0" value="DD"/> + <StringItem index="1" value="Cheque"/> + <StringItem index="2" value="Cash"/> + <StringItem index="3" value="Card"/> + </StringArray> + </Property> + <Property name="selectedIndex" type="int" value="2"/> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="comboBoxPaymentActionPerformed"/> + </Events> + <AuxValues> + <AuxValue name="JavaCodeGenerator_TypeParameters" type="java.lang.String" value="<String>"/> + </AuxValues> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="160" y="50" width="150" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtBankName1"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="160" y="110" width="150" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblBankName1"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Bank Name : "/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="70" y="110" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblGSTNo1"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="33" green="33" red="33" type="rgb"/> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value=" GSTIN: "/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="570" y="50" width="60" height="-1"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + </SubComponents> +</Form> diff --git a/src/fees_management_system/addFees.java b/src/fees_management_system/addFees.java new file mode 100644 index 0000000..5e2ddf7 --- /dev/null +++ b/src/fees_management_system/addFees.java @@ -0,0 +1,878 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/GUIForms/JFrame.java to edit this template + */ +package fees_managment_syatem; + +import java.awt.Color; +import java.sql.Connection; +import java.sql.DriverManager; +import javax.swing.JOptionPane; +import java.sql.ResultSet; +import java.sql.PreparedStatement; +import java.text.SimpleDateFormat; + +/** + * + * @author yash + */ +public class addFees extends javax.swing.JFrame { + + /** + * Creates new form addFees + */ + public addFees() { + initComponents(); + displayCashFirst(); + fillComboBox(); + int receipt_no=getReceiptNo(); + txtReceiptNo.setText(Integer.toString(receipt_no)); + } + public void displayCashFirst(){ + lblDdNo.setVisible(false); + lblChequeNo.setVisible(false); + txtChequeNo.setVisible(false); + txtDDNo.setVisible(false); + lblBankName1.setVisible(false); + txtBankName1.setVisible(false); + + } + public boolean validation(){ + if(txtHead.getText().equals("")){ + JOptionPane.showMessageDialog(this,"please enter user name."); + return false; + } + if(DateChosser.getDate() == null){ + JOptionPane.showMessageDialog(this, "please select a date."); + return false; + } + if(txtAmountFirst.getText().equals("") || txtAmountFirst.getText().matches("[0-9]+") == false){ + JOptionPane.showMessageDialog(this,"please enter amount."); + return false; + } + if(comboBoxPayment.getSelectedItem().toString().equalsIgnoreCase("Cheque")){ + if(txtChequeNo.getText().equals("")){ + JOptionPane.showMessageDialog(this,"please enter cheque number."); + return false; + } + if(txtGSTNo.getText().equals("")){ + JOptionPane.showMessageDialog(this,"please enter bank name."); + return false; + } + } + if(comboBoxPayment.getSelectedItem().toString().equalsIgnoreCase("DD")){ + if(txtDDNo.getText().equals("")){ + JOptionPane.showMessageDialog(this, "please enter dd no."); + return false; + } + if(txtBankName1.getText().equals("")){ + JOptionPane.showMessageDialog(this,"please enter bank name."); + return false; + } + } + if(comboBoxPayment.getSelectedItem().toString().equalsIgnoreCase("Card")){ + if(txtBankName1.getText().equals("")){ + JOptionPane.showMessageDialog(this,"please enter bank name"); + return false; + } + } + return true; + } + public void fillComboBox(){ + try{ + Class.forName("com.mysql.cj.jdbc.Driver"); + Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/fees_managment?zeroDateTimeBehavior=CONVERT_TO_NULL","root",""); + PreparedStatement pst=con.prepareStatement("select CNAME from course"); + ResultSet rs=pst.executeQuery(); + while(rs.next()){ + comboBoxCourse1.addItem(rs.getString("CNAME")); + } + }catch(Exception e){ + e.printStackTrace(); + } + } + /** + * This method is called from within the constructor to initialize the form. + * WARNING: Do NOT modify this code. The content of this method is always + * regenerated by the Form Editor. + */ + @SuppressWarnings("unchecked") + // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents + private void initComponents() { + + panelSideBar = new javax.swing.JPanel(); + panelLogOut = new javax.swing.JPanel(); + btnLogOut = new javax.swing.JLabel(); + panelHome = new javax.swing.JPanel(); + btnHome = new javax.swing.JLabel(); + panelSearchRecords = new javax.swing.JPanel(); + btnSearchRecords = new javax.swing.JLabel(); + panelEditCourse = new javax.swing.JPanel(); + btnEditCourse = new javax.swing.JLabel(); + panelCourseList = new javax.swing.JPanel(); + btnCourseList = new javax.swing.JLabel(); + panelViewAllRecords = new javax.swing.JPanel(); + btnViewAllRecords = new javax.swing.JLabel(); + panelBack = new javax.swing.JPanel(); + btnBack = new javax.swing.JLabel(); + panelParent = new javax.swing.JPanel(); + lblChequeNo = new javax.swing.JLabel(); + lblReceiptNo = new javax.swing.JLabel(); + lblDdNo = new javax.swing.JLabel(); + lblModeOfPayment = new javax.swing.JLabel(); + txtGSTNo = new javax.swing.JLabel(); + lblDate = new javax.swing.JLabel(); + txtReceiptNo = new javax.swing.JTextField(); + txtChequeNo = new javax.swing.JTextField(); + DateChosser = new com.toedter.calendar.JDateChooser(); + panelChild = new javax.swing.JPanel(); + lblPaymentCollage = new javax.swing.JLabel(); + lblTo = new javax.swing.JLabel(); + txtLastDate = new javax.swing.JTextField(); + lblAmount = new javax.swing.JLabel(); + txtFirstDate = new javax.swing.JTextField(); + lblReceiverSignature = new javax.swing.JLabel(); + lblRecievedFrom = new javax.swing.JLabel(); + jSeparator1 = new javax.swing.JSeparator(); + jSeparator2 = new javax.swing.JSeparator(); + lblCourse = new javax.swing.JLabel(); + lblRemark = new javax.swing.JLabel(); + lblSgst = new javax.swing.JLabel(); + txtSumTotal = new javax.swing.JTextField(); + txtTotalInWords = new javax.swing.JTextField(); + txtCgst = new javax.swing.JTextField(); + txtAmountFirst = new javax.swing.JTextField(); + jSeparator3 = new javax.swing.JSeparator(); + txtSgst = new javax.swing.JTextField(); + lblSrNo = new javax.swing.JLabel(); + txtHead = new javax.swing.JTextField(); + jScrollPane1 = new javax.swing.JScrollPane(); + textPaneRemark = new javax.swing.JTextPane(); + lblTotalInWords = new javax.swing.JLabel(); + jSeparator4 = new javax.swing.JSeparator(); + jLabel18 = new javax.swing.JLabel(); + btnPrint = new javax.swing.JButton(); + lblHead = new javax.swing.JLabel(); + lblCgst = new javax.swing.JLabel(); + comboBoxCourse1 = new javax.swing.JComboBox<>(); + txtHead1 = new javax.swing.JTextField(); + txtRollNo = new javax.swing.JTextField(); + txtDDNo = new javax.swing.JTextField(); + comboBoxPayment = new javax.swing.JComboBox<>(); + txtBankName1 = new javax.swing.JTextField(); + lblBankName1 = new javax.swing.JLabel(); + lblGSTNo1 = new javax.swing.JLabel(); + + setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); + getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + panelSideBar.setBackground(new java.awt.Color(255, 102, 102)); + panelSideBar.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + panelLogOut.setBackground(new java.awt.Color(255, 102, 102)); + panelLogOut.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelLogOut.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnLogOut.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnLogOut.setForeground(new java.awt.Color(255, 255, 255)); + btnLogOut.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/exit.png"))); // NOI18N + btnLogOut.setText(" Logout"); + btnLogOut.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + btnLogOutMouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnLogOutMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnLogOutMouseExited(evt); + } + }); + panelLogOut.add(btnLogOut, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 0, 260, 50)); + + panelSideBar.add(panelLogOut, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 540, 320, 50)); + + panelHome.setBackground(new java.awt.Color(255, 102, 102)); + panelHome.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelHome.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnHome.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnHome.setForeground(new java.awt.Color(255, 255, 255)); + btnHome.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/home.png"))); // NOI18N + btnHome.setText(" HOME"); + btnHome.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + btnHomeMouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnHomeMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnHomeMouseExited(evt); + } + }); + panelHome.add(btnHome, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 0, 310, 50)); + + panelSideBar.add(panelHome, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 60, 320, 50)); + + panelSearchRecords.setBackground(new java.awt.Color(255, 102, 102)); + panelSearchRecords.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelSearchRecords.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnSearchRecords.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnSearchRecords.setForeground(new java.awt.Color(255, 255, 255)); + btnSearchRecords.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/search2.png"))); // NOI18N + btnSearchRecords.setText(" Search Records"); + btnSearchRecords.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + btnSearchRecordsMouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnSearchRecordsMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnSearchRecordsMouseExited(evt); + } + }); + panelSearchRecords.add(btnSearchRecords, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 0, 310, 60)); + + panelSideBar.add(panelSearchRecords, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 140, 320, 50)); + + panelEditCourse.setBackground(new java.awt.Color(255, 102, 102)); + panelEditCourse.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelEditCourse.setFont(new java.awt.Font("Segoe UI", 1, 24)); // NOI18N + panelEditCourse.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnEditCourse.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnEditCourse.setForeground(new java.awt.Color(255, 255, 255)); + btnEditCourse.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/edit2.png"))); // NOI18N + btnEditCourse.setText(" Edit Course"); + btnEditCourse.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + btnEditCourseMouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnEditCourseMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnEditCourseMouseExited(evt); + } + }); + panelEditCourse.add(btnEditCourse, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 0, 260, -1)); + + panelSideBar.add(panelEditCourse, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 220, 320, 50)); + + panelCourseList.setBackground(new java.awt.Color(255, 102, 102)); + panelCourseList.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelCourseList.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnCourseList.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnCourseList.setForeground(new java.awt.Color(255, 255, 255)); + btnCourseList.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/list.png"))); // NOI18N + btnCourseList.setText(" Course List"); + btnCourseList.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + btnCourseListMouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnCourseListMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnCourseListMouseExited(evt); + } + }); + panelCourseList.add(btnCourseList, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, -10, 260, -1)); + + panelSideBar.add(panelCourseList, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 300, 320, 50)); + + panelViewAllRecords.setBackground(new java.awt.Color(255, 102, 102)); + panelViewAllRecords.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelViewAllRecords.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnViewAllRecords.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnViewAllRecords.setForeground(new java.awt.Color(255, 255, 255)); + btnViewAllRecords.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/view all record.png"))); // NOI18N + btnViewAllRecords.setText(" View All Records"); + btnViewAllRecords.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + btnViewAllRecordsMouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnViewAllRecordsMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnViewAllRecordsMouseExited(evt); + } + }); + panelViewAllRecords.add(btnViewAllRecords, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 320, -1)); + + panelSideBar.add(panelViewAllRecords, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 380, 320, 50)); + + panelBack.setBackground(new java.awt.Color(255, 102, 102)); + panelBack.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelBack.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnBack.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnBack.setForeground(new java.awt.Color(255, 255, 255)); + btnBack.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/left-arrow.png"))); // NOI18N + btnBack.setText(" Back"); + btnBack.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + btnBackMouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnBackMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnBackMouseExited(evt); + } + }); + panelBack.add(btnBack, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, -10, 260, -1)); + + panelSideBar.add(panelBack, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 460, 320, 50)); + + getContentPane().add(panelSideBar, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 430, 1040)); + + panelParent.setBackground(new java.awt.Color(255, 204, 204)); + panelParent.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + lblChequeNo.setBackground(new java.awt.Color(51, 51, 51)); + lblChequeNo.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblChequeNo.setText("Cheque No :"); + panelParent.add(lblChequeNo, new org.netbeans.lib.awtextra.AbsoluteConstraints(70, 80, -1, -1)); + + lblReceiptNo.setBackground(new java.awt.Color(51, 51, 51)); + lblReceiptNo.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblReceiptNo.setText("Receipt no : MLV-"); + panelParent.add(lblReceiptNo, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 20, -1, -1)); + + lblDdNo.setBackground(new java.awt.Color(51, 51, 51)); + lblDdNo.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblDdNo.setText("DD no :"); + panelParent.add(lblDdNo, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 80, -1, -1)); + + lblModeOfPayment.setBackground(new java.awt.Color(51, 51, 51)); + lblModeOfPayment.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblModeOfPayment.setText(" Mode of payment : "); + panelParent.add(lblModeOfPayment, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 50, -1, -1)); + + txtGSTNo.setBackground(new java.awt.Color(51, 51, 51)); + txtGSTNo.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + txtGSTNo.setText(" sffsfe22"); + panelParent.add(txtGSTNo, new org.netbeans.lib.awtextra.AbsoluteConstraints(630, 50, 70, -1)); + + lblDate.setBackground(new java.awt.Color(51, 51, 51)); + lblDate.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblDate.setText(" Date : "); + panelParent.add(lblDate, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 20, -1, -1)); + panelParent.add(txtReceiptNo, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 20, 150, -1)); + panelParent.add(txtChequeNo, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 80, 150, -1)); + panelParent.add(DateChosser, new org.netbeans.lib.awtextra.AbsoluteConstraints(620, 20, 140, -1)); + + panelChild.setBackground(new java.awt.Color(255, 204, 204)); + panelChild.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + lblPaymentCollage.setBackground(new java.awt.Color(51, 51, 51)); + lblPaymentCollage.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblPaymentCollage.setText("the following paymemnts the collage office for the year "); + panelChild.add(lblPaymentCollage, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 50, -1, -1)); + + lblTo.setBackground(new java.awt.Color(51, 51, 51)); + lblTo.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblTo.setText("to"); + panelChild.add(lblTo, new org.netbeans.lib.awtextra.AbsoluteConstraints(460, 50, 20, -1)); + panelChild.add(txtLastDate, new org.netbeans.lib.awtextra.AbsoluteConstraints(490, 50, 80, -1)); + + lblAmount.setBackground(new java.awt.Color(51, 51, 51)); + lblAmount.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblAmount.setText("Amount"); + panelChild.add(lblAmount, new org.netbeans.lib.awtextra.AbsoluteConstraints(700, 130, -1, -1)); + panelChild.add(txtFirstDate, new org.netbeans.lib.awtextra.AbsoluteConstraints(360, 50, 90, -1)); + + lblReceiverSignature.setBackground(new java.awt.Color(51, 51, 51)); + lblReceiverSignature.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblReceiverSignature.setText("Receiver signature"); + panelChild.add(lblReceiverSignature, new org.netbeans.lib.awtextra.AbsoluteConstraints(710, 340, -1, -1)); + + lblRecievedFrom.setBackground(new java.awt.Color(51, 51, 51)); + lblRecievedFrom.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblRecievedFrom.setText("Recieved From :"); + panelChild.add(lblRecievedFrom, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 20, -1, -1)); + panelChild.add(jSeparator1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 150, 820, 10)); + panelChild.add(jSeparator2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 120, 820, 10)); + + lblCourse.setBackground(new java.awt.Color(51, 51, 51)); + lblCourse.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblCourse.setText("Course :"); + panelChild.add(lblCourse, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 80, -1, -1)); + + lblRemark.setBackground(new java.awt.Color(51, 51, 51)); + lblRemark.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblRemark.setText("Remark :"); + panelChild.add(lblRemark, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 380, -1, -1)); + + lblSgst.setBackground(new java.awt.Color(51, 51, 51)); + lblSgst.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblSgst.setText("SGST 9% "); + panelChild.add(lblSgst, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 220, -1, -1)); + panelChild.add(txtSumTotal, new org.netbeans.lib.awtextra.AbsoluteConstraints(660, 260, 150, -1)); + panelChild.add(txtTotalInWords, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 310, 410, -1)); + panelChild.add(txtCgst, new org.netbeans.lib.awtextra.AbsoluteConstraints(660, 190, 150, -1)); + + txtAmountFirst.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + txtAmountFirstActionPerformed(evt); + } + }); + panelChild.add(txtAmountFirst, new org.netbeans.lib.awtextra.AbsoluteConstraints(660, 160, 150, -1)); + panelChild.add(jSeparator3, new org.netbeans.lib.awtextra.AbsoluteConstraints(650, 250, 180, 10)); + panelChild.add(txtSgst, new org.netbeans.lib.awtextra.AbsoluteConstraints(660, 220, 150, -1)); + + lblSrNo.setBackground(new java.awt.Color(51, 51, 51)); + lblSrNo.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblSrNo.setText("Sr No "); + panelChild.add(lblSrNo, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 130, -1, -1)); + panelChild.add(txtHead, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 20, 400, -1)); + + jScrollPane1.setViewportView(textPaneRemark); + + panelChild.add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 360, 410, 90)); + + lblTotalInWords.setBackground(new java.awt.Color(51, 51, 51)); + lblTotalInWords.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblTotalInWords.setText("Total in words : "); + panelChild.add(lblTotalInWords, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 310, -1, -1)); + panelChild.add(jSeparator4, new org.netbeans.lib.awtextra.AbsoluteConstraints(650, 330, 190, 20)); + + jLabel18.setBackground(new java.awt.Color(51, 51, 51)); + jLabel18.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + jLabel18.setText("Roll No :"); + panelChild.add(jLabel18, new org.netbeans.lib.awtextra.AbsoluteConstraints(610, 80, -1, -1)); + + btnPrint.setText("Print"); + btnPrint.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + btnPrintActionPerformed(evt); + } + }); + panelChild.add(btnPrint, new org.netbeans.lib.awtextra.AbsoluteConstraints(720, 430, -1, -1)); + + lblHead.setBackground(new java.awt.Color(51, 51, 51)); + lblHead.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblHead.setText("Head "); + panelChild.add(lblHead, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 130, -1, -1)); + + lblCgst.setBackground(new java.awt.Color(51, 51, 51)); + lblCgst.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblCgst.setText("CGST 9%"); + panelChild.add(lblCgst, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 190, -1, -1)); + + comboBoxCourse1.setMaximumRowCount(5); + comboBoxCourse1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "JAVA", "WEB DEVELOPMENT", "SPRINGBOOT", "C", "C++", "PYTHON" })); + comboBoxCourse1.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + comboBoxCourse1ActionPerformed(evt); + } + }); + panelChild.add(comboBoxCourse1, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 80, 350, -1)); + + txtHead1.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + txtHead1ActionPerformed(evt); + } + }); + panelChild.add(txtHead1, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 160, 400, -1)); + panelChild.add(txtRollNo, new org.netbeans.lib.awtextra.AbsoluteConstraints(660, 80, 90, -1)); + + panelParent.add(panelChild, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 140, 870, 900)); + panelParent.add(txtDDNo, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 80, 150, -1)); + + comboBoxPayment.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "DD", "Cheque", "Cash", "Card" })); + comboBoxPayment.setSelectedIndex(2); + comboBoxPayment.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + comboBoxPaymentActionPerformed(evt); + } + }); + panelParent.add(comboBoxPayment, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 50, 150, -1)); + panelParent.add(txtBankName1, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 110, 150, -1)); + + lblBankName1.setBackground(new java.awt.Color(51, 51, 51)); + lblBankName1.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblBankName1.setText("Bank Name : "); + panelParent.add(lblBankName1, new org.netbeans.lib.awtextra.AbsoluteConstraints(70, 110, -1, -1)); + + lblGSTNo1.setBackground(new java.awt.Color(51, 51, 51)); + lblGSTNo1.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblGSTNo1.setText(" GSTIN: "); + panelParent.add(lblGSTNo1, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 50, 60, -1)); + + getContentPane().add(panelParent, new org.netbeans.lib.awtextra.AbsoluteConstraints(430, 0, 1420, 1040)); + + pack(); + setLocationRelativeTo(null); + }// </editor-fold>//GEN-END:initComponents + + private void btnLogOutMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnLogOutMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelLogOut.setBackground(clr); + }//GEN-LAST:event_btnLogOutMouseEntered + + private void btnLogOutMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnLogOutMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelLogOut.setBackground(clr); + }//GEN-LAST:event_btnLogOutMouseExited + + private void btnHomeMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnHomeMouseEntered + Color clr=new Color(255,204,204); + panelHome.setBackground(clr); + }//GEN-LAST:event_btnHomeMouseEntered + + private void btnHomeMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnHomeMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelHome.setBackground(clr); + }//GEN-LAST:event_btnHomeMouseExited + + private void btnSearchRecordsMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnSearchRecordsMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelSearchRecords.setBackground(clr); + }//GEN-LAST:event_btnSearchRecordsMouseEntered + + private void btnSearchRecordsMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnSearchRecordsMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelSearchRecords.setBackground(clr); + }//GEN-LAST:event_btnSearchRecordsMouseExited + + private void btnEditCourseMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnEditCourseMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelEditCourse.setBackground(clr); + }//GEN-LAST:event_btnEditCourseMouseEntered + + private void btnEditCourseMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnEditCourseMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelEditCourse.setBackground(clr); + }//GEN-LAST:event_btnEditCourseMouseExited + + private void btnCourseListMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnCourseListMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelCourseList.setBackground(clr); + }//GEN-LAST:event_btnCourseListMouseEntered + + private void btnCourseListMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnCourseListMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelCourseList.setBackground(clr); + }//GEN-LAST:event_btnCourseListMouseExited + + private void btnViewAllRecordsMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnViewAllRecordsMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelViewAllRecords.setBackground(clr); + }//GEN-LAST:event_btnViewAllRecordsMouseEntered + + private void btnViewAllRecordsMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnViewAllRecordsMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelViewAllRecords.setBackground(clr); + }//GEN-LAST:event_btnViewAllRecordsMouseExited + + private void btnBackMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnBackMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelBack.setBackground(clr); + }//GEN-LAST:event_btnBackMouseEntered + + private void btnBackMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnBackMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelBack.setBackground(clr); + }//GEN-LAST:event_btnBackMouseExited + + private void comboBoxPaymentActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_comboBoxPaymentActionPerformed + // TODO add your handling code here: + if(comboBoxPayment.getSelectedIndex() == 0){ + lblDdNo.setVisible(true); + txtDDNo.setVisible(true); + lblChequeNo.setVisible(false); + txtChequeNo.setVisible(false); + lblBankName1.setVisible(true); + txtBankName1.setVisible(true); + } + if(comboBoxPayment.getSelectedIndex() == 1){ + lblDdNo.setVisible(false); + txtDDNo.setVisible(false); + lblChequeNo.setVisible(true); + txtChequeNo.setVisible(true); + lblBankName1.setVisible(true); + txtBankName1.setVisible(true); + } + if(comboBoxPayment.getSelectedIndex() == 2){ + lblDdNo.setVisible(false); + txtDDNo.setVisible(false); + lblChequeNo.setVisible(false); + txtChequeNo.setVisible(false); + lblBankName1.setVisible(false); + txtBankName1.setVisible(false); + } + if(comboBoxPayment.getSelectedItem().equals("Card")){ + lblDdNo.setVisible(false); + txtDDNo.setVisible(false); + txtGSTNo.setVisible(true); + txtGSTNo.setVisible(true); + lblChequeNo.setVisible(false); + txtChequeNo.setVisible(false); + lblBankName1.setVisible(true); + txtBankName1.setVisible(true); + } + }//GEN-LAST:event_comboBoxPaymentActionPerformed + + private void btnPrintActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnPrintActionPerformed + if(validation() == true){ + String result= insertData(); + if(result.equals("Success")){ + JOptionPane.showMessageDialog(this, "Records Insert SuccessFully"); + printReceipt p =new printReceipt(); + p.setVisible(true); + this.dispose(); + } + else{ + JOptionPane.showMessageDialog(this, "Records Insert Failed"); + } + } + }//GEN-LAST:event_btnPrintActionPerformed + + private void txtAmountFirstActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtAmountFirstActionPerformed + Float amnt=Float.parseFloat(txtAmountFirst.getText()); + Float cgst=(float)(amnt * 0.09); + Float sgst=(float)(amnt * 0.09); + txtCgst.setText(cgst.toString()); + txtSgst.setText(sgst.toString()); + float total=amnt+cgst+sgst; + txtSumTotal.setText(Float.toString(total)); + txtTotalInWords.setText(NumberToWordsConverter.convert((int)total)+" only /-"); + }//GEN-LAST:event_txtAmountFirstActionPerformed + + private void txtHead1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtHead1ActionPerformed + + }//GEN-LAST:event_txtHead1ActionPerformed + + private void comboBoxCourse1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_comboBoxCourse1ActionPerformed + // TODO add your handling code here: + txtHead1.setText(comboBoxCourse1.getSelectedItem().toString()); + }//GEN-LAST:event_comboBoxCourse1ActionPerformed + + private void btnHomeMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnHomeMouseClicked + HomePage home=new HomePage(); + home.setVisible(true); + this.dispose(); + }//GEN-LAST:event_btnHomeMouseClicked + + private void btnSearchRecordsMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnSearchRecordsMouseClicked + SearchRecords searchrecords=new SearchRecords(); + searchrecords.setVisible(true); + this.dispose(); + }//GEN-LAST:event_btnSearchRecordsMouseClicked + + private void btnEditCourseMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnEditCourseMouseClicked + EditCourse edit=new EditCourse(); + edit.setVisible(true); + this.dispose(); + }//GEN-LAST:event_btnEditCourseMouseClicked + + private void btnCourseListMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnCourseListMouseClicked + // TODO add your handling code here: + }//GEN-LAST:event_btnCourseListMouseClicked + + private void btnViewAllRecordsMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnViewAllRecordsMouseClicked + ViewAllRecords viewrecords=new ViewAllRecords(); + viewrecords.setVisible(true); + this.dispose(); + }//GEN-LAST:event_btnViewAllRecordsMouseClicked + + private void btnBackMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnBackMouseClicked + HomePage home=new HomePage(); + home.setVisible(true); + this.dispose(); + }//GEN-LAST:event_btnBackMouseClicked + + private void btnLogOutMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnLogOutMouseClicked + this.dispose(); + }//GEN-LAST:event_btnLogOutMouseClicked + public int getReceiptNo(){ + int receipt_no=0; + try{ + Class.forName("com.mysql.cj.jdbc.Driver"); + Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/fees_managment?zeroDateTimeBehavior=CONVERT_TO_NULL","root",""); + PreparedStatement pst=con.prepareStatement("select max(recieptNo) from fees_details"); + ResultSet rs=pst.executeQuery(); + if(rs.next() == true){ + receipt_no=rs.getInt(1); + } + }catch(Exception e){ + e.printStackTrace(); + } + return receipt_no+1; + } + public String insertData(){ + String status=""; + int recieptNo=Integer.parseInt(txtReceiptNo.getText()); + String studentName=txtHead.getText(); + String rollNo=txtRollNo.getText(); + String paymentMode=comboBoxPayment.getSelectedItem().toString(); + String chequeNo=txtChequeNo.getText(); + String bankName=txtBankName1.getText(); + String ddNo=txtDDNo.getText(); + String courseName=txtHead1.getText(); + String gstin=txtGSTNo.getText(); + float totalAmount=Float.parseFloat(txtSumTotal.getText()); + SimpleDateFormat dateFormat =new SimpleDateFormat("yyyy-MM-dd"); + String date=dateFormat.format(DateChosser.getDate()); + float initialAmount=Float.parseFloat(txtAmountFirst.getText()); + float cgst=Float.parseFloat(txtCgst.getText()); + float sgst=Float.parseFloat(txtSgst.getText()); + String totalInWords=txtTotalInWords.getText(); + String remark=textPaneRemark.getText(); + int year1=Integer.parseInt(txtFirstDate.getText()); + int year2=Integer.parseInt(txtLastDate.getText()); + try{ + Class.forName("com.mysql.cj.jdbc.Driver"); + Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/fees_managment?zeroDateTimeBehavior=CONVERT_TO_NULL","root",""); + PreparedStatement pst=con.prepareStatement("insert into fees_details values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)"); + pst.setInt(1,recieptNo); + pst.setString(2, studentName); + pst.setString(3,rollNo); + pst.setString(4,paymentMode); + pst.setString(5,chequeNo); + pst.setString(6, bankName); + pst.setString(7,ddNo); + pst.setString(8,courseName); + pst.setString(9,gstin); + pst.setFloat(10,totalAmount); + pst.setString(11,date); + pst.setFloat(12, initialAmount); + pst.setFloat(13,cgst); + pst.setFloat(14,sgst); + pst.setString(15,totalInWords); + pst.setString(16,remark); + pst.setInt(17,year1); + pst.setInt(18,year2); + int rowCount=pst.executeUpdate(); + if(rowCount==1){ + status="Success"; + } + else{ + status="Failed"; + } + }catch(Exception e){ + e.printStackTrace(); + } + return status; + } + /** + * @param args the command line arguments + */ + public static void main(String args[]) { + /* Set the Nimbus look and feel */ + //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> + /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. + * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html + */ + try { + for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { + if ("Nimbus".equals(info.getName())) { + javax.swing.UIManager.setLookAndFeel(info.getClassName()); + break; + } + } + } catch (ClassNotFoundException ex) { + java.util.logging.Logger.getLogger(addFees.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (InstantiationException ex) { + java.util.logging.Logger.getLogger(addFees.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (IllegalAccessException ex) { + java.util.logging.Logger.getLogger(addFees.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (javax.swing.UnsupportedLookAndFeelException ex) { + java.util.logging.Logger.getLogger(addFees.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } + //</editor-fold> + + /* Create and display the form */ + java.awt.EventQueue.invokeLater(new Runnable() { + public void run() { + new addFees().setVisible(true); + } + }); + } + + // Variables declaration - do not modify//GEN-BEGIN:variables + private com.toedter.calendar.JDateChooser DateChosser; + private javax.swing.JLabel btnBack; + private javax.swing.JLabel btnCourseList; + private javax.swing.JLabel btnEditCourse; + private javax.swing.JLabel btnHome; + private javax.swing.JLabel btnLogOut; + private javax.swing.JButton btnPrint; + private javax.swing.JLabel btnSearchRecords; + private javax.swing.JLabel btnViewAllRecords; + private javax.swing.JComboBox<String> comboBoxCourse1; + private javax.swing.JComboBox<String> comboBoxPayment; + private javax.swing.JLabel jLabel18; + private javax.swing.JScrollPane jScrollPane1; + private javax.swing.JSeparator jSeparator1; + private javax.swing.JSeparator jSeparator2; + private javax.swing.JSeparator jSeparator3; + private javax.swing.JSeparator jSeparator4; + private javax.swing.JLabel lblAmount; + private javax.swing.JLabel lblBankName1; + private javax.swing.JLabel lblCgst; + private javax.swing.JLabel lblChequeNo; + private javax.swing.JLabel lblCourse; + private javax.swing.JLabel lblDate; + private javax.swing.JLabel lblDdNo; + private javax.swing.JLabel lblGSTNo1; + private javax.swing.JLabel lblHead; + private javax.swing.JLabel lblModeOfPayment; + private javax.swing.JLabel lblPaymentCollage; + private javax.swing.JLabel lblReceiptNo; + private javax.swing.JLabel lblReceiverSignature; + private javax.swing.JLabel lblRecievedFrom; + private javax.swing.JLabel lblRemark; + private javax.swing.JLabel lblSgst; + private javax.swing.JLabel lblSrNo; + private javax.swing.JLabel lblTo; + private javax.swing.JLabel lblTotalInWords; + private javax.swing.JPanel panelBack; + private javax.swing.JPanel panelChild; + private javax.swing.JPanel panelCourseList; + private javax.swing.JPanel panelEditCourse; + private javax.swing.JPanel panelHome; + private javax.swing.JPanel panelLogOut; + private javax.swing.JPanel panelParent; + private javax.swing.JPanel panelSearchRecords; + private javax.swing.JPanel panelSideBar; + private javax.swing.JPanel panelViewAllRecords; + private javax.swing.JTextPane textPaneRemark; + private javax.swing.JTextField txtAmountFirst; + private javax.swing.JTextField txtBankName1; + private javax.swing.JTextField txtCgst; + private javax.swing.JTextField txtChequeNo; + private javax.swing.JTextField txtDDNo; + private javax.swing.JTextField txtFirstDate; + private javax.swing.JLabel txtGSTNo; + private javax.swing.JTextField txtHead; + private javax.swing.JTextField txtHead1; + private javax.swing.JTextField txtLastDate; + private javax.swing.JTextField txtReceiptNo; + private javax.swing.JTextField txtRollNo; + private javax.swing.JTextField txtSgst; + private javax.swing.JTextField txtSumTotal; + private javax.swing.JTextField txtTotalInWords; + // End of variables declaration//GEN-END:variables +} diff --git a/src/fees_management_system/copyRightPage.form b/src/fees_management_system/copyRightPage.form new file mode 100644 index 0000000..d02357a --- /dev/null +++ b/src/fees_management_system/copyRightPage.form @@ -0,0 +1,152 @@ +<?xml version="1.0" encoding="UTF-8" ?> + +<Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo"> + <Properties> + <Property name="defaultCloseOperation" type="int" value="3"/> + </Properties> + <SyntheticProperties> + <SyntheticProperty name="formSizePolicy" type="int" value="1"/> + <SyntheticProperty name="generateCenter" type="boolean" value="true"/> + </SyntheticProperties> + <AuxValues> + <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/> + <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/> + <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/> + <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/> + <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/> + <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,79,0,0,2,20"/> + </AuxValues> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Container class="javax.swing.JPanel" name="jPanel1"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="cc" green="cc" red="ff" type="rgb"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="0" y="0" width="530" height="340"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JSeparator" name="jSeparator1"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="0" y="50" width="500" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JSeparator" name="jSeparator2"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="0" y="286" width="530" height="10"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="jLabel2"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="18" style="1"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/back1.png"/> + </Property> + <Property name="verticalTextPosition" type="int" value="1"/> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jLabel2MouseClicked"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="300" width="40" height="30"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="jLabel1"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="18" style="1"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/copyright.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" 2021, All Rights Reserved"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="190" y="10" width="250" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="jLabel3"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="18" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="parts. without the specific written permission of the owner."/> + <Property name="verticalAlignment" type="int" value="1"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="30" y="140" width="470" height="30"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="jLabel4"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="18" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="This Software is developed by MR. Yash Gupta."/> + <Property name="verticalAlignment" type="int" value="1"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="30" y="180" width="440" height="30"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="jLabel5"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="18" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="No part of this software may reproduced in whole or in "/> + <Property name="verticalAlignment" type="int" value="1"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="30" y="100" width="450" height="30"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="jLabel6"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="18" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="CopyRights"/> + <Property name="verticalTextPosition" type="int" value="1"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="90" y="10" width="-1" height="30"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + </SubComponents> +</Form> diff --git a/src/fees_management_system/copyRightPage.java b/src/fees_management_system/copyRightPage.java new file mode 100644 index 0000000..a66ab03 --- /dev/null +++ b/src/fees_management_system/copyRightPage.java @@ -0,0 +1,143 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/GUIForms/JFrame.java to edit this template + */ +package fees_managment_syatem; + +import javax.swing.JFrame; + +/** + * + * @author yash + */ +public class copyRightPage extends javax.swing.JFrame { + + /** + * Creates new form copyRightPage + */ + public copyRightPage() { + initComponents(); + setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); + } + + /** + * This method is called from within the constructor to initialize the form. + * WARNING: Do NOT modify this code. The content of this method is always + * regenerated by the Form Editor. + */ + @SuppressWarnings("unchecked") + // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents + private void initComponents() { + + jPanel1 = new javax.swing.JPanel(); + jSeparator1 = new javax.swing.JSeparator(); + jSeparator2 = new javax.swing.JSeparator(); + jLabel2 = new javax.swing.JLabel(); + jLabel1 = new javax.swing.JLabel(); + jLabel3 = new javax.swing.JLabel(); + jLabel4 = new javax.swing.JLabel(); + jLabel5 = new javax.swing.JLabel(); + jLabel6 = new javax.swing.JLabel(); + + setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); + getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + jPanel1.setBackground(new java.awt.Color(255, 204, 204)); + jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + jPanel1.add(jSeparator1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 50, 500, -1)); + jPanel1.add(jSeparator2, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 286, 530, 10)); + + jLabel2.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N + jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/back1.png"))); // NOI18N + jLabel2.setVerticalTextPosition(javax.swing.SwingConstants.TOP); + jLabel2.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + jLabel2MouseClicked(evt); + } + }); + jPanel1.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 300, 40, 30)); + + jLabel1.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N + jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/copyright.png"))); // NOI18N + jLabel1.setText(" 2021, All Rights Reserved"); + jPanel1.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 10, 250, -1)); + + jLabel3.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N + jLabel3.setText("parts. without the specific written permission of the owner."); + jLabel3.setVerticalAlignment(javax.swing.SwingConstants.TOP); + jPanel1.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 140, 470, 30)); + + jLabel4.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N + jLabel4.setText("This Software is developed by MR. Yash Gupta."); + jLabel4.setVerticalAlignment(javax.swing.SwingConstants.TOP); + jPanel1.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 180, 440, 30)); + + jLabel5.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N + jLabel5.setText("No part of this software may reproduced in whole or in "); + jLabel5.setVerticalAlignment(javax.swing.SwingConstants.TOP); + jPanel1.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 100, 450, 30)); + + jLabel6.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N + jLabel6.setText("CopyRights"); + jLabel6.setVerticalTextPosition(javax.swing.SwingConstants.TOP); + jPanel1.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 10, -1, 30)); + + getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 530, 340)); + + pack(); + setLocationRelativeTo(null); + }// </editor-fold>//GEN-END:initComponents + + private void jLabel2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel2MouseClicked + HomePage page=new HomePage(); + page.setVisible(true); + this.dispose(); + }//GEN-LAST:event_jLabel2MouseClicked + + /** + * @param args the command line arguments + */ + public static void main(String args[]) { + /* Set the Nimbus look and feel */ + //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> + /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. + * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html + */ + try { + for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { + if ("Nimbus".equals(info.getName())) { + javax.swing.UIManager.setLookAndFeel(info.getClassName()); + break; + } + } + } catch (ClassNotFoundException ex) { + java.util.logging.Logger.getLogger(copyRightPage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (InstantiationException ex) { + java.util.logging.Logger.getLogger(copyRightPage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (IllegalAccessException ex) { + java.util.logging.Logger.getLogger(copyRightPage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (javax.swing.UnsupportedLookAndFeelException ex) { + java.util.logging.Logger.getLogger(copyRightPage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } + //</editor-fold> + + /* Create and display the form */ + java.awt.EventQueue.invokeLater(new Runnable() { + public void run() { + new copyRightPage().setVisible(true); + } + }); + } + + // Variables declaration - do not modify//GEN-BEGIN:variables + private javax.swing.JLabel jLabel1; + private javax.swing.JLabel jLabel2; + private javax.swing.JLabel jLabel3; + private javax.swing.JLabel jLabel4; + private javax.swing.JLabel jLabel5; + private javax.swing.JLabel jLabel6; + private javax.swing.JPanel jPanel1; + private javax.swing.JSeparator jSeparator1; + private javax.swing.JSeparator jSeparator2; + // End of variables declaration//GEN-END:variables +} diff --git a/src/fees_management_system/printReceipt.form b/src/fees_management_system/printReceipt.form new file mode 100644 index 0000000..0f52128 --- /dev/null +++ b/src/fees_management_system/printReceipt.form @@ -0,0 +1,1015 @@ +<?xml version="1.0" encoding="UTF-8" ?> + +<Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo"> + <Properties> + <Property name="defaultCloseOperation" type="int" value="3"/> + </Properties> + <SyntheticProperties> + <SyntheticProperty name="formSizePolicy" type="int" value="1"/> + <SyntheticProperty name="generateCenter" type="boolean" value="true"/> + </SyntheticProperties> + <AuxValues> + <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/> + <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/> + <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/> + <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/> + <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/> + <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,2,-117,0,0,4,-4"/> + </AuxValues> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Container class="javax.swing.JPanel" name="panelSideBar"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="0" y="0" width="430" height="1090"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Container class="javax.swing.JPanel" name="panelEdit"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="80" y="580" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnEdit"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/edit2.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" Edit"/> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnEditMouseClicked"/> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnEditMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnEditMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="0" y="4" width="260" height="50"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelHome"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="80" y="30" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnHome"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/home.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" HOME"/> + </Properties> + <Events> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnHomeMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnHomeMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="0" width="310" height="50"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelSearchRecords"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="80" y="100" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnSearchRecords"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/search2.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" Search Records"/> + </Properties> + <Events> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnSearchRecordsMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnSearchRecordsMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="0" width="310" height="60"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelEditCourse"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="24" style="1"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="80" y="170" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnEditCourse"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/edit2.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" Edit Course"/> + </Properties> + <Events> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnEditCourseMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnEditCourseMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="0" width="260" height="-1"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelCourseList"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="80" y="240" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnCourseList"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/list.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" Course List"/> + </Properties> + <Events> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnCourseListMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnCourseListMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="0" width="260" height="-1"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelViewAllRecords"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="80" y="310" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnViewAllRecords"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/view all record.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" View All Records"/> + </Properties> + <Events> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnViewAllRecordsMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnViewAllRecordsMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="0" y="0" width="310" height="50"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelBack"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="80" y="380" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnBack"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/left-arrow.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" Back"/> + </Properties> + <Events> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnBackMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnBackMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="0" y="-10" width="260" height="-1"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelLogOut"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Events> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="panelLogOutMouseEntered"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="80" y="450" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnLogOut"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/logout.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" Logout"/> + </Properties> + <Events> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnLogOutMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnLogOutMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="0" y="-10" width="260" height="-1"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelPrint"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="66" green="66" red="ff" type="rgb"/> + </Property> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.BevelBorderInfo"> + <BevelBorder/> + </Border> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="80" y="510" width="320" height="50"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="btnPrint"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/printer-.png"/> + </Property> + <Property name="text" type="java.lang.String" value=" Print"/> + </Properties> + <Events> + <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnPrintMouseClicked"/> + <EventHandler event="mouseEntered" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnPrintMouseEntered"/> + <EventHandler event="mouseExited" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="btnPrintMouseExited"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="0" y="0" width="260" height="50"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="panelPrintReceipt"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="ff" green="ff" red="ff" type="rgb"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[1200, 860]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="450" y="40" width="810" height="590"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> + <Property name="useNullLayout" type="boolean" value="false"/> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="jLabel1"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="b5" green="89" red="0" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="Pur Road, Pratap Nagar, Bhilwara, Rajasthan 311001"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="380" y="90" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="jLabel2"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="24" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="b5" green="89" red="0" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="Manikya Lal Verma"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="440" y="10" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="jLabel3"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="36" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="b5" green="89" red="0" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="Textile & Engineering College "/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="300" y="40" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="jLabel5"> + <Properties> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/fees_managment_syatem/icon/mlv_logo (1).jpg"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="160" y="10" width="100" height="90"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="jLabel4"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Receipt No : MLV- "/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="130" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="jLabel6"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Payment Mode : "/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="160" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="txtChequeDD"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="cheque_dd :"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="190" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="txtBankName"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Bank Name : "/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="220" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="jLabel10"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Received From : "/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="250" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="jLabel11"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="The following payment int the college office for the year : "/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="280" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="jLabel12"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Date : "/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="610" y="130" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="jLabel13"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="GSTIN : "/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="610" y="160" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JSeparator" name="jSeparator2"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="0" green="0" red="0" type="rgb"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="0" green="0" red="0" type="rgb"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="327" width="720" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JSeparator" name="jSeparator3"> + <Properties> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="0" green="0" red="0" type="rgb"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="10" y="350" width="720" height="10"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="jLabel14"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Sr No"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="50" y="330" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="jLabel15"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Heads"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="250" y="330" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="jLabel16"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Amounts(Rs)"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="570" y="330" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblReceiptNo"> + <Properties> + <Property name="text" type="java.lang.String" value="jLabel17"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="160" y="130" width="140" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblPaymentMode"> + <Properties> + <Property name="text" type="java.lang.String" value="jLabel18"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="160" y="160" width="140" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblChequeDD"> + <Properties> + <Property name="text" type="java.lang.String" value="jLabel20"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="160" y="190" width="140" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblBankName"> + <Properties> + <Property name="text" type="java.lang.String" value="jLabel21"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="160" y="220" width="140" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblReceivedFrom"> + <Properties> + <Property name="text" type="java.lang.String" value="jLabel22"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="160" y="250" width="140" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblYear1"> + <Properties> + <Property name="text" type="java.lang.String" value="jLabel23"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="350" y="280" width="50" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="jLabel24"> + <Properties> + <Property name="text" type="java.lang.String" value="-"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="400" y="280" width="10" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblYear2"> + <Properties> + <Property name="text" type="java.lang.String" value="jLabel25"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="420" y="280" width="60" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblDate"> + <Properties> + <Property name="text" type="java.lang.String" value="jLabel26"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="660" y="130" width="110" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblGSTIN"> + <Properties> + <Property name="text" type="java.lang.String" value="jLabel27"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="660" y="160" width="90" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="jLabel19"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="1."/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="50" y="370" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblCourseName"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value=" jLabel28"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="170" y="360" width="200" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="jLabel29"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="CGST 9%"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="240" y="390" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="jLabel30"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="SGST 9%"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="240" y="420" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblInitialAmount"> + <Properties> + <Property name="text" type="java.lang.String" value="jLabel31"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="590" y="360" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblCGST"> + <Properties> + <Property name="text" type="java.lang.String" value="jLabel32"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="590" y="390" width="-1" height="20"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblSGST"> + <Properties> + <Property name="text" type="java.lang.String" value="jLabel33"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="590" y="420" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JSeparator" name="jSeparator4"> + <Properties> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="0" green="0" red="0" type="rgb"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="520" y="450" width="190" height="10"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblTotal"> + <Properties> + <Property name="text" type="java.lang.String" value="jLabel34"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="590" y="460" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="jLabel7"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Total In Words : "/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="20" y="520" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblTotalInWords"> + <Properties> + <Property name="text" type="java.lang.String" value="jLabel35"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="120" y="520" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JSeparator" name="jSeparator5"> + <Properties> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="0" green="0" red="0" type="rgb"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="520" y="550" width="200" height="10"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="jLabel36"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Segoe UI" size="12" style="1"/> + </Property> + <Property name="text" type="java.lang.String" value="Receiver Signature"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="560" y="560" width="-1" height="-1"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="jTextField2"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="b5" green="89" red="0" type="rgb"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="0" y="110" width="810" height="10"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Component class="javax.swing.JLabel" name="jLabel17"> + <Properties> + <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> + <Font name="Times New Roman" size="14" style="1"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="b5" green="89" red="0" type="rgb"/> + </Property> + <Property name="text" type="java.lang.String" value="PRINT RECEIPT"/> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="820" y="10" width="110" height="20"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="jTextField1"> + <Properties> + <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="b5" green="89" red="0" type="rgb"/> + </Property> + <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> + <Color blue="b5" green="89" red="0" type="rgb"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> + <AbsoluteConstraints x="800" y="30" width="140" height="5"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> +</Form> diff --git a/src/fees_management_system/printReceipt.java b/src/fees_management_system/printReceipt.java new file mode 100644 index 0000000..6726b2f --- /dev/null +++ b/src/fees_management_system/printReceipt.java @@ -0,0 +1,765 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/GUIForms/JFrame.java to edit this template + */ +package fees_managment_syatem; + +import java.awt.Color; +import java.awt.Container; +import java.awt.Graphics; +import java.awt.Graphics2D; +import java.awt.print.PageFormat; +import java.awt.print.Printable; +import java.awt.print.PrinterException; +import java.awt.print.PrinterJob; +import java.sql.Connection; +import java.sql.DriverManager; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +/** + * + * @author yash + */ +public class printReceipt extends javax.swing.JFrame { + + /** + * Creates new form printReceipt + */ + public printReceipt() { + initComponents(); + getRecords(); + Container c=getContentPane(); + c.setBackground(new Color(255,204,204)); + } +public void getRecords(){ + try{ + Class.forName("com.mysql.cj.jdbc.Driver"); + Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/fees_managment?zeroDateTimeBehavior=CONVERT_TO_NULL","root",""); + PreparedStatement pst=con.prepareStatement("SELECT * FROM fees_details ORDER BY recieptNo DESC LIMIT 1"); + ResultSet rs=pst.executeQuery(); + rs.next(); + lblReceiptNo.setText(rs.getString("recieptNo")); + lblPaymentMode.setText(rs.getString("paymentMode")); + String paymentMode=rs.getString("paymentMode"); + if(paymentMode.equalsIgnoreCase("Cash")){ + txtChequeDD.setText("Cheque No : "); + lblChequeDD.setText("-"); + lblBankName.setText("-"); + } + if(paymentMode.equalsIgnoreCase("Cheque")){ + txtChequeDD.setText("Cheque No "); + lblChequeDD.setText(rs.getString("chequeNo")); + lblBankName.setText(rs.getString("bankName")); + } + if(paymentMode.equalsIgnoreCase("dd")){ + txtChequeDD.setText("DD No : "); + lblChequeDD.setText(rs.getString("ddNo")); + lblBankName.setText(rs.getString("bankName")); + } + if(paymentMode.equalsIgnoreCase("card")){ + txtChequeDD.setText("Cheque No : "); + lblChequeDD.setText("-"); + lblBankName.setText("bankName"); + } + lblReceivedFrom.setText(rs.getString("studentName")); + lblDate.setText(rs.getString("date")); + lblGSTIN.setText(rs.getString("gstin")); + lblYear1.setText(rs.getString("year1")); + lblYear2.setText(rs.getString("year2")); + lblCourseName.setText(rs.getString("courseName")); + lblInitialAmount.setText(rs.getString("amount")); + lblCGST.setText(rs.getString("cgst")); + lblSGST.setText(rs.getString("sgst")); + lblTotal.setText(rs.getString("totalAmount")); + lblTotalInWords.setText(rs.getString("totalInWords")); + }catch(Exception e){ + e.printStackTrace(); + } +} + /** + * This method is called from within the constructor to initialize the form. + * WARNING: Do NOT modify this code. The content of this method is always + * regenerated by the Form Editor. + */ + @SuppressWarnings("unchecked") + // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents + private void initComponents() { + + panelSideBar = new javax.swing.JPanel(); + panelEdit = new javax.swing.JPanel(); + btnEdit = new javax.swing.JLabel(); + panelHome = new javax.swing.JPanel(); + btnHome = new javax.swing.JLabel(); + panelSearchRecords = new javax.swing.JPanel(); + btnSearchRecords = new javax.swing.JLabel(); + panelEditCourse = new javax.swing.JPanel(); + btnEditCourse = new javax.swing.JLabel(); + panelCourseList = new javax.swing.JPanel(); + btnCourseList = new javax.swing.JLabel(); + panelViewAllRecords = new javax.swing.JPanel(); + btnViewAllRecords = new javax.swing.JLabel(); + panelBack = new javax.swing.JPanel(); + btnBack = new javax.swing.JLabel(); + panelLogOut = new javax.swing.JPanel(); + btnLogOut = new javax.swing.JLabel(); + panelPrint = new javax.swing.JPanel(); + btnPrint = new javax.swing.JLabel(); + panelPrintReceipt = new javax.swing.JPanel(); + jLabel1 = new javax.swing.JLabel(); + jLabel2 = new javax.swing.JLabel(); + jLabel3 = new javax.swing.JLabel(); + jLabel5 = new javax.swing.JLabel(); + jLabel4 = new javax.swing.JLabel(); + jLabel6 = new javax.swing.JLabel(); + txtChequeDD = new javax.swing.JLabel(); + txtBankName = new javax.swing.JLabel(); + jLabel10 = new javax.swing.JLabel(); + jLabel11 = new javax.swing.JLabel(); + jLabel12 = new javax.swing.JLabel(); + jLabel13 = new javax.swing.JLabel(); + jSeparator2 = new javax.swing.JSeparator(); + jSeparator3 = new javax.swing.JSeparator(); + jLabel14 = new javax.swing.JLabel(); + jLabel15 = new javax.swing.JLabel(); + jLabel16 = new javax.swing.JLabel(); + lblReceiptNo = new javax.swing.JLabel(); + lblPaymentMode = new javax.swing.JLabel(); + lblChequeDD = new javax.swing.JLabel(); + lblBankName = new javax.swing.JLabel(); + lblReceivedFrom = new javax.swing.JLabel(); + lblYear1 = new javax.swing.JLabel(); + jLabel24 = new javax.swing.JLabel(); + lblYear2 = new javax.swing.JLabel(); + lblDate = new javax.swing.JLabel(); + lblGSTIN = new javax.swing.JLabel(); + jLabel19 = new javax.swing.JLabel(); + lblCourseName = new javax.swing.JLabel(); + jLabel29 = new javax.swing.JLabel(); + jLabel30 = new javax.swing.JLabel(); + lblInitialAmount = new javax.swing.JLabel(); + lblCGST = new javax.swing.JLabel(); + lblSGST = new javax.swing.JLabel(); + jSeparator4 = new javax.swing.JSeparator(); + lblTotal = new javax.swing.JLabel(); + jLabel7 = new javax.swing.JLabel(); + lblTotalInWords = new javax.swing.JLabel(); + jSeparator5 = new javax.swing.JSeparator(); + jLabel36 = new javax.swing.JLabel(); + jTextField2 = new javax.swing.JTextField(); + jLabel17 = new javax.swing.JLabel(); + jTextField1 = new javax.swing.JTextField(); + + setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); + getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + panelSideBar.setBackground(new java.awt.Color(255, 102, 102)); + panelSideBar.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + panelEdit.setBackground(new java.awt.Color(255, 102, 102)); + panelEdit.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelEdit.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnEdit.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnEdit.setForeground(new java.awt.Color(255, 255, 255)); + btnEdit.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/edit2.png"))); // NOI18N + btnEdit.setText(" Edit"); + btnEdit.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + btnEditMouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnEditMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnEditMouseExited(evt); + } + }); + panelEdit.add(btnEdit, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 4, 260, 50)); + + panelSideBar.add(panelEdit, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 580, 320, 50)); + + panelHome.setBackground(new java.awt.Color(255, 102, 102)); + panelHome.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelHome.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnHome.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnHome.setForeground(new java.awt.Color(255, 255, 255)); + btnHome.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/home.png"))); // NOI18N + btnHome.setText(" HOME"); + btnHome.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnHomeMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnHomeMouseExited(evt); + } + }); + panelHome.add(btnHome, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 0, 310, 50)); + + panelSideBar.add(panelHome, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 30, 320, 50)); + + panelSearchRecords.setBackground(new java.awt.Color(255, 102, 102)); + panelSearchRecords.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelSearchRecords.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnSearchRecords.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnSearchRecords.setForeground(new java.awt.Color(255, 255, 255)); + btnSearchRecords.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/search2.png"))); // NOI18N + btnSearchRecords.setText(" Search Records"); + btnSearchRecords.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnSearchRecordsMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnSearchRecordsMouseExited(evt); + } + }); + panelSearchRecords.add(btnSearchRecords, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 0, 310, 60)); + + panelSideBar.add(panelSearchRecords, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 100, 320, 50)); + + panelEditCourse.setBackground(new java.awt.Color(255, 102, 102)); + panelEditCourse.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelEditCourse.setFont(new java.awt.Font("Segoe UI", 1, 24)); // NOI18N + panelEditCourse.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnEditCourse.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnEditCourse.setForeground(new java.awt.Color(255, 255, 255)); + btnEditCourse.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/edit2.png"))); // NOI18N + btnEditCourse.setText(" Edit Course"); + btnEditCourse.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnEditCourseMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnEditCourseMouseExited(evt); + } + }); + panelEditCourse.add(btnEditCourse, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 0, 260, -1)); + + panelSideBar.add(panelEditCourse, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 170, 320, 50)); + + panelCourseList.setBackground(new java.awt.Color(255, 102, 102)); + panelCourseList.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelCourseList.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnCourseList.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnCourseList.setForeground(new java.awt.Color(255, 255, 255)); + btnCourseList.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/list.png"))); // NOI18N + btnCourseList.setText(" Course List"); + btnCourseList.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnCourseListMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnCourseListMouseExited(evt); + } + }); + panelCourseList.add(btnCourseList, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 0, 260, -1)); + + panelSideBar.add(panelCourseList, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 240, 320, 50)); + + panelViewAllRecords.setBackground(new java.awt.Color(255, 102, 102)); + panelViewAllRecords.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelViewAllRecords.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnViewAllRecords.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnViewAllRecords.setForeground(new java.awt.Color(255, 255, 255)); + btnViewAllRecords.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/view all record.png"))); // NOI18N + btnViewAllRecords.setText(" View All Records"); + btnViewAllRecords.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnViewAllRecordsMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnViewAllRecordsMouseExited(evt); + } + }); + panelViewAllRecords.add(btnViewAllRecords, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 310, 50)); + + panelSideBar.add(panelViewAllRecords, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 310, 320, 50)); + + panelBack.setBackground(new java.awt.Color(255, 102, 102)); + panelBack.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelBack.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnBack.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnBack.setForeground(new java.awt.Color(255, 255, 255)); + btnBack.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/left-arrow.png"))); // NOI18N + btnBack.setText(" Back"); + btnBack.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnBackMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnBackMouseExited(evt); + } + }); + panelBack.add(btnBack, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, -10, 260, -1)); + + panelSideBar.add(panelBack, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 380, 320, 50)); + + panelLogOut.setBackground(new java.awt.Color(255, 102, 102)); + panelLogOut.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelLogOut.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseEntered(java.awt.event.MouseEvent evt) { + panelLogOutMouseEntered(evt); + } + }); + panelLogOut.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnLogOut.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnLogOut.setForeground(new java.awt.Color(255, 255, 255)); + btnLogOut.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/logout.png"))); // NOI18N + btnLogOut.setText(" Logout"); + btnLogOut.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnLogOutMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnLogOutMouseExited(evt); + } + }); + panelLogOut.add(btnLogOut, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, -10, 260, -1)); + + panelSideBar.add(panelLogOut, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 450, 320, 50)); + + panelPrint.setBackground(new java.awt.Color(255, 102, 102)); + panelPrint.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + panelPrint.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + btnPrint.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + btnPrint.setForeground(new java.awt.Color(255, 255, 255)); + btnPrint.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/printer-.png"))); // NOI18N + btnPrint.setText(" Print"); + btnPrint.addMouseListener(new java.awt.event.MouseAdapter() { + public void mouseClicked(java.awt.event.MouseEvent evt) { + btnPrintMouseClicked(evt); + } + public void mouseEntered(java.awt.event.MouseEvent evt) { + btnPrintMouseEntered(evt); + } + public void mouseExited(java.awt.event.MouseEvent evt) { + btnPrintMouseExited(evt); + } + }); + panelPrint.add(btnPrint, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 260, 50)); + + panelSideBar.add(panelPrint, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 510, 320, 50)); + + getContentPane().add(panelSideBar, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 430, 1090)); + + panelPrintReceipt.setBackground(new java.awt.Color(255, 255, 255)); + panelPrintReceipt.setPreferredSize(new java.awt.Dimension(1200, 860)); + panelPrintReceipt.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); + + jLabel1.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N + jLabel1.setForeground(new java.awt.Color(0, 137, 181)); + jLabel1.setText("Pur Road, Pratap Nagar, Bhilwara, Rajasthan 311001"); + panelPrintReceipt.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(380, 90, -1, -1)); + + jLabel2.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N + jLabel2.setForeground(new java.awt.Color(0, 137, 181)); + jLabel2.setText("Manikya Lal Verma"); + panelPrintReceipt.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 10, -1, -1)); + + jLabel3.setFont(new java.awt.Font("Times New Roman", 1, 36)); // NOI18N + jLabel3.setForeground(new java.awt.Color(0, 137, 181)); + jLabel3.setText("Textile & Engineering College "); + panelPrintReceipt.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 40, -1, -1)); + + jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/fees_managment_syatem/icon/mlv_logo (1).jpg"))); // NOI18N + panelPrintReceipt.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 10, 100, 90)); + + jLabel4.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + jLabel4.setText("Receipt No : MLV- "); + panelPrintReceipt.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 130, -1, -1)); + + jLabel6.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + jLabel6.setText("Payment Mode : "); + panelPrintReceipt.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 160, -1, -1)); + + txtChequeDD.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + txtChequeDD.setText("cheque_dd :"); + panelPrintReceipt.add(txtChequeDD, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 190, -1, -1)); + + txtBankName.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + txtBankName.setText("Bank Name : "); + panelPrintReceipt.add(txtBankName, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 220, -1, -1)); + + jLabel10.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + jLabel10.setText("Received From : "); + panelPrintReceipt.add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 250, -1, -1)); + + jLabel11.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + jLabel11.setText("The following payment int the college office for the year : "); + panelPrintReceipt.add(jLabel11, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 280, -1, -1)); + + jLabel12.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + jLabel12.setText("Date : "); + panelPrintReceipt.add(jLabel12, new org.netbeans.lib.awtextra.AbsoluteConstraints(610, 130, -1, -1)); + + jLabel13.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + jLabel13.setText("GSTIN : "); + panelPrintReceipt.add(jLabel13, new org.netbeans.lib.awtextra.AbsoluteConstraints(610, 160, -1, -1)); + + jSeparator2.setBackground(new java.awt.Color(0, 0, 0)); + jSeparator2.setForeground(new java.awt.Color(0, 0, 0)); + panelPrintReceipt.add(jSeparator2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 327, 720, -1)); + + jSeparator3.setForeground(new java.awt.Color(0, 0, 0)); + panelPrintReceipt.add(jSeparator3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 350, 720, 10)); + + jLabel14.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + jLabel14.setText("Sr No"); + panelPrintReceipt.add(jLabel14, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 330, -1, -1)); + + jLabel15.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + jLabel15.setText("Heads"); + panelPrintReceipt.add(jLabel15, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 330, -1, -1)); + + jLabel16.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + jLabel16.setText("Amounts(Rs)"); + panelPrintReceipt.add(jLabel16, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 330, -1, -1)); + + lblReceiptNo.setText("jLabel17"); + panelPrintReceipt.add(lblReceiptNo, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 130, 140, -1)); + + lblPaymentMode.setText("jLabel18"); + panelPrintReceipt.add(lblPaymentMode, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 160, 140, -1)); + + lblChequeDD.setText("jLabel20"); + panelPrintReceipt.add(lblChequeDD, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 190, 140, -1)); + + lblBankName.setText("jLabel21"); + panelPrintReceipt.add(lblBankName, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 220, 140, -1)); + + lblReceivedFrom.setText("jLabel22"); + panelPrintReceipt.add(lblReceivedFrom, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 250, 140, -1)); + + lblYear1.setText("jLabel23"); + panelPrintReceipt.add(lblYear1, new org.netbeans.lib.awtextra.AbsoluteConstraints(350, 280, 50, -1)); + + jLabel24.setText("-"); + panelPrintReceipt.add(jLabel24, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 280, 10, -1)); + + lblYear2.setText("jLabel25"); + panelPrintReceipt.add(lblYear2, new org.netbeans.lib.awtextra.AbsoluteConstraints(420, 280, 60, -1)); + + lblDate.setText("jLabel26"); + panelPrintReceipt.add(lblDate, new org.netbeans.lib.awtextra.AbsoluteConstraints(660, 130, 110, -1)); + + lblGSTIN.setText("jLabel27"); + panelPrintReceipt.add(lblGSTIN, new org.netbeans.lib.awtextra.AbsoluteConstraints(660, 160, 90, -1)); + + jLabel19.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + jLabel19.setText("1."); + panelPrintReceipt.add(jLabel19, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 370, -1, -1)); + + lblCourseName.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + lblCourseName.setText(" jLabel28"); + panelPrintReceipt.add(lblCourseName, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 360, 200, -1)); + + jLabel29.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + jLabel29.setText("CGST 9%"); + panelPrintReceipt.add(jLabel29, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 390, -1, -1)); + + jLabel30.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + jLabel30.setText("SGST 9%"); + panelPrintReceipt.add(jLabel30, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 420, -1, -1)); + + lblInitialAmount.setText("jLabel31"); + panelPrintReceipt.add(lblInitialAmount, new org.netbeans.lib.awtextra.AbsoluteConstraints(590, 360, -1, -1)); + + lblCGST.setText("jLabel32"); + panelPrintReceipt.add(lblCGST, new org.netbeans.lib.awtextra.AbsoluteConstraints(590, 390, -1, 20)); + + lblSGST.setText("jLabel33"); + panelPrintReceipt.add(lblSGST, new org.netbeans.lib.awtextra.AbsoluteConstraints(590, 420, -1, -1)); + + jSeparator4.setForeground(new java.awt.Color(0, 0, 0)); + panelPrintReceipt.add(jSeparator4, new org.netbeans.lib.awtextra.AbsoluteConstraints(520, 450, 190, 10)); + + lblTotal.setText("jLabel34"); + panelPrintReceipt.add(lblTotal, new org.netbeans.lib.awtextra.AbsoluteConstraints(590, 460, -1, -1)); + + jLabel7.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + jLabel7.setText("Total In Words : "); + panelPrintReceipt.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 520, -1, -1)); + + lblTotalInWords.setText("jLabel35"); + panelPrintReceipt.add(lblTotalInWords, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 520, -1, -1)); + + jSeparator5.setForeground(new java.awt.Color(0, 0, 0)); + panelPrintReceipt.add(jSeparator5, new org.netbeans.lib.awtextra.AbsoluteConstraints(520, 550, 200, 10)); + + jLabel36.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N + jLabel36.setText("Receiver Signature"); + panelPrintReceipt.add(jLabel36, new org.netbeans.lib.awtextra.AbsoluteConstraints(560, 560, -1, -1)); + + jTextField2.setBackground(new java.awt.Color(0, 137, 181)); + panelPrintReceipt.add(jTextField2, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 110, 810, 10)); + + getContentPane().add(panelPrintReceipt, new org.netbeans.lib.awtextra.AbsoluteConstraints(450, 40, 810, 590)); + + jLabel17.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N + jLabel17.setForeground(new java.awt.Color(0, 137, 181)); + jLabel17.setText("PRINT RECEIPT"); + getContentPane().add(jLabel17, new org.netbeans.lib.awtextra.AbsoluteConstraints(820, 10, 110, 20)); + + jTextField1.setBackground(new java.awt.Color(0, 137, 181)); + jTextField1.setForeground(new java.awt.Color(0, 137, 181)); + getContentPane().add(jTextField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(800, 30, 140, 5)); + + pack(); + setLocationRelativeTo(null); + }// </editor-fold>//GEN-END:initComponents + + private void btnEditMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnEditMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelEdit.setBackground(clr); + }//GEN-LAST:event_btnEditMouseEntered + + private void btnEditMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnEditMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelEdit.setBackground(clr); + }//GEN-LAST:event_btnEditMouseExited + + private void btnHomeMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnHomeMouseEntered + Color clr=new Color(255,204,204); + panelHome.setBackground(clr); + }//GEN-LAST:event_btnHomeMouseEntered + + private void btnHomeMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnHomeMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelHome.setBackground(clr); + }//GEN-LAST:event_btnHomeMouseExited + + private void btnSearchRecordsMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnSearchRecordsMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelSearchRecords.setBackground(clr); + }//GEN-LAST:event_btnSearchRecordsMouseEntered + + private void btnSearchRecordsMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnSearchRecordsMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelSearchRecords.setBackground(clr); + }//GEN-LAST:event_btnSearchRecordsMouseExited + + private void btnEditCourseMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnEditCourseMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelEditCourse.setBackground(clr); + }//GEN-LAST:event_btnEditCourseMouseEntered + + private void btnEditCourseMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnEditCourseMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelEditCourse.setBackground(clr); + }//GEN-LAST:event_btnEditCourseMouseExited + + private void btnCourseListMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnCourseListMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelCourseList.setBackground(clr); + }//GEN-LAST:event_btnCourseListMouseEntered + + private void btnCourseListMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnCourseListMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelCourseList.setBackground(clr); + }//GEN-LAST:event_btnCourseListMouseExited + + private void btnViewAllRecordsMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnViewAllRecordsMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelViewAllRecords.setBackground(clr); + }//GEN-LAST:event_btnViewAllRecordsMouseEntered + + private void btnViewAllRecordsMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnViewAllRecordsMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelViewAllRecords.setBackground(clr); + }//GEN-LAST:event_btnViewAllRecordsMouseExited + + private void btnBackMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnBackMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelBack.setBackground(clr); + }//GEN-LAST:event_btnBackMouseEntered + + private void btnBackMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnBackMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelBack.setBackground(clr); + }//GEN-LAST:event_btnBackMouseExited + + private void btnLogOutMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnLogOutMouseEntered + + Color clr=new Color(255,204,204); + panelLogOut.setBackground(clr); + }//GEN-LAST:event_btnLogOutMouseEntered + + private void btnLogOutMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnLogOutMouseExited + + Color clr=new Color(255,102,102); + panelLogOut.setBackground(clr); + }//GEN-LAST:event_btnLogOutMouseExited + + private void btnPrintMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnPrintMouseEntered + // TODO add your handling code here: + Color clr=new Color(255,204,204); + panelPrint.setBackground(clr); + }//GEN-LAST:event_btnPrintMouseEntered + + private void btnPrintMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnPrintMouseExited + // TODO add your handling code here: + Color clr=new Color(255,102,102); + panelPrint.setBackground(clr); + }//GEN-LAST:event_btnPrintMouseExited + + private void btnPrintMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnPrintMouseClicked + // TODO add your handling code here: + PrinterJob job=PrinterJob.getPrinterJob(); + job.setJobName("Print Data"); + job.setPrintable(new Printable(){ + public int print(Graphics pg,PageFormat pf, int pageNum){ + pf.setOrientation(PageFormat.LANDSCAPE); + if(pageNum>0){ + return Printable.NO_SUCH_PAGE; + } + Graphics2D g2=(Graphics2D)pg; + g2.translate(pf.getImageableX(),pf.getImageableY()); + g2.scale(0.47, 0.47); + panelPrintReceipt.print(g2); + return Printable.PAGE_EXISTS; + } + }); + boolean ok = job.printDialog(); + + if (ok) { + try { + job.print(); + } catch (PrinterException ex) { + ex.printStackTrace(); + } + } + }//GEN-LAST:event_btnPrintMouseClicked + + private void panelLogOutMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_panelLogOutMouseEntered + // TODO add your handling code here: + + }//GEN-LAST:event_panelLogOutMouseEntered + + private void btnEditMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnEditMouseClicked + // TODO add your handling code here: + UpdateFeesDetails update=new UpdateFeesDetails(); + update.setVisible(true); + this.dispose(); + }//GEN-LAST:event_btnEditMouseClicked + + /** + * @param args the command line arguments + */ + public static void main(String args[]) { + /* Set the Nimbus look and feel */ + //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> + /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. + * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html + */ + try { + for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { + if ("Nimbus".equals(info.getName())) { + javax.swing.UIManager.setLookAndFeel(info.getClassName()); + break; + } + } + } catch (ClassNotFoundException ex) { + java.util.logging.Logger.getLogger(printReceipt.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (InstantiationException ex) { + java.util.logging.Logger.getLogger(printReceipt.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (IllegalAccessException ex) { + java.util.logging.Logger.getLogger(printReceipt.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (javax.swing.UnsupportedLookAndFeelException ex) { + java.util.logging.Logger.getLogger(printReceipt.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } + //</editor-fold> + + /* Create and display the form */ + java.awt.EventQueue.invokeLater(new Runnable() { + public void run() { + new printReceipt().setVisible(true); + } + }); + } + + // Variables declaration - do not modify//GEN-BEGIN:variables + private javax.swing.JLabel btnBack; + private javax.swing.JLabel btnCourseList; + private javax.swing.JLabel btnEdit; + private javax.swing.JLabel btnEditCourse; + private javax.swing.JLabel btnHome; + private javax.swing.JLabel btnLogOut; + private javax.swing.JLabel btnPrint; + private javax.swing.JLabel btnSearchRecords; + private javax.swing.JLabel btnViewAllRecords; + private javax.swing.JLabel jLabel1; + private javax.swing.JLabel jLabel10; + private javax.swing.JLabel jLabel11; + private javax.swing.JLabel jLabel12; + private javax.swing.JLabel jLabel13; + private javax.swing.JLabel jLabel14; + private javax.swing.JLabel jLabel15; + private javax.swing.JLabel jLabel16; + private javax.swing.JLabel jLabel17; + private javax.swing.JLabel jLabel19; + private javax.swing.JLabel jLabel2; + private javax.swing.JLabel jLabel24; + private javax.swing.JLabel jLabel29; + private javax.swing.JLabel jLabel3; + private javax.swing.JLabel jLabel30; + private javax.swing.JLabel jLabel36; + private javax.swing.JLabel jLabel4; + private javax.swing.JLabel jLabel5; + private javax.swing.JLabel jLabel6; + private javax.swing.JLabel jLabel7; + private javax.swing.JSeparator jSeparator2; + private javax.swing.JSeparator jSeparator3; + private javax.swing.JSeparator jSeparator4; + private javax.swing.JSeparator jSeparator5; + private javax.swing.JTextField jTextField1; + private javax.swing.JTextField jTextField2; + private javax.swing.JLabel lblBankName; + private javax.swing.JLabel lblCGST; + private javax.swing.JLabel lblChequeDD; + private javax.swing.JLabel lblCourseName; + private javax.swing.JLabel lblDate; + private javax.swing.JLabel lblGSTIN; + private javax.swing.JLabel lblInitialAmount; + private javax.swing.JLabel lblPaymentMode; + private javax.swing.JLabel lblReceiptNo; + private javax.swing.JLabel lblReceivedFrom; + private javax.swing.JLabel lblSGST; + private javax.swing.JLabel lblTotal; + private javax.swing.JLabel lblTotalInWords; + private javax.swing.JLabel lblYear1; + private javax.swing.JLabel lblYear2; + private javax.swing.JPanel panelBack; + private javax.swing.JPanel panelCourseList; + private javax.swing.JPanel panelEdit; + private javax.swing.JPanel panelEditCourse; + private javax.swing.JPanel panelHome; + private javax.swing.JPanel panelLogOut; + private javax.swing.JPanel panelPrint; + private javax.swing.JPanel panelPrintReceipt; + private javax.swing.JPanel panelSearchRecords; + private javax.swing.JPanel panelSideBar; + private javax.swing.JPanel panelViewAllRecords; + private javax.swing.JLabel txtBankName; + private javax.swing.JLabel txtChequeDD; + // End of variables declaration//GEN-END:variables +}