No touch event is generated from mac book pro trackpad

I am developing a multiltouch javafx application on mac, but no touch event was caught by the handler using trackpad. The event handlers are added to scence.
I am using JDK1.7.0_07.
Any one has any idea.
Thanks.

I don't think this will work. The javadocs for the TouchEvent explicitly state
"Touch event indicates a touch screen action."
The trackpad is not a touch screen.
The trackpad will generate GestureEvents. Again, from the javadocs:
"Gestures are typically caused by direct (touch screen) or indirect (track pad) touch events."
So you can handle things like ScrollEvent, RotateEvent, and ZoomEvent. I think the mapping between physical gestures on the trackpad and semantic events is managed by the OS (so behaviors might change if the user changes trackpad settings in System Preferences, for example). It doesn't sound like this will meet your needs, but maybe...
I don't know if there's any other way to interact with the trackpad (someone else surely will).
Here's a simple way to see what events are being generated (it will generate quite a lot of output).
import javafx.application.Application;
import javafx.event.EventHandler;
import javafx.scene.Scene;
import javafx.scene.input.InputEvent;
import javafx.scene.layout.AnchorPane;
import javafx.stage.Stage;
public class TouchTest extends Application {
  @Override
  public void start(Stage primaryStage) throws Exception {
    Scene scene = new Scene(new AnchorPane(), 400,400);
    scene.addEventHandler(InputEvent.ANY, new EventHandler<InputEvent>() {
      @Override
      public void handle(InputEvent event) {
        System.out.println(event.getEventType().getName());
    primaryStage.setScene(scene);
    primaryStage.sizeToScene();
    primaryStage.show();
  public static void main(String[] args) {
    launch(args);
}

Similar Messages

  • Hi! I want to transfer my old mails from mac book pro to iPad 2, Please help me on this.

    Hi! I want to transfer my old mails from mac book pro to iPad 2, Please help me on this.

    Did you select the Pages app to sync to the iPad? Do you know how to do that or do you auto sync and rely on that only?

  • I take out my battery out from Mac book pro 15, now put it back can't switch on??

    I take out my battery out from Mac book pro 15, now put it back can't switch on??

    Please describe in detail all you have attempted to do in order to resolve the issue. 
    Troubleshooting a MacBook, MacBook Air or MacBook Pro that won't turn on

  • Can I interrupt a migration from Mac Book Pro to Imac and what are the consequences

    can I interrupt a migration from Mac Book Pro to iMac and what are the consequences

    Les:
    Here are some options:
    • You could copy the data file to your laptop, work on it, and update the file on the iMac when you are back.
    • You can use an application like Log Me In to access your home computer from your laptop.
    • You can use DropBox. Install it on both computers, place your data file in a folder on the iMac, access it and work on it on your laptop and it will be automatically updated on your computer at home, even if it is not turned on, as soon as it is connected to the internet.
    Please do post back with further questions or comments.
    cornelius

  • Audio out on HDMI from mac book pro?

    Audio out on HDMI from mac book pro?

    Yes, a retina MBP will support audio via HDMI.
    Ciao.

  • Hi, Can anyone encounter the problem that you couldn't update your apps from Mac book pro??

    Hi, Can anyone encounter the problem that you couldn't update your apps from Mac book pro??
    Currently, my mac can't update any of the software from App store as well as bulit in software like garageband.

    yeah...
    i did that but it didn't work.
    Every times, i click on the software updates, software updates dialog box is popping up and
    checking for new updates.
    After that, acknowledged me whether i want to update or not.
    once, i click on "install".
    it appears following message.
    "A network error has occurred. Check your Internet connection, and then try again."
    i totally can access to Internet as i can browser all the websites.
    Please help me, is it a "virus" or "malware" causing my mac?.
    i just changed a new mac recently and having this problem

  • Why can't i airdrop from mac book pro to iPhone 5s

    why can't i airdrop from mac book pro to iPhone 5s

    You can't currently AirDrop between OS X and iOS. This is partly because OS X supports many file types that iOS wouldn't know what to do with if you AirDropped them onto an iPhone.
    This will change in the next OS X and iOS that Apple recently demonstrated. When those OSs become final and are released to the public, you will be able to AirDrop between OS X and iOS. Apparently iOS will be more flexible about handling file types, as shown by the future ability to create your own sharing folder in iCloud instead of having iCloud being individual to each app.

  • SIR HOW SHOULD I EJECT CD FROM MAC BOOK PRO?

    sir, how should i eject cd from mac book pro?

    assuming the eject key doesnt work. (which is found in top right of keyboard)
    open finder and select eject next to disc name.

  • HT201335 air play mirroring from mac book pro with apple tv

    hi,
    I have a late 2011 mac book pro 13inch, and a new apple tv 2012.  How do I turn on the air play mirroring fuction on my mac book pro when using the apple tv?
    Thanks for your help!!
    Regards,
    penny

    Just upgraded Mountain Lion ($20 from app store) then it works perfect!!!
    Thanks for your help!

  • How to clear the cache from Mac Book Pro

    What is the simplest way to clear out the cache from my Mac Book Pro?

    I will also endorse Thomas_r's comments.  If anything, I would use OnyX, which is a well known maintenance tool.
    Beware that there is also an "onyxmac" website, which is malware and to be avoided...
    The OnyX developer is Titanium software, here:
    http://www.titanium.free.fr/downloadonyx.php

  • I want to make an appointment in store for help, I can't remove disk from Mac Book Pro!

    I would like to make an appointment in store for help. I can't eject a cd from Mac Book Pro

    Have you tried to power up your MBP holding the trackpad down?
    Ciao.
    Here are a few more hints:
    Message was edited by: OGELTHORPE

  • Is touch grind also available for mac book pro?

    hey everyone
    i have a mac book pro
    i was wondering is touch grind also available for it? cause it does have the touchpad thing
    if so thatd be awesome!

    No, it only runs on the iPhone/iPod Touch. The only way to run it on a Mac would be for the developer to release a Mac version of the game.
    Tell them: http://www.touchgrind.com/contact

  • TS3276 Unable to print e-mail messages from Mac book pro directly to my HP ink jet printer.  Can print from Word, Excel, Safari.  E-mail messages only print the date and "sent to" name.

    Unable to print e-mail messages from my Mac book pro directly to my HP ink jet printer.  Can print from Word, Excel, Safari.  E-mail messages only print the date And "sent to" name, the remainder is blank.

    If you haven't done so already, try resetting the printing system.
    Reset Printing System

  • Can't print from mac book pro to Ricoh Aficio MP C4500

    Hello, today i started working in a new office, that uses a Ricoh Aficio MP C4500 printer and everyone in the office uses windows computers. I have a Mac Book Pro 2.26 GHz Intel Core 2 Duo, on it, I am running Mac OSX 10.6.6.
    When I have tried to print several different file types such as .pdf, .doc, .txt, etc. the printer prints out usually 20 pages that are all coded or blank and nothing similar to what i printed out. I'm guessing this is due to the printer not understanding the language of the data i send to it.I know that i am successfully connecting to the right printer.
    I've visited several webpages that discuss how to fix the issue but none of them have worked.
    I have tried downloading the mac osx 10.5 drivers from the Ricoh website(they didnt have 10.6) that didn't work and when i printed i still got all blank/coded pages.
    Next I went I tried typing the the printer IP address to my browser url... that didn't help.
    Next I went to the apple website and downloaded all of their mac osx 10.6 ricoh aficio drivers and when i printed i got all blank/coded pages again.
    next i went and downloaded the "ghost script" "footmatic" and "pxlmono" and when i printed i got all blank/coded pages again.
    all of the other webpages gave no other advice. Also, when printing each time i tried all of the different protocols, that didnt make a difference.
    if you can advise, it would be much appreciated! Thanks!
    -Nick

    nnelson10 wrote:
    When I have tried to print several different file types such as .pdf, .doc, .txt, etc. the printer prints out usually 20 pages that are all coded or blank and nothing similar to what i printed out. I'm guessing this is due to the printer not understanding the language of the data i send to it.I know that i am successfully connecting to the right printer.
    It sounds like the printer does not have the optional PostScript module installed.
    Next I went to the apple website and downloaded all of their mac osx 10.6 ricoh aficio drivers and when i printed i got all blank/coded pages again.
    The drivers that are available from the Ricoh web site or are available from Apple only work when the PostScript module is installed.
    next i went and downloaded the "ghost script" "footmatic" and "pxlmono" and when i printed i got all blank/coded pages again.
    After you downloaded and installed the Ghostscript, Foomatic-RIP, and pxlmono drivers, did you delete your existing Ricoh print queues and create new print queues? Did you choose the driver that had pxlcolor in the title?
    If the pxlmono/pxlcolor drivers do not work properly for you, you will need to have the IT person tell you what printer languages the printer can use. Alternatively, you can print a configuration page from the printer keypad that will print a sheet telling you what languages it can use.

  • How to transfer a purchased app from Mac Book Pro to Ipad mini

    I am trying to put a new app I purchased for my Mac Book Pro onto my Ipad Mini without having to buy it again. Thanks for any help

    you need to buy it again, one was made for OS X and you need the iOS version for the mini.

Maybe you are looking for

  • Help Required : Adding new Wagetype to IT 0402 Payroll Results

    Dear Experts, I am adding a new Wagetype to show in Payroll results. At the step of setting up payroll infotypes a workbench request is created. When I transport this request from my Development server to Quality server I get the following error    "

  • Where are the Apple guys???? :(

    It seems that there are lot of people out here having essentially the same problem with their ipod mini: - Folder w/ exclamation point or Apple logo flashing - Computer can't detect device (whether through iTunes or MyComputer) - Device no longer cha

  • Two column text box with header

    I have a text box that is set to flow as two columns. The beginning of the text box has a header then a list of bulleted items. My problem is that when the text flows to the second column, it is set at the top (in-line with the header). What I would

  • HOW DO I CREATE A PLAIN IMAGE ON A PANEL

    I want to create a simple image with text on it it and display it on a JPanel. Does anybody know how to do this? Thanks in Advance Colin

  • Comparision of TIMESTAMP with TIMEZONE

    Hi, One of the column columnA is of timestamp datetype i.e value stored in it is '2007-09-20 04:00:00.0' I am using the following in SQL select * from tableA where columnA = TO_TIMESTAMP('2011-05-12 21:00:00','YYYY-MM-DD HH24:MI:SS'). This is always