HI I am gettin this error Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException when inputting the wrong username or password it works perfect when the username and password are correct but does this if they are wrong
@dkpelect
7 ай бұрын
Exactly what I was looking for ! Thanks
@limlw1068
3 жыл бұрын
Sir, it always shows this error Exception in thread "AWT-EventQueue-0" java.lang.StringIndexOutOfBoundsException: String index out of range: -9 Even if I added for(int k=1;k
@Trexor6940
3 жыл бұрын
On the checkData function why do I kept on getting wrong user/passwword even though it has the right username and password
@dewesh3312
5 жыл бұрын
😍 thanks sir . Your video is easily to understood by another youtube video. I wait More video upload
@rapidclicks2809
5 жыл бұрын
Stay tuned we will upload more soon... :)
@edgarcalochcampos1930
4 жыл бұрын
could you tell me what is that another video, please?
@rapidclicks2809
4 жыл бұрын
@@edgarcalochcampos1930 if you could suggest one :) ... I'll try
@s.meiespina4954
6 ай бұрын
can i ask what code do i put to reject "register" button when the user does not input anything to the fields?
@catdragon2096
3 жыл бұрын
thanks your video because have your video I known about "substring" . Hope you can produce more videos. Best of good luck. Thank you again
@roro1999aa
3 жыл бұрын
can I know why you use RandomAccessFile instead of BufferedWrite?
@maybemariajannel
2 жыл бұрын
Hello sir! can we also use this without the jframe?
@GhosTzinnX
Жыл бұрын
mermão, muito complexo, mas me ajudou em algumas partes, parabéns pelo trabalho! Congratulations for your job!
@Areejmub
2 жыл бұрын
The rw in add data what is it for ? Or who?
@edgarcalochcampos1930
4 жыл бұрын
Hi! Idk if you can help me out, i have a doubt about the line you wrote in min 25:02 (the for). What is it used for, and should i write it too if i'm just receiving user and password?
@rapidclicks2809
4 жыл бұрын
@Edgar, as we are searching for the correct password for user that's why we need to check them only. And the rest of line should be ignored i.e email and the blank line. And if you are not giving any mail and blank lines after every user than you don't need to add that loop :)
@edgarcalochcampos1930
4 жыл бұрын
@@rapidclicks2809 cool, thank u so much!
@edgarcalochcampos1930
4 жыл бұрын
@@rapidclicks2809 Hey there, I'm sorry to bother you again but i've tried to look for info from everywhere and i haven´t found a solution to my problem yet ): ... Do you know if there´s a way to import data from a textfile (that has its data in different lines as in this video) to a jtable with 2 columns? I've seen some people using the method split but it's not that useful when you are trying to read from different lines... I would appreciate any help.
@rapidclicks2809
4 жыл бұрын
@@edgarcalochcampos1930 hey, I think above method(video) will do the trick to copy data to jtable columns like just assigning values... As you have to only jump to lines and substring the amount of string you need. ... IDK if this will help you.
@abdullahhani672
4 жыл бұрын
11:30 (add data) 19:55 (final)
@dharapatel5571
4 жыл бұрын
Thank You So Much..
@sameerulhaq4066
2 жыл бұрын
Sir if we add multi user like admin and user then how will we do if you can make video it will be helpful or tell me in comments where to edit it
@imadeddineterkmani9145
4 жыл бұрын
Thanks 🧡
@MorsHs
4 жыл бұрын
can you redo this? the more proceed without deleting unnecesarry things makes me confuse more ty
@mosesglitch3110
3 жыл бұрын
Thank you so much
@calisthenicsguy0518
3 жыл бұрын
Can you make, login form like that in console ???, Im new to programming and i just want to learn how to create Verifying login form with txt file in java
@aisha2991
4 жыл бұрын
Can anyone help me? Why mine have the "string index out of range: -9"? Error? I can't login and register I even copy the exact coding from the source code but even the Joption pane isn't showing. It keeps on saying AWT-EventQueue plus the -9 string.
@rapidclicks2809
4 жыл бұрын
Hey Aisha, At 24:45 , had same issue, it happens when FileReader try to access a non-existent line, it can be fixed by changing the iteration count according to txt data, check my reply on Melson's comment that'll help. :)
@limlw1068
3 жыл бұрын
Hello, have u solve the problem?it seems like Melson's comment doesn't exist. If you have solved the problem, can you please tell me?
@hanzayaim8412
Жыл бұрын
any solution for this?
@drinking522
4 жыл бұрын
sorry for asking again, if i want to show message dialog after data added where i should input this code?
@drinking522
4 жыл бұрын
and also if data not inserted
@rapidclicks2809
4 жыл бұрын
@@drinking522 at 10:07 below line 58, print 'added' and inside catch condition print 'failed'
@drinking522
4 жыл бұрын
@@rapidclicks2809 can you type the full code here
@drinking522
4 жыл бұрын
can you do a video of how you can view the data in textfile delete all this step by step again
@manishas4720
3 жыл бұрын
Is text file using indexing technique?
@louissueno4721
2 жыл бұрын
I've already done everything that was shown till this part 14:24 but I can't open the dialog message. Could anyone please answer this, I badly need the answer.
@louissueno4721
2 жыл бұрын
To be clear, I've already finished the whole code in this video but, the dialog message still can't seem to appear.
@dlovanwasmanhammad3943
4 жыл бұрын
i dont understand how count lines can you help my??
@rapidclicks2809
4 жыл бұрын
CountLine method just check if there is a new line, and increment the variable. Later we use that to skip the no. of lines to add new values, or to get an estimate to which how far we have to search for values(username/password). IDK if this is answer of your question
@jameszagada8963
4 жыл бұрын
My button for loggin in doesn't work with "logic". Adding the forloop will make the button useless (nothing happens). Is there any idea?
@rapidclicks2809
4 жыл бұрын
hey James, you might misplaced function calls, if haven't solved yet download the source code, link in the description.
@katlego5351
3 жыл бұрын
i am having the same problem even after downloading the source code
@limlw1068
3 жыл бұрын
@@katlego5351 Hello, I have the same problem as you, did u solve it? if yes, could u please tell me how to solve it?
@katlego5351
3 жыл бұрын
@@limlw1068 hi I think i watched a different video , it was last year so I don't remember sorry
@limlw1068
3 жыл бұрын
@@katlego5351 okay, thanks for the reply, still struggling with this problem......
@Ofeklevi71
4 жыл бұрын
How will I do the file f = new file (path) on mac
@rapidclicks2809
4 жыл бұрын
Use '/' instead, File f = new File("/Desktop/Java.txt");
@christopherliuwell81
2 жыл бұрын
Thanks A Lot 👍
@karuchiu
2 жыл бұрын
I lost it at the countLine() method.. can you help?
@drinking522
4 жыл бұрын
can i know what shud i type for the login button if after password is match i want to go to next frame
@rapidclicks2809
4 жыл бұрын
Inside if statement, after "password matched" line (LOC=103) call another frame. i.e, jframe2.setvisible()=true;
@drinking522
4 жыл бұрын
@@rapidclicks2809 isit like this ?? for example the frame i want is register.java register r = new r(); r.setVisible()=true;
@drinking522
4 жыл бұрын
@@rapidclicks2809 for example my frame call register.java so i type there after password matched line before break; line register.setVisible(true); like this?
@rapidclicks2809
4 жыл бұрын
@@drinking522 , It should be like this- JFrame f = new JFrame(); f.setSize(500,500); f.setVisible(true);
@vithusas4024
4 жыл бұрын
Can you do login/register but using json File?
@rapidclicks2809
4 жыл бұрын
Yes, and it will be easy and shorter than this video :)
@woonjielai2163
4 жыл бұрын
can u teach how to modify the value? for example,if i want to reset the password,pls reply as soon as possible,thx
@rapidclicks2809
4 жыл бұрын
Hey, value of txt files can only be edited by creating a temporary txt (using fileWriter). 1) create a new temp txt with file writer 2) copy all data (skipping the one to be modified) 3) add the modified user data at the end. 4) write the temp data in original txt and delete temp. This technique is too bad if data scale is large. So JSON format is used and is quite simple to do such operations, I have a video about it, that'll help
@yq5687
4 жыл бұрын
can do the same video using eclipse ? i thought a bit different when i run it
@rapidclicks2809
4 жыл бұрын
@Y Q, use of JFrame will only be changed and the rest of the things remain same, you just need to bind the function call to their jFrame elements :)
@yq5687
4 жыл бұрын
@@rapidclicks2809 alright thx ^ ^
@lornaaban389
4 жыл бұрын
THANK YOU VERY MUCH :)) Ill ask a thing. Is it possible to add a delete username and password function?? If yes how?? Can you help me out :(( much appreciated!!! Ive Already subscribed!!
@rapidclicks2809
4 жыл бұрын
Hey @Lorna Aban, Java handles txt files as stream, that only write and/or replace existed. *you cannot delete any character (In my knowledge) - you can write a blank space at that line Or just create a new temporary file and paste all data and copy rest of needed things to original file (most people prefer this).
@lornaaban389
4 жыл бұрын
@@rapidclicks2809 Thanks! I currently studying the method which includes temp files :)) thank you
@mdraiyanalam5612
4 жыл бұрын
it would be better if you lead the source code..
@skysorcerer
3 жыл бұрын
Probably that would be easier to crack since you literally just have to open the text file and then all of the login credentials are there.
@foca2002
2 жыл бұрын
Not to be used in a production environment. But if you use some kind of hash and salt is as secure as Linux or windows.
@christianwkm
4 жыл бұрын
Hello, the source code in the description isn't working. Can you upload it on pastebin?
@rapidclicks2809
4 жыл бұрын
Isn't working? What does it say?
@christianwkm
4 жыл бұрын
@@rapidclicks2809 the file contains classes only. It doesn't contain the .java code
@rapidclicks2809
4 жыл бұрын
Re-uploaded!
@christianwkm
4 жыл бұрын
@@rapidclicks2809 thank you sooo much
@exposureexp7850
Жыл бұрын
if i choose a combo box then how would I save in text files, as you used *tfusr.setText("");* so how would I do for combobox? *tfcombobox.setcombo("")? @RAPIDCLICKS
@stephaniehartlauronbonganc6513
3 жыл бұрын
good day sir, I tried to follow your tutorial however I always get a problem on the logic it always show this "AWT-EventQueue-0" java.lang.StringIndexOutOfBoundsException: String index out of range: -3
@rapidclicks2809
3 жыл бұрын
It happens if number of lines in single batch changed, I have added explanation in the video description, that might help.
Пікірлер: 84