Java prog#22. Using Up/Down Arrow Key to Move in a jtable and get the Data in jtextfield netbeans

Sdílet
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

Komentáře • 21

  • @pusha41
    @pusha41 Před 10 lety +15

    use the keyReleased method it solve the prob..

  • @abhinavv04
    @abhinavv04 Před 11 lety

    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 !

  • @carvelbell181
    @carvelbell181 Před 2 lety

    Excellent project.

  • @Pintukumar-mp8in
    @Pintukumar-mp8in Před 11 lety

    thanks a lot. it really helped me. Simply Awesome.

  • @ProgrammingKnowledge
    @ProgrammingKnowledge  Před 12 lety

    see this video for correction Java prog#72. CORRECTION in Video 22.Using Up/Down Arrow Key to Move in a jtable

  • @ChaminNalinda
    @ChaminNalinda Před 12 lety

    Thanks a great deal for your kind concern. Keep up the good work.
    Sir do you have a blog ? :)

  • @KamranAli-lx6cm
    @KamranAli-lx6cm Před 8 lety +1

    Sir how to fill combobox from jtable please reply sir you can solve my problem

  • @indranilsom7664
    @indranilsom7664 Před 7 lety +1

    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.

  • @rodrifortin
    @rodrifortin Před 11 lety

    Thanks for the video. I have a problem: "cannot find symbol: KeyEvent". Have you any idea about what can be wrong?

  • @yahiamed129
    @yahiamed129 Před 3 lety

    Nice job but you have an error when you click up or down the ligne selected not the same data in the other fields

  • @thumbsupifyoulikeme
    @thumbsupifyoulikeme Před 7 lety

    I notice the same bug .the highlighted row do not match the record in the text fields.
    How can i resolve the problem?

  • @ChaminNalinda
    @ChaminNalinda Před 12 lety

    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 :)

  • @JiriCvrk
    @JiriCvrk Před 9 lety

    Abhinav is right, and ...
    you can use ternary operator , this works:
    int row = Table_Employee.getSelectedRow()+ ((evt.getKeyCode() == KeyEvent.VK_DOWN) ? 1 : -1 );

  • @sourabhsharma9849
    @sourabhsharma9849 Před 5 lety

    Hello sir sqlite database me sqlite exception reade_only database arahi h iska koi solusan h aap ke pass

  • @codingknowledge8183
    @codingknowledge8183 Před 7 lety

    8:30 when you selct record 3 then it is showing record 2 why and some solution

  • @asifiqbal1261
    @asifiqbal1261 Před 8 lety

    when i was try to click up or down key it said , java.lang.ArrayIndeaxOutOfBoundsException:-1,
    How can i fix it,? please help :)

  • @rohalrana9370
    @rohalrana9370 Před 8 lety

    sir its firing after double press a key..? how to fix that sir..

  • @salmananjum-thestoryteller1515

    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

  • @zephirusvideos
    @zephirusvideos Před 12 lety

    There is an error in your code. The info is not shown correctly. knight009CK is right.

  • @ProgrammingKnowledge
    @ProgrammingKnowledge  Před 12 lety

    see this video for correction Java prog#72. CORRECTION in Video 22.Using Up/Down Arrow Key to Move in a jtable