This Java application provides a GUI interface for connecting to Oracle databases using Swing for the user interface and JDBC for database connectivity. The project demonstrates core Java programming concepts including object-oriented design, exception handling, and database operations.
- Create a user-friendly interface for database connections
- Implement secure authentication mechanisms
- Display database metadata upon successful connection
- Serve as a learning tool for Java GUI and database programming
- Core Language: Java 8+
- GUI Framework: Java Swing
- Database Connectivity: JDBC with Oracle Thin Driver
- Build Tool: Maven (optional)
- IDE: IntelliJ IDEA or Eclipse
The application follows a simple MVC pattern:
- Model: DatabaseConnector.java handles all database operations
- View: Swing components for user interface
- Controller: Main class coordinates between view and model
- Java 8 or later installed (check with
java -version) - Oracle JDBC driver (ojdbc8.jar) in your classpath
- Clone this repository
- Add ojdbc8.jar to your project's build path
- The application connects to:
jdbc:oracle:thin:@artemis.vsnet.gmu.edu:1521/vse18c.vsnet.gmu.edu
- Compile all Java files
- Run the Main class
- Enter your database credentials when prompted
This project was developed as part of learning Java GUI programming and database connectivity. Key milestones included:
- Designing the Swing interface
- Implementing JDBC connection logic
- Adding error handling for failed connections
- Displaying database metadata
Future enhancements could include:
- Query execution interface
- Result set visualization
- Connection pooling
- Multi-database support
- Launch the application
- Enter valid database credentials
- Click "Connect" to establish connection
- Successful connection displays database metadata including:
- Database product name and version
- Driver information
- Available schemas
- Failed connections show appropriate error messages
This project is available under the MIT License.