For that API, you might consider using an AWT root Window with a JFXPanel
rather than a JavaFX Window to hold your JavaFX UI.  But discussion of how
to code the application side is not relevant for this list.

For the record here are the relevant JavaFX issues:
https://bugs.openjdk.java.net/browse/JDK-8091107
https://bugs.openjdk.java.net/browse/JDK-8091517

If you want to discuss those further, this list might be the right place.
Currently JavaFX modules require the java.desktop module, so it doesn't
hurt your JRE footprint to use the Swing integration.  Hopefully
that dependency won't last long though (see
https://bugs.openjdk.java.net/browse/JDK-8240844), and perhaps at the point
the desktop module dependency is removed, the motivation to implement the
above issues will be higher.

Cheers,

Scott


On Mon, Nov 2, 2020 at 11:46 AM Will Iverson <wiver...@gmail.com> wrote:

> What Window should I pass in for the setWindowProgressState window
> argument?  It requires a java.awt.Window?
>
> On Sun, Nov 1, 2020 at 5:48 PM Scott Palmer <swpal...@gmail.com> wrote:
>
>> They work fine. Just remember to use the Swing/AWT event thread to call
>> them.
>>
>> Scott
>>
>> > On Nov 1, 2020, at 8:39 PM, Will Iverson <wiver...@gmail.com> wrote:
>> >
>> > Looking at native desktop integration with JavaFX.  As I was
>> exploring, I
>> > noticed that the java.awt.Taskbar API does not appear to be available
>> for
>> > JavaFX Windows.
>> >
>> >
>> https://docs.oracle.com/javase/10/docs/api/java/awt/Taskbar.html#setWindowProgressState(java.awt.Window,java.awt.Taskbar.State)
>> >
>> > Many of the other methods on this class (e.g. setting progress, custom
>> > icons) work fine on macOS from my testing so far.
>> >
>> > Is there any way to use the AWT methods from a JavaFX app?
>> >
>> > Cheers,
>> > -Will
>>
>

Reply via email to