Forward/backward MouseWheel Event in JavaFX?

I found this http://download.java.net/jdk8/jfxdocs/javafx/scene/input/ScrollEvent.html but it is very limited on mouseWheel, and seems to be based on touch. There is ScrollEvent.SCROLL but how do I know if I'm scrolling forward or backwards?
There was nothing in the mouseEvent api, and this is the only information I have....
I rather not have to use AWT events and FX events as that would be ugly, and I'm not too sure if I could run them both on the FX Thread, or if I would need another one(yay for Threads :p).

Yeah. I don't have a mouse with a wheel to test on; just an apple mouse and a trackpad. Both give the expected results for this quick demo. (Put the mouse over the window and scroll, you should see the deltaX and deltaY values reported.) If this gives zeros for deltaX and deltaY I think that's a bug.
import javafx.application.Application;
import javafx.event.EventHandler;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.input.ScrollEvent;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;
public class ScrollWheelTest extends Application {
  @Override
  public void start(Stage primaryStage) {
    final Label scrollWheelStatus = new Label();
    final BorderPane root = new BorderPane();
    root.setTop(scrollWheelStatus);
    root.setOnScroll(new EventHandler<ScrollEvent>() {
      @Override
      public void handle(ScrollEvent event) {
        scrollWheelStatus.setText(String.format("deltaX: %.3f deltaY: %.3f",
            event.getDeltaX(),
            event.getDeltaY()
    primaryStage.setScene(new Scene(root, 600, 400));
    primaryStage.show();
  public static void main(String[] args) {
    launch(args);
}

Similar Messages

  • How can I forward a calendar event that I did not create?

    I can't see a way to forward a calendar event, when I am not the event creator. How is this done on an iPhone or iPad?

    There is an app that allows this - called Forward My Meeting.  It allows you to forward any meeting in your calendar from the iPhone or iPad.
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • On iOS 7.0.2 everytime I unlock my phone while my music is playing, it skips. Forward, backward, and by small and large amounts of time.

    On iOS 7.0.2 everytime I unlock my phone while my music is playing, it skips. Forward, backward, and by small and large amounts of time.

    Hi cowboyincognito,
    Thanks for visiting Apple Support Communities.
    If you don't have the option to play music by genre on your iPhone, try this step to find the Genre option:
    Browse your music library.
    You can browse your music by playlist, artist, or other category. For other browse options, tap More. Tap any song to play it.
    To rearrange the tabs in the Music app, tap More, then tap Edit and drag a button onto the one you want to replace.
    Best Regards,
    Jeremy

  • To extend a clip I have `Show Fine Tuning controls' turned on in my iMovie 11 preferences, but the blue forward/backward buttons don't appear.  To get the orange handle bar, is there a hotkey?

    To extend a clip I have `Show Fine Tuning controls' turned on in my iMovie 11 preferences, but the blue forward/backward buttons don't appear.  To get the orange handle bar, is there a hotkey?

    That's a comment in the file. It has no effect at all.

  • Internet Explorer's forward/backward for next/previous image

    In addition to right/left arrow to move to next/previous image I would like LR team to add this keyboard shortcut:
    Use Internet Explorer's forward for next image.
    Use Internet Explorer's backward for previous image.
    Here is the reason. I have ViewSonic mouse with five buttons. Extra two buttons I use for forward/backward command within Internet Explorer. It would be nice if the same two extra buttons I could use in LR.
    At the moment I have the two extra buttons programmed to function as right/left arrow. That allows me to use them to go next/previous image in LR. In order to use them as a forward/backward command within IE I have to press Alt key.
    It would be nice if LR team could add IE forward/backward to the list of keyboard shortcuts.
    Best regards,
    Ivan Kmecko

    This is a function of the mouse driver...you should be able to configure settings based on the current application so LR and IE can use the same keys but it'll mean different things in each app.

  • I can't get big forward/backward buttons

    I have always customized my Firefox browser (thats why I have always loved Firefox since back in version 1.x. However I noticed that Firefox is suddenly becoming less and less customizable and more and more frustrating. I have gotten it to where I want it (almost). For some reason my forward/backward buttons are stuck on small. When they are in the "Navigation Toolbar" they are nice and big, but they shrink in the "Menu Bar". They never did this in 3.6 or prior to 3.6, they always worked fine. I tried turning "Small Icons" on and off with no success.
    Here's what I mean:
    http://i1202.photobucket.com/albums/bb375/murdockx/ff5.jpg

    In edit mode, at concert level, select the pedal. Then in the screen control inspector, in the mappings tab, select actions>next patch.

  • Step Forward/Backward One Field

    Sadly, Avid Media Composer has been my daily editing tool (my place of employment is an Avid house). I started on FCP and freelance using my FCP machine... believe me, I would very much rather be cutting on FCP. Going from FCP to Avid is... well... an interesting and frustrating experience.
    However, AMC does has some useful features. One in particular is the "Step Forward/Backward 1 field."
    I searched the manuals and the FCP shortcut tool, but I don't really see anything similar-- unless I'm totally missing something. Does FCP have such a feature?
    Thanks a bunch.
    Message was edited by: Anthony Tutrone

    You know what, unfortunately even that doesn't really work ... when the playhead is still FCP only ever displays the Upper Field in the Canvas +unless the canvas is set to 100%+. I once filed it as a bug but I am assured that this is how FCP was designed to work therefore it is not a bug. Go figure. If you add the Deinterlace Filter and tell it to remove the Upper Field you'll still see the upper field when the playhead is paused in the timeline, although It does correctly remove the Upper Field during playback and when rendered. The only workaround I'm aware of is to set the zoom level of the canvas window to 100%, at which point both fields are visible, and any field based effects are properly displayed.

  • Backward- Forward  and Forward- Backward

    Hi, all!
    Can you explainfor me about +Backward- Forward  and Forward- Backward+ in General Setting-> Inventory tab-> Planning.
    I don'nt understand it, can you make clealy
    Thank you!

    Hi....
    Consumption Method – there are two available methods of forecast consumption
    by the Sales Order:
    • Backward- Forward – In this method, the Sales Order first goes
    backwards to 'consume' the forecast which is closest to the Due Date of
    the order and continues to the first day of the range if required (as
    defined in Days Backward field below),
    After that, if no forecast is found (or the forecast, which was consumed,
    was insufficient) the Sales Order goes from the Order's due date and
    forward (see an example below).
    • Forward- Backward - In this case the sales order goes forward to
    'consume' the forecast which is closest to the Due Date of the order and
    continues up to the last day of the range if needed (as defined in Days
    Forward field below). After that, if no forecast is found (or the forecast,
    which was consumed, was insufficient) goes from the Order's due date
    and backward.
    Days Backward - Defines the maximum number of days for the Sales Order to go
    backwards in order to 'consume' the forecast.
    Days Forward - Defines the maximum number of days for the Sales Order to go
    forward in order to 'consume' the forecast.
    If you are not yet understand you can search in SAP Portal a note that related to that.
    Or if you want, you can send me your email address and i will send you the PDF file about MRP.
    It has complete explanation for you to know.
    Regards,
    Lina Yuanita

  • Forward / backward consumption Logic ( Macro) in DP Planning book

    Hi ,
          i need to have Forward / backward consumption Logic ( Macro) in DP Planning book .
    For example- say i have keyfigure - A , B.  Kefigure B need to consume the value of keyfigure A ( forward/ backwrd)  in DP planning book .
    Is there any std  MACROfunctionality to do this? 
    If NO. how we can write macro for this requirement ?
    Regrds
    Rajesh

    Hi Aparna & desai,
              Macro function - DEMAND_CALC( ACT_PRODUCT ; ACT_LOCATION ; ACT_VERSION ; ) will work only when we manintain product master with version and if we work in that same planning version. means every time it will go and refer product master setttings of 1) strategy 2) forward consumption days 3) backward consumtion days. So its more usful in SNP planning book.
    But i am working in DP planning book and version which i am working is  not involved in product master. so i hope this function will not work.
    Is there any otherway  to achive this with time series keyfigure . what logic i can use for macro?
    Regrads
    Rajesh

  • MouseWheel event also passed to browser

    In my application the mouseWheel event is handled in a custom
    component to zoom in or out. That works fine. The application is
    placed on a page with just this application (using the HTML wrapper
    with Flash player detection and express install, and using an
    access verification to generate parameters for the application).
    This page is then included in another page using the IFRAME
    element. When I now use the mouse wheel, the zooming takes place
    but also the browser scrollbars are controlled.
    How can I prevent that the browser reacts on the mouse wheel
    when the cursor is in my application? I tried
    event.stop(Immediate)Propagation but that didn't work.

    I am having the same problem. I use the mouseWheel event to
    change the selectedIndex of a ToggleButtonBar. This works fine, but
    in the web browser it also scrolls the web page. Is there any way
    to prevent this?
    Thanks for any help!
    -James

  • Magic mouse forward backward swiping does not work from time to time

    Hello...
    from time to time the forward/backward swiping functionality of my magic mouse does not work (The scrolling works though). Disconnecting and reconnecting does not do the trick. So I guess it might be a software problem. Restarting the iMac does not always help at once. After a couple of times it will work though again.
    Can anyone help?
    Regards
    Bjoern

    your answer should be here.
    http://discussions.apple.com/thread.jspa?threadID=2211072&start=0&tstart=0

  • Wmode=opaque, origin of x, y of mousewheel event based on parent frame

    wmode=opaque, origin of x, y of mousewheel event based on parent frame.
    as a result , mousewheel on the dropdown of combo box, dropdown closed.
    Header Area
    Tab Area
    SWF Area is here.
    wmode=opaque
    The x, y of mousewheel is missing for value of top and left area.
    wmode=window
    The x, y of mousewheel is correct.

    http://forums.adobe.com/thread/628143

  • How to forward Microsoft Outlook event to BB Curve 8330 without accepting second invitation.

    Hi everyone,
    I am using a Telus BB 8330 Curve as my personal phone and PDA.  I am using Microsoft Outlook 2007 without BES at work.  When a colleague at work invites me for a meeting on Outlook I accept the invitation.  How do I forward the meeting (event) to my BB Curve without having to accept a second invitation on my BB.  The problem is when I accept the invitation on my BB, my colleague sees that I have accepted two invitations for the meeting and he sees that I have sent the invitation to another (personal) e-mail address.  How do I go around in doing this without the people at work finding out that I am forwarding these events to my personal calendar on my BB.
    I tried iCalendar but it doesn't work on the BB.
    Thanks.

    I believe I've answered my own question.  When I forward an invitation from work to my BB, I don't need to accept the invitation.  The event is automatically inserted into my calendar.  This way my BB does not send an acceptance e-mail back to the meeting organizer.  Sweet!

  • How to disable  the mouseWheel event in Flex2?

    How to disable the mouseWheel event? Basically I want my
    flex2 app not to respond to any mouse wheel events. Thanks.

    I downloaded one of the PDF form (IMM5490) from cic.gc.ca and saved it on my computer after filling it up. Later on the following message popped up when I tried to open the form again later to in order to make some changes.
    "This document enabled extended features in Adobe Reader. The document has been changed since it was created and use of extended features is no longer available. Please contact the author for the original version of this document"
    Your help in this regard will be greatly appreciated, since, I have already filled the form with a lot of information and I will not be able to edit the form with additional information unless I disable the extended features ( I guess).

  • Keystroke for going forward/ backwards?

    Is there a Keystroke for going forward/ backwards?

    Press the Command and left arrow key to go to the previous page, or the right arrow for the next page.
    (49581)

Maybe you are looking for

  • What do I need to extend my home network?

    I want to extend the range and services of my existing home network. It is wired on the first floor from the cable modem to a Cisco 4-port BEFSR41 router to a hub feeding a micro cell, several Windows boxes, a Roku2 box and an NAS. One of the router

  • Finder Arrange by Kind - Disable Coverflow/Show All by Default?

    I have Finder set to Arrange by Kind and sort by name in OS X 10.7 and it's much better than on Snow Leopard with one exception.  Folders are shown first (which I love) and the icons are shown in groups (which I love), but the groups by default are i

  • DNS Error when trying to demote DC

    I'm getting an error ("The directory service is missing mandatory configuration information, and is unable to determine the ownership of floating single-master operation roles") when trying to run dcpromo to demote a domain controller. Searching arou

  • After Effect CS5 English version ...

    Where can i get After Effect CS5 english version ?  http://helpx.adobe.com/fr/creative-suite/kb/cs5-product-downloads.html after effect cs5 in english is a dead link ... http://trials2.stage.adobe.com/dlm/AdobeProducts/AEFT/10/osx10-64/AfterEffects_1

  • Once artwork is added in iTunes do I need to save the image?

    Once I add and save a jpg image as my artwork for an MP4/AAC movie file to iTunes do I have to save the jpg file that resides on my desktop? Thanks =D