Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #31586

Re: mouse listener on javafx swing node

From Jeff Higgins <jeff@invalid.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: mouse listener on javafx swing node
Date 2015-04-19 19:02 -0400
Organization A noiseless patient Spider
Message-ID <mh1c55$pol$1@dont-email.me> (permalink)
References <mh0amo$2vsb$1@ariadne.rz.tu-clausthal.de>

Show all headers | View raw


On 04/19/2015 10:12 AM, Philipp Kraus wrote:
> Hello,
>
> I use a JavaFX application but one of my UI components is a Swing
> componentent, which is added with a SwingNode to my JavaFX UI.
> The Swing component uses a MouseAdapter, which overloads the
> mouseClicked and mouseMove method, but on my SwingNode the mouseMove
> does not work. I would like to catch mouve move, click and drag event on
> a swing node, so how can I pass the events on the SwingNode down to the
> Swing
> component?
>

The manual states:
"All the input and focus events are forwarded to
the JComponent instance transparently to the developer."

Some reasons why the mouseMove does not work.

You've made a mistake in your code, and
there is a bug in the library code,
are among the possibilities.

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

mouse listener on javafx swing node Philipp Kraus <philipp.kraus@flashpixx.de> - 2015-04-19 16:12 +0200
  Re: mouse listener on javafx swing node Jeff Higgins <jeff@invalid.invalid> - 2015-04-19 19:02 -0400
    Re: mouse listener on javafx swing node Philipp Kraus <philipp.kraus@flashpixx.de> - 2015-04-20 18:40 +0200
      Re: mouse listener on javafx swing node Jeff Higgins <jeff@invalid.invalid> - 2015-04-20 15:03 -0400

csiph-web