Home and end key functionality on the keyboard

Hi.
i have a window with a table where the values will be populated from database.
on that table i want to make use of HOME and END and other key board functionalities on my table.
please suggest me or provide me a sample code.
thanks in advance

You must register your table to the KeyListener. A possible solution :
yourTable.addKeyListener(new java.awt.event.KeyAdapter() {  
                    public void keyTyped(java.awt.event.KeyEvent e) {   
                         if(e.getKeyCode()==e.VK_HOME){
                                              //do something
                    public void keyReleased(java.awt.event.KeyEvent e) {   
                         System.out.println("keyReleased()");
                    public void keyPressed(java.awt.event.KeyEvent e) {
                         System.out.println("keyPressed()");
               });

Similar Messages

  • My up and down arrows as well as page up and page down no longer work properly only when using firefox. Page up and down function more like the "home" and "end" keys as do the arrow keys.

    Honestly I'm not sure if these began just after I updated FF to the current release, but it's been happening for at least 2 weeks. The arrow keys and page up and page down keys all work as if I'm pressing the 'home' and 'end' keys on my keyboard. This is only when using FF. Please contact me if you need more clarification. Thanks in advance!

    Sounds that you have switched on caret browsing.
    * http://kb.mozillazine.org/accessibility.browsewithcaret
    You can press press F7 (on Mac: fn + F7) to toggle caret browsing on/off.
    * Tools > Options > Advanced : General: Accessibility: [ ] "Always use the cursor keys to navigate within pages"
    * http://kb.mozillazine.org/Scrolling_with_arrow_keys_no_longer_works
    * http://kb.mozillazine.org/Accessibility_features_of_Firefox

  • OSX FF 4 beta - change Home and End key behavior

    On OSX, Home and End keys go to the top and bottom of the page, respectively. We need a simple way to change this to the more typical beginning/end of '''line''' behavior. This is an extremely frustrating issue in an otherwise perfect browser.

    Looks like I spoke to soon. The Keyfixer extension has been updated to work with FF 4, and is in the Add-on gallery.

  • Anyone know how to use a 'home' and 'end' key on the Macbook pro keyboard?

    I had a pc before, and the keyboard had home and end keys on the keyboard for quickly moving cursor to end or beginning of word or sentence.  I can't figure out if there is something like that on the Macbook pro.  It would be really helpful.  So does anyone know if there is those keys and if so what do i use?
    I'd appreciate any help. 
    Thanks

    see if any of this works for you
    On a smaller keyboard, such as the wireless, or on portables, you can use fn- left arrow for home and fn- right arrow for end.
    On a Mac, 'home and 'end' take you to the beginning and the end of document, respectively. Getting to the beginning or end of a line is done with cmd- leftarrow and cmd- rightarrow. Emacs shortcuts, such a ctrl-a and ctrl- e also work in most places, where the app is done right.

  • Custom functionality for home and end keys?

    I don't know anything about automate, but I was wondering if it's possible to do this:
    I'm a former PC user and on PCs you could use the 'home' and 'end' keys to go to the beginning and end of one line (subsequently, you could hold shift + home/end to highlight from your current cursor position to the beginning or end of a line). This functionality is extremely helpful for text editing and programming. Luckily the versions of Word and Dreamweaver I have on mac do use this, but TextEdit, Flash, and others do not. Is there anyway to program this kind of functionality? And if so how? And why is basic functionality like this different program to program on macs? PC's were at least consistent. Thanks!

    The Command and Option shortcuts will take some getting used to, but that will work. Thanks! an external text editor would be okay for some things, but not Flash ActionScripting within a flash file.
    I just wish some of the more basic functions between mac and pc were the same. I think both platforms would have an easier time getting users to switch if they were a little more consistent and took some of the good features of each into consideration.

  • Mac Mini w/ Apple USB keyboard - question about home and end keys

    I purchased a USB white Apple keyboard to go with my Mac mini.
    My question concerns the home and end keys. When I put the cusor focus in a text field or text area, I would expect that hitting the home key would take me to the beginning of the line and hitting the end key would take me to the end of the line.
    That's not the case?
    If a vertical scrollbar is used in the window, then the home key takes me to the top of the window and the end key takes me to the bottom of the window.
    Please forgive me, I've been on a PC for the last 10+ years, so I thought I should ask.
    What key or key combo moves you to the start and end of a text in a text field or text area?
    Thanks,

    923/3369
    Hi Todd,
    Use the arrow keys with the command key (⌘):
    command + left arrow -> beginning of the line
    command + right arrow -> end of the line
    command + arrow up -> beginning of the text
    command + arrow down -> end of the text
    Explore also the option key (⌥) possibilities, with the arrow keys:
    very handy too.
    Yes, the Home, End, Pageup and Pagedown keys are for controlling the whole document, not the text itself.
    HTH
    Axl

  • Home and end key not working on ubuntu 14

    I am on Firefox on Ubuntu 14.
    Home and END keys do not work properly as they do not take me to the top or the bottom of a page. Caret browsing (F7) is not activated. This problem persists with all add-ons disabled.

    Shortcuts just for reference:
    [https://support.mozilla.org/en-US/kb/keyboard-shortcuts-perform-firefox-tasks-quickly#firefox:linux:fx35]
    I understand that there are two short cuts that do not work with caret browsing turned off. Please also see this menu:
    Options > Advanced > disable "Always use the cursor keys to navigate within pages" option present in "General" tab.
    If this is not the issue, please also contact the party that compiles Firefox specifically for Ubuntu, unless you are using the linux from [https://support.mozilla.org/en-US/kb/install-firefox-linux here]?

  • Just switched to MAC from Windows...missing my home and end keys.  Is there a MAC equivalent?

    I am sure there are combination keystrokes to equate to windows, but haven't found them all yet.  What is a good resource for finding this information?

    If you get a wireless PC keyboard with Home and End keys, most programs that use that often will support it.
    For instance Firefox and the free LibreOffice supports those features.
    It's just a lot of Apple programs don't.

  • Microsoft word 2013 function home and end keys not working together on HP Envy X2

    Please help I've tried out Microsoft Office Word 2013 on two HP Envy X2 11.6" laptops/touch screen with keyboard and when I am in a Word document and am at the end or beginning of a document and select the FUNCTION KEY AND THE HOME OR END KEY, it does nothing. This is not the case in Internet Explorer or a web browser.  There is a problem with the HP keyboard and Office 2013 or maybe any Word app. Help me as I use documents alot and rely on this function heavily.  I can only page up or scroll up using the bar. It is not ideal.
    Astaastra

    Hi rosedoc12,
    I have done some research and I have found a document that will show you how to disable or lock the fn key.
    http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&​lc=en&docname=c02035108
    Thank you,
    Please click “Accept as Solution ” if you feel my post solved your issue.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Thank you,
    BHK6
    I work on behalf of HP

  • In the current screen keyboard shortcuts, it says you can use "home" and "end" to go to the top and bottom of the screen. But it only works if I use Cntrl. Why?

    I am not using Firefox 20 on a new Sony Tap 20 with a wireless VAIO keyboard. All other keyboard shortcuts appear to work as usual. With my old computer, I did not have to hit cntrl to use home and end. (And yes -- I checked -- my num lock key is off.

    You may have switched on caret browsing.
    *http://kb.mozillazine.org/accessibility.browsewithcaret
    You can press press F7 (on Mac: fn + F7) to toggle caret browsing on/off.
    *Tools > Options > Advanced > General > Accessibility: [ ] "Always use the cursor keys to navigate within pages"
    *http://kb.mozillazine.org/Scrolling_with_arrow_keys_no_longer_works
    *http://kb.mozillazine.org/Accessibility_features_of_Firefox

  • Windows equivalent "Home" and "End" keys?

    Okay, if there was one keyboard shortcut I used in Windows all the time, it was Shift-Home or Shift-End to highlight an entire line quickly. Control-A and Control-B do something like that, but I can't use Shift at the same time to highlight. Is there anyway to change the function of "Home" and "End" so they don't go to the end of a paragraph, but rather to the end of the line? Is there another keyboard shortcut I can use to do this? Thanks!
    iMac 20" 2.0Ghz 2gRAM 250gHD 256VRAM   Mac OS X (10.4.7)  

    Hi, JAButler.
    How keyboard shortcuts, such as those you cite, work are generally defined at the application level. Command-A, i.e. ⌘-A (not Control-A) is universally defined as "Select All."
    I recommend consulting the Help for a given application to determine what keyboard shortcuts it defines.
    For example, in my favorite text editor, Tex-Edit Plus, it defines the following keyboard shortcuts akin to what you describe:• Shift-arrow extends a selection.
    • Shift-option-left/right arrow extends the selection one word at a time.
    • Shift-command-left/right arrow extends the selection to the beginning/end of the line.However, in FileMaker Pro, another application I use often, one must useShift-Option-Command-left/right arrowto extend the selection to the beginning or end of the line vs "Shift-command-left/right arrow" in Tex-Edit.
    General Information on Mac OS X Keyboard Shortcuts
    • An official list of Mac OS X keyboard shortcuts is found in "Mac OS X: Keyboard Shortcuts."
    • An important list of keyboard shortcuts for all Mac owners is: "Mac OS: Apple Pro Keyboard Shortcuts for Shut Down and Restart."
    • If you have an Intel-based Mac, see also "Startup key combinations for Intel-based Macs.".
    • A popular list of Mac keyboard shortcuts is Dave's Picks Mac Keys.
    • Don't forget that Mac OS X's Help Viewer lists most of the keyboard shortcuts available. Just search for keyboard shortcuts in Help Viewer.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • Where are the home and end keys

    in iphoto to move from the top of your events to the bottom or vice versa the shortcut says to either use the" home key"or the "end key" my question is where are they?

    When I have "All Events" displayed in iPhoto 9.2.1 (the latest version), neither of the preceding two suggestions takes me instantly to the beginning or the end of the displayed event grid. What does the trick for me is Fn + left arrow and Fn + right arrow. I'm running Snow Leopard 10.6.8, in case that makes any difference.

  • "Home" and "End" keys in FCP on MacBook Pro (2008/09)

    I just started using my new MacBook Pro 17. While I was in FCP and tried to move the playhead to the "Home" position, I realized that my keyboard doesn't have a "Home" or an "End" key. What keys/functions do I need to use in this case? When I tried to look up the solution online, I found a forum in which someone suggested "Command/Arrow Key" (up for "Home" and "down for "End") but that didn't work.
    Thank you!

    On my macbook pro hitting function (the "fn" key) and the left arrow works for home, and function and right works for end. My laptop is a few years old, but I'd assume it's still the case.

  • HP 110-3135DX missing PgUp/Dn, Home, and End keys

    As a precursor, I've been using an earlier model HP 110 up until now, so I'm used to the Fn+Arrow keys for this functionality previously. However, I got a new model, the 3135DX, and the Fn+Arrow key combos aren't working. Too, there's no (even very dark black-on-black) text referencing PgUp/PgDn on the arrow keys, or anywhere else. I use these keys for work and having to stop what I'm doing to fiddle with a scrollbar is irritating as all get-out. Is this accidental, or a design thing? And if the latter, who the heck thought this was a good idea? Is there any way I can get this functionality back, or am I going to have to go back to the store with a receipt and a "defective" laptop keyboard?

    I am having the same issue.  I hope HP will be able to provide a fix that allows the Home, End, PageUp, and PageDown keys to be triggered via a fn key combination.
    In the meantime, I found a free, opensource utility on the Internet that allows you to create your own hot keys (www.autohotkey.com) and created a hotkey script that uses the Windows key in combination with the arrow keys to substitute for the missing keys.
    For some reason, the #Left::Home key  did not work for me as I expected.  However, after some tinkering, the following AutoHotKey script is working very well for me:
    #Left:END {Home}
    #+Left::+Home
    #^Left::^Home
    #^+Left::^+Home
    #Right::End
    #Up:: PgUp
    #Down:: PgDn
    I hope this helps others who are suffering from the missing keys.

  • Where are Home and End keys for Numbers spreadsheet

    I just bought a MBP 15 after spending my entire computer life with Windows.  I have a fairly sophisticated spreadsheet that I created in Excel that I now want to use in Numbers.  But I'm hung up on the simplest thing - Home & End.  I've read other postings here, but everyone else seems to indicate that there are already Home & End keys on the keyboard.  I have none - at least none that I can find.  I just have the standard MBP keyboard, including the F1-F12 function keys (plus fn, option, control, command, & arrows).  All of the key remapping posts talk about their use in text like a Safari e-mail.  For spreadsheets, Windows lets me take a formula in 1 cell, ctrl-c to copy it, then shift-end-down and ctrl-v to paste that new formula to the end of the existing column.  How is this done in the Mac world?  Very frustrating so far.  Any and all help appreciated.

    Perhaps these experts can help you out:
    https://discussions.apple.com/community/iwork/numbers
    Post there.

Maybe you are looking for