please how do i create a login page using gui in java?And also how do i make the login page move to the next java page when the password is correct?

Recommended Answers

All 2 Replies

how do i also put a picture on the login page in java?

  1. Create frame with some labels, text fields, submit button and add what ever image you wish
  2. On submit button run validation if any data entered at all, if they fulfil criteria set for each entry (minimum and maximum length, use of allowed/forbidden characters, case sensitivity etc.)
    • If any fails display error message
    • If all OK, proceed with following steps
  3. Run SQL query to check if user exists and if given password is correct
    • If incorrect display error message and get back to loging frame/screen
    • If username and password match with DB entries proceed with following
  4. Show next frame with what ever information should follow
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.