Category : javafx

So I have this c++ code I wish to implement into my java project. Function: change resolution DEVMODE devmode; devmode.dmSize = sizeof(DEVMODE); devmode.dmPelsWidth = desiredWidth; devmode.dmPelsHeight = desiredHeight; long result = ChangeDisplaySettings(&devmode, DM_PELSWIDTH || DM_PELSHEIGHT); I want to implement this into this header file I generated and into its respected function so I can use ..

Read more

this is a question about tools and integration. I like the program XMeters created by entropy6 https://entropy6.com/xmeters/ I am looking to use JavaFX to create something similar as the tool mentioned above, I cannot find information of how to create a program which integrates into the windows taskbar and also to have the option to ..

Read more

I had to switch from Linux back to Windows 10 for battery-life issues, and I cannot add JavaFX to Netbeans. Using JDK 16, latest version of JavaFX. I’ve created a JavaFX library and added the .jars but, Unlike in my linux version of Netbeans, in windows there is no option to add libraries to the ..

Read more

I am coding a Windows tchat software in JavaFx. I want to display HTML text but without showing the tags. How to do that? There are some examples: 1) String received: "<p>Toto tata titi</p>". What I want to display: "Toto tata titi". Other example: String received: "<p>Test 1 <br> Test 2</p>". What I want to ..

Read more

I’m using this code to set the macOS dock icon of my JavaFX app: // Sets macOS dock icon: try { com.apple.eawt.Application.getApplication().setDockIconImage(SwingFXUtils.fromFXImage(appIcon, null)); } catch (Exception e) { // Doesn’t work on Windows or Linux } I can’t run the app on Windows because it throws the error "java: package com.apple.eawt does not exist" How ..

Read more

I have generated an exe file using jpackager in windows, when I install it and try to run, their is no any response. Here is how I generated it: jpackage -t exe –name "wetu" –app-version 1.0 –input "F:dist" –dest "F:" –main-jar "WetuLantern.jar" –icon "F:icon.ico" –module-path "F:javafx-jmods-16" –add-modules javafx.controls,javafx.graphics,javafx.fxml,javafx.base –win-shortcut –win-menu Any ideas on how to ..

Read more