gluon

CharmListView SelectedItemProperty?

老子叫甜甜 提交于 2019-12-02 02:59:35
I am using the CharmListView and just noticed that it doesn't have a SelectionModel that the ListView has. I used to use listView.getSelectionModel().SelectedItemProperty().addListener() to respond to an item selection event with a ListView . How is that done with the CharmListView? EDIT The app flow is explained below: The user selects a department of a school. This list is in a ListView then a semester. This other list is in a CharmListView : The initialize method of the SemesterPresenter class: public void initialize(URL url, ResourceBundle rb) { loadSemesters(); semesterListView.setItems

JavaFXPorts(Gluon Plugin) Saving Files on Android

和自甴很熟 提交于 2019-12-01 22:27:03
I have a problem to save Files on Android with JavaFxPorts. I've found that link here , but it doesn't work for me. It doesn't found the Interface, and I can't use it. My goal is to save a file on Android with JavaFxports. Thanks If you are trying to add some code in the Android folder, make sure you add correctly the GluonPlatform class in the main project. You can have a look at the GoNative sample in Gluon's sample repository, for finding out how to do it. But to save a file in the app's local folder on your mobile device, you can use Gluon's Charm-Down open source library. It contains

Sharing multiple files with Gluon ShareService (image and txt)

末鹿安然 提交于 2019-12-01 20:58:37
We want to know how we can share multiple files (image and txt file) with the Gluon ShareService. Especially how to share an image which was previously taken and stored (in gallery) with the PictureService. But we need to create a file first with the path and image name. Unfortunately, the PictureService saves the image with the image title consisting of date and time at the moment the picture was taken. We tried to get the image name with the loadImageFromGallery method but this returns void and opens the recent-screen. Here what we've tried to share an image: public void sharePicture() {

create a polyline in gluon mapLayer

拥有回忆 提交于 2019-12-01 11:03:01
Google maps API makes it possible to create a layer on the map containing a polyline linking points together. I have searched where I could to find an example or an implementation for this for gluon's mapLayer. Please advice While there's no explicit API for drawing lines, polylines or polygons on top of a MapView , the MapLayer is a layer where you can draw any JavaFX Shape , providing you take care of scaling it to the map coordinates. For that, if you have a look at the PoiLayer class , you can see that for any MapPoint (defined by latitude and longitude) you can get a 2D point (defined by

Audio performance with Javafx for Android (MediaPlayer and NativeAudioService)

情到浓时终转凉″ 提交于 2019-12-01 11:02:11
I have created, with JavaFX, a game on desktop that works fine (20000 Java lines. As it is a game, the Real Time constraint is important (response time of player's actions). The final aim is to run this application with Android. I have almost finished to "transfer the Java code" from PC to Android, even if I have encountered some real time trouble. I think almost all of them are solved now. For instance, I have minimized the CPU time (consumption) of Shape or Rectangle.intersect(node1, node2) calls that are used for detecting impacts between two mobiles. Thus, the real time has been divided by

Audio performance with Javafx for Android (MediaPlayer and NativeAudioService)

主宰稳场 提交于 2019-12-01 08:07:45
问题 I have created, with JavaFX, a game on desktop that works fine (20000 Java lines. As it is a game, the Real Time constraint is important (response time of player's actions). The final aim is to run this application with Android. I have almost finished to "transfer the Java code" from PC to Android, even if I have encountered some real time trouble. I think almost all of them are solved now. For instance, I have minimized the CPU time (consumption) of Shape or Rectangle.intersect(node1, node2)

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

Could not resolve all dependencies for configuration ':androidRuntimeNoRetrolambdaCopy'. Could not find com.android.support:multidex:1.0.1

大憨熊 提交于 2019-11-30 09:31:41
问题 After Run /gradle Android to deploy the Gluon app in my Android Phone. I have this error: org/controlsfx/control/spreadsheet/SpreadsheetColumn$$Lambda$1 Saving lambda class: org/controlsfx/control/textfield/TextFields$$Lambda$1 :mergeClassesIntoJar FAILURE: Build failed with an exception. * What went wrong: Failed to capture snapshot of input files for task 'mergeClassesIntoJar' during up-to-date check. > java.io.FileNotFoundException: /Users/yotti/Library/Android/sdk/extras/android/support

Could not resolve all dependencies for configuration ':androidRuntimeNoRetrolambdaCopy'. Could not find com.android.support:multidex:1.0.1

浪子不回头ぞ 提交于 2019-11-29 15:51:48
After Run /gradle Android to deploy the Gluon app in my Android Phone. I have this error: org/controlsfx/control/spreadsheet/SpreadsheetColumn$$Lambda$1 Saving lambda class: org/controlsfx/control/textfield/TextFields$$Lambda$1 :mergeClassesIntoJar FAILURE: Build failed with an exception. * What went wrong: Failed to capture snapshot of input files for task 'mergeClassesIntoJar' during up-to-date check. > java.io.FileNotFoundException: /Users/yotti/Library/Android/sdk/extras/android/support/multidex/library/libs/android-support-multidex.jar (No such file or directory) * Try: Run with -

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