How to change the default KeyBinding of the TableView ?

how to change the default key binding of the TableView ?
When press Enter key on a editable TableView, the default action is to make the selceted cell to a editing state. I want to know if there is any way to make it select the right cell and wouldn't change the editing state of the selected cell when i press Enter key.
here is something i've done.
      table.setOnKeyPressed(new EventHandler<KeyEvent>() {
               @Override
               public void handle(KeyEvent e) {;     
                    table.requestFocus();
                    KeyCode code =e.getCode();
                    if(code == KeyCode.ENTER){
                         try {
                              new Robot().keyPress(java.awt.event.KeyEvent.VK_RIGHT);//XXX
                         } catch (Exception e1) {
Thanks,
ahiwoo
Edited by: 911579 on 2012-2-1 上午3:15
Edited by: 911579 on 2012-2-1 上午6:26
Edited by: 911579 on 2012-2-1 上午6:41

thanks jsmith. now it works well.
     table.addEventFilter(KeyEvent.KEY_PRESSED, new EventHandler<KeyEvent>() {
               @Override
               public void handle(KeyEvent e) {
                    table.requestFocus();
                    KeyCode code =e.getCode();
                    if(code == KeyCode.ENTER){
                         try {
                              new Robot().keyPress(key);//XXX  javafx  has no robot for key type...
                         } catch (Exception e1) {
                         e.consume();
          });

Similar Messages

  • How to change the default Layout Of the Error Page (to hide Home link)?

    How to change the default Layout Of the Error Page (to hide Home link)?
    If a user want to view some page that he/she don't have access to view it, a error page with this message will be displayed.
    "You do not have permission to perform this operation. (WWC-44131)"
    The error page, have in the Upper right page, Home link and Help link.
    My question is, How to Hide HOME link and HELP link in the Page?
    I try to find the template of the page, but failed to do that.
    Can anybody help?..it urgent.
    Thanks.

    Modifying the error page is not supported in the current release of Portal (9.0.2). You will be able to do this in the upcoming 9.0.2.6 release, planned for the end of May.
    Regards,
    Jerry
    PortalPM

  • HT204150 How do I change my default email on the "Me" contact from a Facebook email to my normal email address in the same contact?  Or at least change it for the autofill information?

    How do I change my default email on the "Me" contact from a Facebook email to my normal email address in the same contact?  Or at least change it for the autofill information?
    Perfernece for contact to change.  Do I just have to dis-associate my contact fromt the facebook account?  Is only the autofill changable?

    If you allow Facebook to access your contacts and you have the @facebook.com email alias turned on, it will add the @facebook.com email to your contact info, and because it has the fixed label of "email" it overrides every other email address.
    They didn't fix this in iOS 8.
    There are two ways to remove the @facebook.com email from your contact info:
    If you don't need your Facebook friends and their info updating your contacts, go into iOS Settings -> Facebook and turn off access to Contacts.
    If you don't use your @facebook.com email address (all it does it forward to the primary email address) you can go into the Facebook app, More -> Settings -> General -> Email -> and uncheck "Use your Facebook email". Removing it from Account Emails does not work, you have to turn it off. Once you do this, go to iOS Settings -> Facebook and turn Contacts off and on again to make it update your info. The @facebook.com address should be removed.

  • How do you change the default size of the print batch size for mail merge in Publisher 2010?

    I appended this question to another thread with the same topic but have not received a reply, so I'll try with a new question. Publisher 2010, when doing mail merge, will only merge and print two records at a time. How do you change the default size of
    the print batch size? This is for a 4 page document, 8 1/2 x 11, printed two sides on 11 x 17. I've tried all the suggestions that were in the other thread. The response that was marked as the answer by the moderator is incorrect and does not work. Nothing
    suggested in that thread works. A registry fix that worked for Publisher 2003 won't work because the print batch size key does not exist in the registry for Pub 2010. At least not that I can find. Printing to an XPS document doesn't work. It asks for a filename,
    prints 2 records, asks for new file name, prints 2 records, asks for new file name, and so on. The same for printing to a PDF document. Merging to a new Pub document doesn't work. When I print that job every other sheet is turned over. I.e., sheet one has
    pages 1 & 3 on top, next sheet has 3 & 4 on top, and so on. This makes it impossible to run them through the folder. The same thing happens when I print that complete merged document to XPS or PDF. I have the latest drivers installed for our printer, a Toshiba
    2500C copier/printer connected via network. What do I need to do to to change the batch size to something reasonable, like 100 records?

    It's been two weeks since I posted this question. What does it take to get an answer? I cannot believe it's being ignored, nor can I believe that someone in MS doesn't have an answer.

  • Anyone know how to change the default font for the new pages? Apparently it does not even come up when I search the 'Help' section of Pages. The level of incompetence in this new version seems breathtaking

    I cannot find how to change the default font in the new Pages. It does not appear in the Help area when I search for it. I am never sing Helvetica for my standard documents and cannot seem to change it. What am I missing? And why does Pages help not have an easy answer?
    dan

    You open a blank template and change the font to you liking. Remember to also get all the styles changed with new font. Then Save As Template. Now you have a template with the font you like.

  • When creating a fillable form and saving it as a pdf, the default color of the data fields is a light blue. How do I change the color to something else that will copy better, e.g. a light yellow?

    When creating a fillable form and saving it as a pdf, the default color of the data fields is a light blue. How do I change the color to something else that will copy better, e.g. a light yellow?

    It's probably the fields highlight color of the application, which you can change via Edit - Preferences - Forms.

  • How can I change the default program for the external applications editor?

    I have read the on line directions for this and it reads "select a file type in the left pane."   I do not see where this is in the left pane.  All I see in the left pane is "Browser start pages" and a "How do I " Pane.  Nothing with file types.

    Hello,
    Welcome to Adobe Forums.
    In order to change the default program for the external applications editor. Please follow the steps as mentioned below.
    Click on Edit menu then choose preferences.
    Once the preferences dialog box open.
    click on file editors.
    On the Left pane you will find all the file types which you want to edit .
    On the right hand side you will find the editors for that specific file type.
    If you want to add any other application you need to click on + symbol at the top of right pane.
    Select the path of that application which you want to apply.
    clcik on open.
    If you want to make it primay you can click make primary option available at the right hand top. For more detials please check the screenshot below.
    Regards,
    Rajeev

  • How can I change the default settings in the new pages?

    How can I change the default settings in the new pages?

    Create a new document and change the settings to what you want i.e. Times New Roman, 12 pt. and save as a template from the Edit menu. Then go to Pages Preferences (Cmd +,) and under general change the template to open to your saved template that you want as your default setting.
    Hope that helps.

  • When I create a new address in Contacts the country is automatically coming in as Netherlands - though I'm using the phone in USA. Can't find how to change country default.

    When I create a new address in Contacts the country is automatically coming in as Netherlands - though I'm using the phone in USA. Can't find how to change country default.

    https://discussions.apple.com/message/16474985#16474985

  • HT5621 When I am trying to download an app, my friend's APPLE ID is popping up by default as he had used it first after purchase of the instrument. How to change this  default ID to my ID?

    When I am trying to download an app, my friend's APPLE ID is popping up by default as he had used it first after purchase of the instrument. How to change this  default ID to my ID?

    All purchases are forever tied to the Apple ID that originally bought them and will require it to update in the case of Apps.
    If you don't want to be using your friends Apple ID, I suggest the following:
    Settings->General->Reset->Erase All Content and Settings.
    Then set up the iPad with your Apple ID as new.
    Alternatively you can just go to Settings->iTunes & App Stores->Apple ID->Sign Out, and then Sign in with your own.
    But again Apps will still request your friend's Apple ID to update every time.

  • How do I change the default locations for the iTunes music and iPhone back-up folders?

    My computer's hard drive is partitioned, with one partition having all of the Windows system files, and the other having all of my documents, music, videos, etc.  When I installed iTunes, it automatically created its music and iPhone folders on the Windows partition.  I've been able to change the default save folders for other programs to the second partition, but I'm having troubles finding this option in iTunes (I even went back and re-installed it to see if I could find it that way, but no dice).  Is there a way to change the default folders for the iTunes library and iPhone files?  It takes up A LOT of space on my Windows partition, so it would be very great to get that moved over.
    Thanks!

    You can't selectively move individual folders withing the iTunes  folder, but you can move the entire folder to, say, an external dive. To delink the iTunes application to the new library location:
    Open iTunes while holding down the Option key (Mac) or Shift key (Windows).
    In the resulting dialog, click the Choose Library button.
    Select the iTunes folder you moved to the external hard drive.
    Click Choose (Mac OS X) or Open (Windows) and then choose the iTunes Library file inside .

  • How do I change the default language for the spell checker? - solved, sort of...

    As the previous thread was closed without actual resolution - https://support.mozilla.org/en-US/questions/941350?esab=a&s=&r=0&as=s
    I managed to solve this on my end by just reinstalling firefox using the localisation of the default dictionary language i wanted from here - http://www.mozilla.org/en-US/firefox/all/
    A bit of a shame that the main download page doesnt select the geographically relevant localisation for you and even more so that changing the default language for the in built spell checker is so kak. oh well.

    Right-click a web form on any web page.
    Languages > Add Dictionaries
    *Install the Language pack
    You can look here for dictionaries:
    * http://addons.mozilla.org/firefox/language-tools/
    * http://kb.mozillazine.org/Spell_checking
    *http://kb.mozillazine.org/Dictionaries
    *http://support.mozilla.org/kb/Using+the+spell+checker
    Right-click a web form on any web page.
    Languages > Add Dictionaries
    *Install the Language pack

  • How do you make Firefox the default browser when the normal way doesnt work?

    Im trying completely from chrome after a friend showed my how much firefox has got its act together. However i cant for the life of me set it as the default browser. I have tried the "make firefox the default browser" button in firefox, which simply opens the windows default programs panel. Whenever i try to use the panel it simply sets the http protocol to nightly which isnt even installed!( http://puu.sh/2vJHM ) I think a possible fix would be to manually change the registry, but i wouldnt know where to start.

    Did you check the box on ''Options > Advanced > General >[X] "Always check to see if Firefox is the default browser on startup"?
    Have you restarted Firefox and if so, or when you do so, what does that section on the advanced Firefox options show?
    Have you tried restarting your system after setting the default browser using the second suggestion and, after restart, check the setting per the second suggestion to see if that setting is holding?
    Updating your Plugins would have no affect on the default browser question. It was something that you needed to do to avoid security issues online by using an out of date version of Java. Java is not involved in the default browser issue. That is why I separated it from the first part of the reply with a line and began with the word "Other".

  • How do I set the default output? The one where BIOS appears.

    Currently it's the DVI, I want the default to be the DP.
    Thanks.

    You can't change that manually. If you wnat to contact MSI about it: >>How to contact MSI.<<

  • Change the default entity in the lookup window in PhoneCall Form

    Hello,
    I'm trying to write a javascript to change the default entity in the lookup window for the 'from' field to use the Contact entity. Right now Account is the default entity.
    So this is what I have:
    document.getElementById("from").setAttribute("defaulttype", "2");
    var ViewGUID= "a2d479c5-53e3-4c69-addd-802327e67a0d";
    Xrm.Page.getControl("from").setDefaultView(ViewGUID);
    I got the code actually from this website #34: http://garethtuckercrm.com/2011/03/16/jscript-reference-for-microsoft-dynamics-crm-2011/
    I attached the function into the form and publish the solution however it's still showing Account as the default entity.
    Any idea is appreciated. Thanks.
    -tri

    Chitra Swaminathan wrote:
    Hello,
    We are using Lookups in our application which stores the locale specific information. We have a drop down in the UI which will give the language names like 'American English', 'Canadian French' etc. When chosen 'Canadian French' we need to change the nls_language in the db to refresh the contents in the lookup generated component to show in French. How to acheive this?
    We are able to switch the bundles, upon change in locale in the run time. But the AM setting - to set the DB session is what we are looking for. Would appreciate your help on this.
    Thanks,
    Chitra.to localize ADF-BC you need to set the jbo.default.country and jbo.default.language property to language value in Application module configuration
    other way is to override the prepareSession method in ApplicationModuleImpl class to call some JDBC statement to set the dbms_application_info.set_client_info to value of the language.
    if you can provide more details about your lookup table and data structures then one can be more helpful
    Zeeshan

Maybe you are looking for

  • IMac at 100% CPU after 10.5.8 update

    The update to OS 10.5.8 appears to be running OK on my MB Pro, but not on an iMac I did a fresh install of OS 10.5 and then upgraded to 10.5.8 - the CPU is at 100% all the time!

  • 6680/PC Suite/ Coopying files

    Hi, I'm 1) trying to use PC suite/phone browser and when I click on the phone it just says operation cannot be completed! I can use sync. to copy contacts across etc. but cannot access the phone as a browser. Also I thought the MMC was available as a

  • My iphone keeps freezing, then turning itself off. Please help me resolve the problem whatever it is

    My iphone keeps freezing, then turning itself off. Please help me resolve the problem whatever it may be.

  • SAP Discovery system access to BI and EP

    Dear support, We have setup our Discovery System and we’re trying to connect it to our DEV 4.7 system for the purpose of prototyping the use of BI and the Enterprise Portal.  We’re running into issues due to our lack of knowledge and SAP’s lack of go

  • Acropdf.dll

    good, I am using to display pdf acropdf.dll in it, I try to put some method such as: ole_1.object.src = "E: \ Work \ Degrees \ temp \ 1996_00001739.pdf" ole_1.object.SetShowToolBar (True) ole_1.object.SetZoom (50) How I can disable the options printi