GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - awcasella/Simple-Login-Java-MySQL: Pop up of a small login window which uses Hibernate to connect to a local mysql database to see if the login can be concluded or not.

BranchesTags
Open more actions menu

Latest commit

 

History

16 Commits
16 Commits

Folders and files

NameName
Last commit message
Last commit date
build/classes
build/classes
 
 
lib
lib
 
 
nbproject
nbproject
 
 
src
src
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
Screenshot.png
Screenshot.png
 
 
ScreenshotXAMPP.png
ScreenshotXAMPP.png
 
 
Screenshotjdoe.png
Screenshotjdoe.png
 
 
build.xml
build.xml
 
 
manifest.mf
manifest.mf
 
 

Repository files navigation

Simple Login App With Java and MySQL

A Java MySQL app which pops up of a small login window. This window connects to a local mysql database to see if the login can be concluded or not.

About this Project

This project's goal is to create a simple login app on which the user can enter the username and password and click login buttom. If username and password are in the database, then a message dialog will pop up and yell the success; else, another message dialog will pop yelling the failure.

Getting Started

Prerequisites

To run this project, you'll need to have a basic environment to run a Java, MySQL App.

Installing

Cloning the Repository

$ git clone https://github.com/awcasella/Simple-Login-Java-MySQL.git

$ cd Simple-Login-Java-MySQL

Installation of XAMPP for MySQL and Java

  • XAMPP installation tutorial can be found in here.

Java Installation

$ sudo apt install default-jre

$ sudo apt install default-jdk

Run project Open XAMPP and start MySQL Database and Apache Web Server.

After that, open the terminal and start MySQL

$ mysql -u root -p

Configure local database to be connected by our app:

> create database if not exists login;

> create table if not exists login(
username VARCHAR(15) PRIMARY KEY,
password VARCHAR(15) NOT NULL,
email VARCHAR(25) NOT NULL,
fname VARCHAR(15) NOT NULL,
lname VARCHAR(15) NOT NULL,
);

> insert into login values ('jdoe', '2020', '[email protected]', 'John', 'Doe');

Note: It is imperative to create a table named 'login' with the columns named 'username, password, email, fname, lname'. Otherwise, either the program will throw an exception or you'll have to change the code lines to make it compatible with the database.

Open NetBeans (or other IDE) and run the project. Make sure the file MySQLTest.java is the main file of the project.

Built With

  • NetBeans: Fits the pieces together.

  • MySQL: The world's most popular open source database.

  • XAMPP: Installers and Downloaders for Apache Friends.

References

  • Interfaces gráficas com Swing. Caelum. Available at: https://www.caelum.com.br/apostila-java-testes-xml-design-patterns/interfaces-graficas-com-swing/. Access on January, 2020.

  • Java Swing: Conheça os componentes JTextField e JFormattedTextField. DevMedia. Available at: https://www.devmedia.com.br/java-swing-conheca-os-componentes-jtextfield-e-jformattedtextfield/30981. Access on January, 2020.

About

Pop up of a small login window which uses Hibernate to connect to a local mysql database to see if the login can be concluded or not.

Topics

javajava-login-pagejava-mysqllogin-formsmysqlmysql-database

Resources

Readme
MIT license
Activity

Stars

6 stars

Watchers

1 watching

Forks

10 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.