javafxports

Duplicate files copied in APK META-INF/INDEX.LIST using Gluon

依然范特西╮ 提交于 2019-12-01 07:22:50
问题 I'm deloping a code in neatbeans on javafx with the latest gluon version, and when I run it in my laptop the program doesnt have problems, but when I try run in android I achive this message com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/INDEX.LIST File 1: C:\Users\User.gradle\caches\modules-2\files-2.1\org.javafxports\dalvik-sdk\8.60.8\6630ec66e4703c910ac3fd6151a8494c8b59186b\unpacked\dalvik-sdk\rt\lib\ext\jfxrt.jar File 2: C:\Users\User.gradle

JavaFXPorts: Selected item in ListView is not selected

白昼怎懂夜的黑 提交于 2019-11-30 09:42:53
问题 Here is sample code: package com.javafxportslistviewdemo; import com.gluonhq.charm.down.Platform; import com.gluonhq.charm.down.Services; import com.gluonhq.charm.down.plugins.LifecycleEvent; import com.gluonhq.charm.down.plugins.LifecycleService; import javafx.application.Application; import javafx.beans.value.ObservableValue; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx.geometry.Rectangle2D; import javafx.scene.Scene; import javafx.scene

Export JavaFX project to android

余生长醉 提交于 2019-11-29 16:06:35
I have a project made in JavaFX and want to run it in Android. I have used JavaFXports and have generated the needed apk. Also I managed to install the apk on an emulator. But I need the sources(the source code). In other words I want to be able to debug the project while it is running on the emulator. To debug a JavaFXPorts/Gluon Mobile that you have created using the Gluon plugin for your IDE (NetBeans, IntelliJ or Eclipse), and that you have deployed to the Android emulator (using Android Studio), follow these steps: 1. Create the JavaFX mobile app from your IDE For that you can use the

JavaFXPorts: Selected item in ListView is not selected

 ̄綄美尐妖づ 提交于 2019-11-29 16:00:16
Here is sample code: package com.javafxportslistviewdemo; import com.gluonhq.charm.down.Platform; import com.gluonhq.charm.down.Services; import com.gluonhq.charm.down.plugins.LifecycleEvent; import com.gluonhq.charm.down.plugins.LifecycleService; import javafx.application.Application; import javafx.beans.value.ObservableValue; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx.geometry.Rectangle2D; import javafx.scene.Scene; import javafx.scene.control.Label; import javafx.scene.control.ListView; import javafx.scene.input.KeyCode; import javafx

Play a video using JavaFX on Raspberry Pi

╄→гoц情女王★ 提交于 2019-11-29 15:11:16
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.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect

Textfield copy action on long hold (copy popup)

守給你的承諾、 提交于 2019-11-29 15:07:40
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? José Pereda 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 can either provide your own or try to get the default one. Getting the default one is a little

How to run JavaFX in Android Studio and make ImageView

醉酒当歌 提交于 2019-11-29 14:54:34
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(); } 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 inside an Android fragment. Note that JavaFXPorts is initially intended to run full JavaFX projects on

Gluon Sample Project with JDBC doesn't work on iOS Device

孤者浪人 提交于 2019-11-29 13:11:45
i have simple code with Gluon + JDBC. I can connect this code on Android Device but not on Ipad. my build.gradle; buildscript { repositories { jcenter() } dependencies { classpath 'org.javafxports:jfxmobile-plugin:1.0.6' } } apply plugin: 'org.javafxports.jfxmobile' repositories { jcenter() } dependencies { compile 'mysql:mysql-connector-java:5.0.2' iosRuntime 'mysql:mysql-connector-java:5.0.2' } mainClassName = 'com.mtt8.version15' jfxmobile { android { manifest = 'src/android/AndroidManifest.xml' packagingOptions { exclude 'META-INF/INDEX.LIST' } ios { infoPList = file('src/ios/Default-Info

How can i get JavaFX working on raspberry pi 3

寵の児 提交于 2019-11-29 07:45:16
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: http://docs.gluonhq.com/javafxports/ please can anyone offer any easy to follow advice on getting javaFX

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

走远了吗. 提交于 2019-11-28 14:28:50
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! 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 path. Gradle 2.2.1 installed Android SDK Android Build Tools 21.1.1 using SDK Manager. Gradle Plugin for