Re: Jpopupmenu Bug/Glitch When Showing Submenu

2022-05-25 Thread Davide Perini
Il 09/05/2022 18:14, Davide Perini ha scritto: I add a video that shows the issue. https://www.youtube.com/shorts/IYq_yHemsgA as you can see, there is no issue until I put the mouse pointer over the JMenu (submenu), once I put the mouse on the JMenu the entire JPopupMenu shows the glitch

Re: Looked-up color fails for -fx-background-color in JavaFX CSS file

2022-05-18 Thread Davide Perini
Yes, I'm sorry, that was the issue. Thanks Davide Il 18/05/2022 14:10, Kevin Rushforth ha scritto: Hi Davide, Are you referring to https://bugs.openjdk.java.net/browse/JDK-8268657 ? I just tried it again, and it works fine for me. -- Kevin On 5/18/2022 4:12 AM, Davide Perini wrote: Hi

Looked-up color fails for -fx-background-color in JavaFX CSS file

2022-05-18 Thread Davide Perini
Hi all, someone else opened an issue in past on this problem. I have the exact same problem: https://mail.openjdk.java.net/pipermail/openjfx-dev/2021-June/030723.html Kevin closed the issue because it was not able to reproduce but I can reproduce it on JavaFX 18.0.1 Can you double check it

Re: What can I do with the GStreamer bundled in JavaFX? Can I record the screen?

2022-05-11 Thread Davide Perini
that is something we have considered providing in the future. -- Kevin On 5/10/2022 1:02 PM, Davide Perini wrote: Hi all, I haven't understood what part of GStreamer is included in JavaFX. Can I record the screen with it using d3d11screencapturesrc or ximagesrc? Thanks Davide

What can I do with the GStreamer bundled in JavaFX? Can I record the screen?

2022-05-10 Thread Davide Perini
Hi all, I haven't understood what part of GStreamer is included in JavaFX. Can I record the screen with it using d3d11screencapturesrc or ximagesrc? Thanks Davide

Re: Jpopupmenu Bug/Glitch When Showing Submenu

2022-05-09 Thread Davide Perini
I add a video that shows the issue. https://www.youtube.com/shorts/IYq_yHemsgA as you can see, there is no issue until I put the mouse pointer over the JMenu (submenu), once I put the mouse on the JMenu the entire JPopupMenu shows the glitch. Thanks Davide Il 09/05/2022 18:04, Davide Perini

Re: Jpopupmenu Bug/Glitch When Showing Submenu

2022-05-09 Thread Davide Perini
compatible with SystemTray JOptionPane.showMessageDialog(null, "SystemTray cannot be initialized" + System.lineSeparator() +"this system is not compatible!", "Tray icon skeleton initialization error", JOptionPane.ERROR_MESSAGE ); //$NON-NLS-1$ //$NON-NLS-2$ System.exit(1 ); }

Jpopupmenu Bug/Glitch When Showing Submenu

2022-05-07 Thread Davide Perini
Hi all, I'm using a JPopupMenu to workaround the lack of a "real tray icon" in JavaFX. This is the simple code I'm using: https://github.com/Sylvain-Bugat/tray-icon-skeleton/blob/master/src/main/java/com/github/sbugat/trayiconskeleton/TrayIconMainClass.java It all works well until I add a

How to change the default color used for selected elements?

2022-04-09 Thread Davide Perini
Hi all, as title. How to change the default color used for selected elements? Is there a way to do it with CSS? Thank you! Davide

Is it wise to use JavaFX 18 with JDK 17?

2022-03-27 Thread Davide Perini
Hi all, is it wise to use JavaFX 18 with JDK 17? Is there any particular reasons why not to use a "newer JavaFX" version with an "older JDK"? Where can I see what are the supported JDK for the JavaFX version I'm running? Thank you! Davide

Re: Check if a label is ellipsized and then add a tooltip

2022-02-25 Thread Davide Perini
. There isn't a (read-only) overrun or displayedText property, either of which would allow an app to know. The only thing I can think of to work around this is to estimate the size that the text would need and compare it to the available size. -- Kevin On 2/23/2022 5:03 AM, Davide Perini wrote: Hi, I

Check if a label is ellipsized and then add a tooltip

2022-02-23 Thread Davide Perini
Hi, I have a label inside a gridpane. It is possible to check if the label is ellipsized and if yes, add a tootltip to let the user read the entire label when overing the label with the mouse? Thanks Davide

Re: Scene builder crash in IntelliJ 2021.3 and JDK 17.0.1

2021-12-17 Thread Davide Perini
PS: I have this problem on both Windows 11 and Linux Ubuntu 20.04. Il 16/12/2021 17:01, Davide Perini ha scritto: As title. Using IntelliJ 2021.3 and JDK 17.0.1 with JavaFX 17.0.1. As soon as I open an .fxml it ask me to install scene builder, I installed it and now Intellij crashes as soon

Scene builder crash in IntelliJ 2021.3 and JDK 17.0.1

2021-12-16 Thread Davide Perini
As title. Using IntelliJ 2021.3 and JDK 17.0.1 with JavaFX 17.0.1. As soon as I open an .fxml it ask me to install scene builder, I installed it and now Intellij crashes as soon as I open an fxml. Any idea? Thanks Davide

Re: JavaFX, show canvas on second scree, works well on Windows but not on Linux

2021-10-16 Thread Davide Perini
inY());     stage.show();     stage.setFullScreen(true); Thanks Davide Il 14/10/2021 16:05, Davide Perini ha scritto: Hi all, I have a small piece of code that shows a canvas with JavaFX. I want to display the canvas on the second screen. This works well in Windows but not on Linux Ubuntu. Stage st

JavaFX, show canvas on second scree, w

2021-10-14 Thread Davide Perini
Hi all, I have a small piece of code that shows a canvas with JavaFX. I want to display the canvas on the second screen. This works well in Windows but not on Linux Ubuntu. Stage stage =new Stage(); Group root =new Group(); Scene s =new Scene(root, 1920, 1080, Color.BLACK); GraphicsContext gc;

Get location from HTML 5 webview

2021-09-05 Thread Davide Perini
Hi all, is it possible to get the location from an HTML5 webview? Thanks Davide

Re: Get how many monitors are connected.

2021-09-05 Thread Davide Perini
all the monitors respond. Currently my primary monitor is screen 2 according to Windows. Using the bounds you can determine however what is the left/right most screen and which screens go in between. --John On 03/09/2021 16:58, Davide Perini wrote: mmm... I confirm that it isn't really

Re: Get how many monitors are connected.

2021-09-03 Thread Davide Perini
if there are more than 2 screens, I don't know of a reliable way to distinguish the second, third, and so on. -- Kevin On 9/3/2021 7:06 AM, Davide Perini wrote: Hi, I'm using this to get how many monitors is connected to the PC: for (Screen screen : Screen.getScreens()) { } Is there a way to know

Get how many monitors are connected.

2021-09-03 Thread Davide Perini
Hi, I'm using this to get how many monitors is connected to the PC: for (Screen screen : Screen.getScreens()) { } Is there a way to know what is the first, second and third monitor? Using Windows and I would like to see what is the first monitor set in windows, what's the second and so on.

java: module not found: eu.hansolo.medusa

2021-08-15 Thread Davide Perini
Hi all, I'm trying to use the medusa gauges. I have added those lines to my pom.xml eu.hansolo Medusa 16.0.0 and this to my module-info.java requires eu.hansolo.medusa; I can compile use mvn clean install but I cannot run my main file from intellij. I get this error: java: module not

Re: Java FX dark theme

2021-07-25 Thread Davide Perini
this stuff - https://m.youtube.com/watch?v=NusKg2ZWnrg <https://m.youtube.com/watch?v=NusKg2ZWnrg> the stuff you are interested in starts around minute 9:20 Tom Von meinem iPhone gesendet Am 24.07.2021 um 18:14 schrieb Davide Perini : Hi all, I am using some CSS rules to create a "

JavaFX tray icon.

2021-07-24 Thread Davide Perini
Hi guys, will we ever see a tray icon support in JavaFX? I'm trying to style my tray icon PopupMenu with AWT but sincerely I'm not able to do it. Hope that JavaFX will support tray icon soon. Is there some hope to see tray icon in Java FX? Thanks Davide

Java FX dark theme

2021-07-24 Thread Davide Perini
Hi all, I am using some CSS rules to create a "dark theme". Is it possible to change the color of the window? As you can see in this picture I have a dark theme but the window border is white. can I change that color? Thank you. Davide

Re: TimePicker

2021-05-26 Thread Davide Perini
enough work to do in other areas. On 2021-05-26 16:29, Davide Perini wrote: But why I need JFXtras to have a timepicker? O_o Il 26/05/2021 16:14, Tom Eugelink ha scritto: JFXtras has one. https://github.com/JFXtras/jfxtras/blob/11/jfxtras-controls/src/main/java/jfxtras/scene/control

Re: TimePicker

2021-05-26 Thread Davide Perini
But why I need JFXtras to have a timepicker? O_o Il 26/05/2021 16:14, Tom Eugelink ha scritto: JFXtras has one. https://github.com/JFXtras/jfxtras/blob/11/jfxtras-controls/src/main/java/jfxtras/scene/control/LocalTimePicker.java On 2021-05-26 15:03, Davide Perini wrote: Hi guys

TimePicker

2021-05-26 Thread Davide Perini
Hi guys, is there a simple time picker in JavaFX? I only see DatePicker but not TimePicker. Thanks Davide

JavaFX 15 with Java 14?

2021-02-05 Thread Davide Perini
Hi all, is it safe to use JavaFX 15 with Java 14? How JavaFX is related to Java version? Thanks Davide

Re: Show a stage on a second and third monitor, wrong order in JavaFX Screen.getScreens()

2021-01-08 Thread Davide Perini
Forgive me, it was my fault, JavaFx starts from index 0. Regards, Davide Il 09/01/2021 02:38, Davide Perini ha scritto: Hi all, I have a triple display setup. I want to display a stage on the second and third monitor. To do this I use the displayNumber variable and this small snippet

Show a stage on a second and third monitor, wrong order in JavaFX Screen.getScreens()

2021-01-08 Thread Davide Perini
Hi all, I have a triple display setup. I want to display a stage on the second and third monitor. To do this I use the displayNumber variable and this small snippet for (Screen screen : Screen.getScreens()) { Rectangle2D bounds = screen.getVisualBounds(); if (index == displayNumber) {

Re: Can't load fxml on Macos

2020-10-20 Thread Davide Perini
, 2020, at 12:28 PM, Davide Perini wrote: Hi all, this code works well on both Windows and Linux running Java 15 on JavaFX 15. FXMLLoader fxmlLoader =new FXMLLoader(GUIManager.class.getResource( fxml + Constants.FXML)); return fxmlLoader.load(); It doesn't work on Macos returning a nullpointer

Can't load fxml on Macos

2020-10-20 Thread Davide Perini
Hi all, this code works well on both Windows and Linux running Java 15 on JavaFX 15. FXMLLoader fxmlLoader =new FXMLLoader(GUIManager.class.getResource( fxml + Constants.FXML)); return fxmlLoader.load(); It doesn't work on Macos returning a nullpointer exception. Any idea? Why Macos is

Re: JPackage and JavaFX

2020-08-22 Thread Davide Perini
om/fvarrui/JavaPackager for me this tool need to be hightlight and it need feedback On 20/08/2020 02:52, Davide Perini wrote: Hi all, is there someone able to use JPackage with JavaFX under ubuntu with JDK14? When I try to use jpackage on ubuntu I get this error: jpackage -n TestFX -i target

Re: JPackage and JavaFX

2020-08-21 Thread Davide Perini
;. This is different from the one found inside the ".. javafx-sdk-14.0.2.1/lib" directory, resulting in the hash conflict. Tobias Oelgarte Mail: tobias.oelga...@gmail.com On 20.08.20 02:52, Davide Perini wrote: Hi all, is there someone able to use JPackage with JavaFX under ubuntu wi

JPackage and JavaFX

2020-08-19 Thread Davide Perini
Hi all, is there someone able to use JPackage with JavaFX under ubuntu with JDK14? When I try to use jpackage on ubuntu I get this error: jpackage -n TestFX -i target --main-jar tmyjar-jar-with-dependencies.jar -d output --module-path /home/sblantipodi/dev/jdk/javafx-sdk-14.0.2.1/lib WARNING:

Tray Icon?

2020-07-31 Thread Davide Perini
Hi all guys, love JavaFX, it's so productive, so easy to use, can't understand why the world don't use it "for some tasks". I know that tray icon can be easily done with AWT but is there something for JavaFX? Is it possible to create a tray icon with JavaFX? Thanks Davide

Fullscreen canvas

2020-07-23 Thread Davide Perini
Hi all, is it possible to create a fullscreen canvas? I don't find a good doc for JavaFX and canvas. Thanks Davide

Is scene builder abandoned? And what about JavaFX?

2020-07-22 Thread Davide Perini
Hi all, love JavaFX and I think that it is very productive, super awesome. It is pretty sad that scene builder seems so old and unsupported, scene builder still not support spinner and many "newer" elements. Why? Is JavaFX dead or is still active? Since Oracle "abandon" I see no documentation

Re: How to create a fat jar for my JavaFX program?

2020-07-20 Thread Davide Perini
application. Hope it helped In data 20 luglio 2020 21:25:23 Davide Perini ha scritto: PS: I add that I'm not new to maven, before java fx, I had a fat jar with gstreamer library, jna, and so on. the only problem I have is that it seems that I'm not able to bundle javafx with my fat jar

Re: How to create a fat jar for my JavaFX program?

2020-07-20 Thread Davide Perini
PS: I add that I'm not new to maven, before java fx, I had a fat jar with gstreamer library, jna, and so on. the only problem I have is that it seems that I'm not able to bundle javafx with my fat jar. Il 20/07/2020 20.55, Davide Perini ha scritto: I agree, don't want to download a JDK

Re: How to create a fat jar for my JavaFX program?

2020-07-20 Thread Davide Perini
Ok solved it reading this stackoverflow: https://stackoverflow.com/questions/52653836/maven-shade-javafx-runtime-components-are-missing thanks to all Il 20/07/2020 20.55, Davide Perini ha scritto: I agree, don't want to download a JDK. Is there a way to simply to it the old but good way using

Re: How to create a fat jar for my JavaFX program?

2020-07-20 Thread Davide Perini
with Dirk Lemmermann: <https://github.com/dlemmermann/JPackageScriptFX> Michael Am 20.07.20 um 19:25 schrieb Davide Perini: Unfortunantly so few dependencies supports Java Modules this day, so fat JAR is the only way I can do it. Thanks Il 20/07/2020 02.50, Scott Palmer ha scritto: The

Re: How to create a fat jar for my JavaFX program?

2020-07-20 Thread Davide Perini
, Matthias Bläsing ha scritto: Hi, Am Montag, den 20.07.2020, 19:25 +0200 schrieb Davide Perini: Unfortunantly so few dependencies supports Java Modules this day, so fat JAR is the only way I can do it. no it is not. There are seveal ways how to bundle native libraries. jpackage is one way, fat

Re: How to create a fat jar for my JavaFX program?

2020-07-20 Thread Davide Perini
these days. Now you should probably be using jpackage and/or jlink to bundle your application classes with a runtime suitable for running the application. Scott On Jul 19, 2020, at 5:32 PM, Davide Perini wrote: Hi all, thanks for the great project, I love JavaFX. I always used the maven plugin

How to create a fat jar for my JavaFX program?

2020-07-19 Thread Davide Perini
Hi all, thanks for the great project, I love JavaFX. I always used the maven plugin to crete fat jars with all my deps. The resulting jar is an executable one and ready to use. This is my pom that create the fat jar. but when I try to exceute the jar I get this error: Error: JavaFX runtime