Java prog#22. Using Up/Down Arrow Key to Move in a jtable and get the Data in jtextfield netbeans
Vložit
- čas přidán 11. 05. 2012
- -----------------Online Courses to learn---------------------------
Java - bit.ly/2H6wqXk
C++ - bit.ly/2q8VWl1
AngularJS - bit.ly/2qebsLu
Python - bit.ly/2Eq0VSt
C- bit.ly/2HfZ6L8
Android - bit.ly/2qaRSAS
Linux - bit.ly/2IwOuqz
AWS Certified Solutions Architect - bit.ly/2JrGoAF
Modern React with Redux - bit.ly/2H6wDtA
MySQL - bit.ly/2qcF63Z
---------------------Follow--------------------------------------------
My Website - www.codebind.com
My Blog - goo.gl/Nd2pFn
My Facebook Page - goo.gl/eLp2cQ
Google+ - goo.gl/lvC5FX
Twitter - / programmingknow
Pinterest - goo.gl/kCInUp
Text Case Converter - goo.gl/pVpcwL
------------------------Stuff I use to make videos ------------------
Stuff I use to make videos
Windows notebook - amzn.to/2zcXPyF
Apple MacBook Pro - amzn.to/2BTJBZ7
Ubuntu notebook - amzn.to/2GE4giY
Desktop - amzn.to/2zct252
Microphone - amzn.to/2zcYbW1
notebook mouse - amzn.to/2BVs4Q3
-----------------Facebook Links ---------------------------------------
ProgrammingKnowledgeLear...
AndroidTutorialsForBegin...
Programmingknowledge
CppProgrammingLanguage
JavaTutorialsAndCode
SQLiteTutorial
UbuntuLinuxTutorials
EasyOnlineConverter
Using Up/Down Arrow Key to Move in a jtable and get the Data in jtextfield java netbeans
netbeans java tutorial
how to use Up or Down Arrow key in JTable to scroll rows netbeans
how to map TAB key in JTable like the DOWN-ARROW key?
jtable detect down arrow netbeans
jQuery Help with arrow key navigation
moving the focus up/down using up/down arrow key in jtable
use the keyReleased method it solve the prob..
Thanks men. :)
Ok there is a problem.. here.. instead of putting both the conditions for UP and Down key in one if.. statement we shud separate the both .. into two if blocks.. and for the DOWN key .. increment int row by 1 and UP key decrement row by one .
That should solve the up down display problem ..
And this is a great thing.. you are doing. ! :) Its done some maaaajor help for me !
Excellent project.
thanks a lot. it really helped me. Simply Awesome.
see this video for correction Java prog#72. CORRECTION in Video 22.Using Up/Down Arrow Key to Move in a jtable
Thanks a great deal for your kind concern. Keep up the good work.
Sir do you have a blog ? :)
Sir how to fill combobox from jtable please reply sir you can solve my problem
There is a bug..if u use only key pressed event den its not showing the proper result ..so to fix this bug u can just simply copy the keypressed's code and paste in the keyReleased event.
Thanks for the video. I have a problem: "cannot find symbol: KeyEvent". Have you any idea about what can be wrong?
Nice job but you have an error when you click up or down the ligne selected not the same data in the other fields
I notice the same bug .the highlighted row do not match the record in the text fields.
How can i resolve the problem?
Thank you sir , but a the issue is that , when i select a particular row, the text field area show the row which is above that particular row , :O
Any way thanks for the great video :)
Abhinav is right, and ...
you can use ternary operator , this works:
int row = Table_Employee.getSelectedRow()+ ((evt.getKeyCode() == KeyEvent.VK_DOWN) ? 1 : -1 );
Hello sir sqlite database me sqlite exception reade_only database arahi h iska koi solusan h aap ke pass
8:30 when you selct record 3 then it is showing record 2 why and some solution
when i was try to click up or down key it said , java.lang.ArrayIndeaxOutOfBoundsException:-1,
How can i fix it,? please help :)
sir its firing after double press a key..? how to fix that sir..
Why don't you create universal methods instead of copying the same code again and again?
#find you videos really helpful though and thanks for that
There is an error in your code. The info is not shown correctly. knight009CK is right.
see this video for correction Java prog#72. CORRECTION in Video 22.Using Up/Down Arrow Key to Move in a jtable