Fix Project GUI Visibility and Improve Maintainability - #7
Open
unknownhero88 wants to merge 11 commits into
Open
Fix Project GUI Visibility and Improve Maintainability#7unknownhero88 wants to merge 11 commits into
unknownhero88 wants to merge 11 commits into
Conversation
Add common files and directories to .gitignore for Java projects.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Improve Security, Validation, Error Handling, and UI Consistency Across the Electricity Billing System
Summary
This PR introduces multiple improvements across the Electricity Billing System, focusing on security, input validation, database interaction, error handling, resource management, and UI consistency.
Files Updated
login.javanew_customer.javacalculate_bill.javagenerate_bill.javaLastBill.javasplash.javaSecurity Improvements
Replaced SQL String Concatenation with PreparedStatement
Updated database operations to use
PreparedStatementinstead of dynamic SQL queries.Affected Modules
login.javanew_customer.javacalculate_bill.javagenerate_bill.javaLastBill.javaBenefits
Input Validation Improvements
Customer Creation
Added validation for:
Bill Calculation
Added validation for:
Login
Improved authentication flow and credential handling.
Database Handling Improvements
Bill Generation
PreparedStatement.Last Bill
PreparedStatement.User Experience Improvements
Login Module
JPasswordField#getPassword().Customer Creation
Bill Modules
Last Bill
UI Improvements
Image Rendering
Replaced:
with:
to improve image quality across multiple modules.
Window Management
Added:
for child windows and dialogs.
Added:
for startup windows.
Splash Screen Improvements
Resource Management
SPLASH_DURATION) for splash duration.Benefits
Error Handling Improvements
Replaced silent failures and console-only exception handling with user-friendly dialogs using
JOptionPane.Benefits
Testing Performed
Login
Customer Creation
Bill Calculation
Bill Generation
Last Bill
Splash Screen
Benefits
Type of Change