HirdayaShrestha1/java_mysql_basic — reverse-engineered prompt
Reverse engineered prompt
Build me a simple desktop login and user profile app in Java with a clean Swing interface and MySQL behind it.
I want people to be able to register with a unique username, full name, password, and optional address, then sign in later. After login they should see a home screen with a welcome message and options to view their details, edit their profile, or log out. The edit screen should let them update their full name and address and save it back to the database.
Make the UI feel modern for a basic desktop app, with rounded buttons, nice colors, hover or focus feedback, password hiding and showing, and smooth navigation between the sign in, sign up, home, view details, and edit details screens. Use safe database queries so usernames are checked properly and SQL injection is avoided.
Also include the MySQL table setup and simple instructions to compile and run it manually with the JDBC connector.
Want more depth? Deep Reverse