This application provides a simple user interface to generate, display, and manage QR codes based on user input.
- Generate QR codes from URLs.
- Display generated QR codes within the application.
- Store QR codes in a database for later retrieval.
- Manage (add/delete) QR codes through a user interface.
- Copy or save QR codes as image files.
- Right-click context menu for image operations (copy, save).
The project is organized into three main packages:
org.GeRmAnImAl.model
: Contains theQRCode
class representing a QR code with associated URL.org.GeRmAnImAl.view
: Contains theQRGeneratorUI
class for user interface and QR code generation.org.GeRmAnImAl.repository
: Contains theDatabaseManager
andQRCodeDAO
classes for database interaction.org.GeRmAnImAl.service
: Contains theImageSelection
andQRGenerator
classes for image handling and QR code generation services.
- Run the
QRGeneratorUI
class to launch the application. - Enter a URL in the provided text field.
- Click "Generate QR Code" to generate a QR code for the entered URL.
- The generated QR code will appear below the text field.
- Existing QR codes are listed at the bottom of the window. Select one to display it.
- Use the right-click context menu on the QR code image to copy or save the image.
This project can be built into a JAR file using IntelliJ IDEA as follows:
- Open the project in IntelliJ IDEA.
- Go to
File
->Project Structure
. - Select
Artifacts
from the left-hand menu. - Click the
+
button, chooseJAR
->From modules with dependencies
. - Select the module and the main class (
QRGeneratorUI
). - Apply the changes and click
OK
. - Build the project by going to
Build
->Build Artifacts
->Build
.
- ZXing library for QR code generation.
- SQLite for database management.
- Swing for the user interface.
- Ensure that the necessary libraries are included in the project classpath before building and running the application.
- The database file is created automatically if it doesn't exist.
(TODO: Add screenshots of the application in action.)
For more information or assistance, feel free to contact the developers.