javafxports

Android “back” button vs Desktop “Escape” key

老子叫甜甜 提交于 2019-11-28 14:27:37
I am writing an app using JavafxPorts that I am planning on running on both Android and Desktop (PC). I am trying to keep my code as generic as possible. My question is... how can I support both the "back" button on Android and have it be equivalent to the "Escape" key on PC? Basically I want to bring up the menu when the back button is pressed on Android or if the Escape key is pressed on PC. Thanks! JavaFXPorts already has support for the back button on Android: it is mapped to the Escape key. You can also use Gluon Charm Down, an OSS project that will let you easily find out about the

Gluon mobile cross-platform adsView

断了今生、忘了曾经 提交于 2019-11-28 10:54:19
问题 Is there any way to integrate ads such as Google's Admob library into gluon mobile on either android or iOS or hopefully both? This is the gradle file, I have downloaded the Google Play Services library and the google Repository : buildscript { repositories { jcenter() } dependencies { classpath 'org.javafxports:jfxmobile-plugin:1.2.0' } } apply plugin: 'org.javafxports.jfxmobile' repositories { jcenter() maven { url 'http://nexus.gluonhq.com/nexus/content/repositories/releases' } }

JavaFX Android Port - Google Play Services

空扰寡人 提交于 2019-11-28 10:31:48
问题 I have written a little game on JavaFX and ported it successfully to Android. Now I want to include some Google Ads. For this I created a PlatformService and AndroidPlatformProvider like in this example shown. I'm using the Gluon plugin for Netbeans I added this to my build.gradle file: repositories { def androidHome = System.getenv("ANDROID_HOME") maven { url "$androidHome/extras/android/m2repository/" } maven { url "$androidHome/extras/google/m2repository/"} } dependencies { compile

Play a video using JavaFX on Raspberry Pi

大兔子大兔子 提交于 2019-11-28 08:36:29
问题 I need to run a JavaFX project on Raspberry Pi (RASPBIAN JESSIE). The project includes usage of WebView and MediaView/MediaPlayer. Since Oracle does not support JavaFX on ARM platforms, I tried JavaFX port by Gluon (JavaFX Embedded SDK 8.60.8). WebView works almost perfectly. However, when I want to play a video using MediaPlayer/MediaView, I get the exception: Error in GstPipelineFactory: can't find element for factory named qtdemux Exception in Application start method java.lang.reflect

How to run JavaFX in Android Studio and make ImageView

亡梦爱人 提交于 2019-11-28 05:11:51
问题 I have an interface with javafx.scene.image.Image class. I must implement this and create ImageView. So, how to add JavaFx into my Adnroid Studio Project and how to do ImageView or other Image element in my activity? User.java import javafx.scene.image.Image; public interface User { String getName(); int getId(); Image getIcon(); } 回答1: Based on JavaFXPorts and the Kokos sample, you can add JavaFX to an Android project created with Android Studio, and you will be able to run a JavaFX scene

How can i get JavaFX working on raspberry pi 3

ε祈祈猫儿з 提交于 2019-11-28 01:35:19
问题 please can someone provide me with simple step by step instructions for getting javafx working on raspberry pi 3. I have tried all day to add javafx to raspberry pi 3 and i am still getting the error: "JavaFX deployment library not found in the active JDK" in netbeans when i try to build, even though there are no errors showing in my code. I downloaded the gluon community build for javaFX embedded sdk here: http://gluonhq.com/labs/javafxports/downloads/ and followed the instructions here:

Empty bin,libs,src folders after creating Android project using Javafx android-tools

亡梦爱人 提交于 2019-11-27 19:35:43
问题 After creating an Android project using Javafx android-tools, the folders bin, libs, and src were empty! I followed this tutorial: android / Building and deploying JavaFX Applications. Have I missed something? Please help! 回答1: I think that tutorial is quite old... Now you can just use the last plugin they have realeased. Go to Getting Started site, and check you have everything in place. Basically, you will need: JDK8u40 early access release installed, JAVA_HOME should be set with the JDK

java.lang.StackOverflowError when pressing FX ComboBox on Android

大城市里の小女人 提交于 2019-11-27 16:30:56
When using JavaFXPorts on Android (Android 4.1.1 on Asus Transformer Prime TF201 tablet), a java.lang.StackOverflowError is thrown when pressing on a ComboBox (see below the top stacks of the stacktrace). It happens in a ComboBox in my FX application and is also 100% reproducible with the ComboBox example that is in Ensemble. In other words: can't use JavaFX ComboBox. I'm aware of the Android stack size limit posted in many forums and there are various suggestions on what to do when it happens with Android UI and Android APIs. However, can't find a relevant idea to apply when using JavaFX UI

Textfield copy action on long hold (copy popup)

半世苍凉 提交于 2019-11-27 08:10:49
问题 I have Textfield and I want to copy content of it on my android device. If I run it as a windows desktop application I can select the text right click I got the popup menu with possible actions. Is there anyway to get this popup menu also on Android? 回答1: The push and hold event can be easily simulated in JavaFX, as in this question. Once you get the initial event, all you need to do is call the ContextMenu from the TextField. Since TextField.getContextMenu() won't return the default one, you

JavaFx Ensemble on Raspberry pi

廉价感情. 提交于 2019-11-27 07:55:26
I'm trying to run Esemble8.jar on my new RaspBerry pi. I followed this tutorial: http://www.oracle.com/webfolder/technetwork/tutorials/obe/java/RaspberryPiFX/raspberryfx.html I was able to install Java8 but when I try to run the Ensemble8.jar (or any other small JavaFx application) I've this error: Error: Could not find or load main class ensemble.EnsembleApp My PATH is correct; have you some suggestion to fix the problem? Thanks! Since the 8u33 for ARM version, Oracle has removed JavaFX from the ARM distribution, as it was announced here . You can read some statements about this in these