javafxports

textfield & combobox problem in javafx android

三世轮回 提交于 2021-02-05 07:01:08
问题 I am having problem in simple javafx android app. The problem is that i build very simple app with some text-fields and combobox in netbeans ide using gradle javafxmobile-plugin. I run the app in android the textfield and combobox causes problem in android mobile . The problem is that when i typed from keyboard in android nothing changes in text-field until i press space button, or choose suggestion in keyboard upper area. Also when i type some text in text-field and switch another then the

Animation “ghosting” on xxhdpi Android javafxports application

江枫思渺然 提交于 2021-01-28 22:15:36
问题 I've written a small javafx app that animates a square moving from the top-left corner to bottom-right. It then reverses the animation and runs it continuously. On my pixel 4 (xxhdpi) the square leaves behind a trail of edges on the return trip. This does not happen on on my Nexus 7 2013 (xhdpi) or on my desktop. Tried both the gluon plugin and also the gluon-vm plugin. Seems related to screen pixel density . . . how do you prevent the ghosting artifacts on dense screens? Image and code below

FXML file inside javafxports project

大兔子大兔子 提交于 2021-01-27 17:40:35
问题 I'm looking information about javafxports technology and can I use inside this project FXML file. This is my build.gradle: buildscript { repositories { jcenter() } dependencies { classpath 'org.javafxports:jfxmobile-plugin:1.1.0' } } apply plugin: 'org.javafxports.jfxmobile' repositories { jcenter() maven { url 'http://nexus.gluonhq.com/nexus/content/repositories/releases' } } mainClassName = 'com.orden.First' dependencies { compile 'com.gluonhq:charm:4.0.0' // Desktop SQL -> https://github

How to reference android.jar in Gluon Project

丶灬走出姿态 提交于 2020-02-24 05:15:47
问题 Above is my Gluon project to deploy JavaFX on Android. My problem is that I cant reference the android.jar. How to resolve this? build.gradle buildscript { repositories { jcenter() } dependencies { classpath 'org.javafxports:jfxmobile-plugin:1.0.0-b9' } } apply plugin: 'org.javafxports.jfxmobile' repositories { jcenter() } mainClassName = 'com.raes.Main' jfxmobile { android { manifest = 'src/android/AndroidManifest.xml' } ios { infoPList = file('src/ios/Default-Info.plist') } } 回答1: When you

Charm 4.0.1 possibility to disable layout adjustment when keyboard shows up

我的梦境 提交于 2020-01-25 21:08:55
问题 I'm facing several problems with the new function which is responsible for adjusting the view layout, when the keyboard shows up. For example when a DatePicker is shown while a TextField is focused: Is there a possibility to disable this function? EDIT: While removing the focus from the TextField before the DatePicker is shown works, there are still some others issues so I would prefer to use my own custom solution AndroidNodePositionAdjuster. Another issue e.g. is an unpleasant white area

JavaFX on iPhone - Laggy ListView scrolling when applying shadow

风流意气都作罢 提交于 2020-01-24 13:24:09
问题 I am developing an app on iOS using JavaFXPorts. I have a Pane that holds a ListView with countries and their flags. I have noticed that ListView scrolling is laggy when I apply the dropshadow effect on the Pane. As you can see from the videos below, without the effect the scrolling is super smooth, whilst applying the effect through CSS, scrolls starts to get laggy. I would like to keep the shadow effect as it makes app more beautiful. So any suggestion is really appreciated. CSS Code I am

android share audio file from assets folder

穿精又带淫゛_ 提交于 2020-01-15 10:43:26
问题 I can't share audio file from assets. Each app says that it can't send the file. Method for converting inputstream to temporary file public File getFile(String Prefix, String Suffix) throws IOException { File tempFile = File.createTempFile(Prefix, Suffix); AssetFileDescriptor tempafd = FXActivity.getInstance().getAssets().openFd(filepath); tempFile.deleteOnExit(); FileOutputStream out = new FileOutputStream(tempFile); IOUtils.copy(tempafd.createInputStream(), out); return tempFile; } Sharing

android share audio file from assets folder

本秂侑毒 提交于 2020-01-15 10:43:18
问题 I can't share audio file from assets. Each app says that it can't send the file. Method for converting inputstream to temporary file public File getFile(String Prefix, String Suffix) throws IOException { File tempFile = File.createTempFile(Prefix, Suffix); AssetFileDescriptor tempafd = FXActivity.getInstance().getAssets().openFd(filepath); tempFile.deleteOnExit(); FileOutputStream out = new FileOutputStream(tempFile); IOUtils.copy(tempafd.createInputStream(), out); return tempFile; } Sharing

android share audio file from assets folder

大兔子大兔子 提交于 2020-01-15 10:43:00
问题 I can't share audio file from assets. Each app says that it can't send the file. Method for converting inputstream to temporary file public File getFile(String Prefix, String Suffix) throws IOException { File tempFile = File.createTempFile(Prefix, Suffix); AssetFileDescriptor tempafd = FXActivity.getInstance().getAssets().openFd(filepath); tempFile.deleteOnExit(); FileOutputStream out = new FileOutputStream(tempFile); IOUtils.copy(tempafd.createInputStream(), out); return tempFile; } Sharing

Run debugger on javaFX project in android

人走茶凉 提交于 2020-01-10 05:55:29
问题 I am trying to rebuild an old javafx project on android. Currently I am using javafxports to do so. The problem is I can't debug it, this is how the project hierarchy looks: The application is started from DisplayClient . So far I am able to log messages using the device monitor. Can you please tell me if it is possible to attach a debugger and if it is how? If any further information is needed I would be happy to give it. 回答1: You can easily attach a debugger to your IntelliJ IDE while