0

Please help me how to go from window (login and password to the program)?

8th Jun 2018, 10:39 PM
fatima
16 Answers
+ 1
thank you very much
8th Jun 2018, 11:08 PM
fatima
+ 1
if i am working on a project without database just i can use files my question is that if i want to ask the user to enter a name and i want to save this name so each time i will save the each name in a file ?
8th Jun 2018, 11:41 PM
fatima
+ 1
Yeah, you are right. We can either store the info in database or in a file.
8th Jun 2018, 11:47 PM
Sachin Artani
Sachin Artani - avatar
+ 1
you mean that is a right way each name in a file ?
8th Jun 2018, 11:55 PM
fatima
+ 1
thank you šŸŒ·
9th Jun 2018, 9:16 AM
fatima
0
Could you please explain a bit more?
8th Jun 2018, 10:48 PM
Sachin Artani
Sachin Artani - avatar
0
i am making a program that take names of student i want to make a login window by the window builder in java and i want when the user enter the password correctly then the register widow will open
8th Jun 2018, 10:53 PM
fatima
0
Oh, so where is the issue you are facing in?
8th Jun 2018, 10:54 PM
Sachin Artani
Sachin Artani - avatar
0
Why the register window open when the user login from login window?
8th Jun 2018, 10:55 PM
Sachin Artani
Sachin Artani - avatar
0
how to relate login window by the register
8th Jun 2018, 10:56 PM
fatima
0
First tell me, Are you using Java Swing?
8th Jun 2018, 10:56 PM
Sachin Artani
Sachin Artani - avatar
0
yes
8th Jun 2018, 10:56 PM
fatima
0
Great. I think you should begin with a form with 2 buttons- login and register.
8th Jun 2018, 10:59 PM
Sachin Artani
Sachin Artani - avatar
0
Then link the login button with login form and register button with register form. When the user login with right username and password. He/she should be redirected to another page. When the user registers, he/she should ne redirected to login page.
8th Jun 2018, 11:01 PM
Sachin Artani
Sachin Artani - avatar
0
I hope it helps
8th Jun 2018, 11:27 PM
Sachin Artani
Sachin Artani - avatar
0
if you want to store the credentials then yes, file.
9th Jun 2018, 2:25 AM
Sachin Artani
Sachin Artani - avatar