Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JavaFX Touch events on Linux

torbuntuJul 24 2020 — edited Jul 27 2020

Hello,

I've been working on building JavaFX applications for the PinePhone. This is an aarch64 Linux mobile device. I modified the JavaFX build.gradle to include aarch64, since it isn't supported currently, to make this work so I can use Desktop JavaFX on my phone, since it runs "Desktop Linux" and not android.

This works just great and I can build my applications on my desktop and just copy the jar over to the phone.

However, the issue: JavaFX on Linux Touchscreen support is broken. The events only come through as Mouse Entered or Mouse Exited events. I can't click on items, and I can't use touch gestures of any kind.

I have been trying to figure this out for months now, and have not gotten very far.
I found this: How to use touchscreen events under Linux and Javafx 2.2  from 2012.

and this: https://bugs.openjdk.java.net/browse/JDK-8217955 from last year. Also here: https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8217955

Which points unfortunately to this closed issue here: https://github.com/javafxports/openjdk-jfx/issues/329#issuecomment-459433106

There is a comment about evaluating for openjfx13, but I still see the issue is open and it affects my builds from 14 up to recent from source.

As more and more touch devices with Linux enter the market (As the PinePhone, the Librem5, and the PineTab, etc...) it would be really nice to be able to actually build and run JavaFX applications on these devices.

Comments

The problem is in processing of check constraints - it seems there is a check constraint without condition. Can you run query for check constraints and to see in what column is the condition and if there is a check constraint without condition

Philip

NISHANTH BEJGAM

Thank you so much Philip. I followed your instruction and by executing the following queries, I see no results returned. and validated the CHECK constraints with conditions as well. Besides, I see couple of constraints are in disabled state in scheme now, please confirm will that cause the issue.
select constraint_name,search_condition from user_constraints where constraint_type='C' and search_condition is NULL;
select constraint_name,search_condition from all_constraints where constraint_type='C' and search_condition is NULL
select constraint_name,search_condition from dba_constraints where constraint_type='C' and search_condition is NULL.

there is one more column SEARCH_CONDITION_VC - can you check it as well?

NISHANTH BEJGAM

all the constraints are having NULL value for SEARCH_CONDITION_VC however SEARCH_CONDITION does has the value in it.

what's the DB version, PDB or CDB?

NISHANTH BEJGAM

it is 12C, PDB

Philip Stoyanov-Oracle

I cannot reproduce in my environment. How those tables and check constraints are created. Do you connect as owner of those tables or you see them through grants and synonyms. Are they in another container/PDB?

1 - 7

Post Details

Added on Jul 24 2020
2 comments
789 views