Re: Windows 11: Notifications vanishes after few seconds.

2024-01-17 Thread Aleksei Ivanov
Hi Davide, The enhancement you submitted is now available in JBS: https://bugs.openjdk.org/browse/JDK-8323821 Use toast notifications on Windows 11 I updated the subject so that it sounds like an enhancement rather than a bug. JDK-8323821 is more specific than https://bugs.openjdk.org/brows

Re: [External] : Re: Windows 11: Notifications vanishes after few seconds.

2024-01-17 Thread Aleksei Ivanov
Thank you, SWinxy. It is a helpful reference, I didn't know such an enhancement already existed: JDK-8266423: Triggering OS toast notifications without the use of SystemTray On 2024-01-09 21:50, SWinxy wrote: Back in mid-2021 I submitted a feature request

Re: [External] : Re: Windows 11: Notifications vanishes after few seconds.

2024-01-17 Thread Aleksei Ivanov
Hi Davide, On 2024-01-08 21:05, Davide Perini wrote: Thanks for the explanation Aleksei but can you explain me what is the OpenJDK direction please? Suppose that you have a feature like this one, a simple notifications. Java worked well with Windows notifications until Win10, then Microsoft cha

Re: Windows 11: Notifications vanishes after few seconds.

2024-01-12 Thread Davide Perini
I wrote to Microsoft and they suggested to use the New APIs (ToastNotification) meant for the purpose https://learn.microsoft.com/en-us/windows/apps/design/shell/tiles-and-notifications/toast-notifications-overview https://learn.microsoft.com/en-us/windows/apps/design/shell/tiles-and-notifica

Re: Windows 11: Notifications vanishes after few seconds.

2024-01-09 Thread SWinxy
Back in mid-2021 I submitted a feature request to add new APIs for toast notifications on macOS and Windows *without* using SystemTray. It's something I'd like to implement. Apple introduced its notification APIs

Re: Windows 11: Notifications vanishes after few seconds.

2024-01-08 Thread Davide Perini
Thanks for the explanation Aleksei but can you explain me what is the OpenJDK direction please? Suppose that you have a feature like this one, a simple notifications. Java worked well with Windows notifications until Win10, then Microsoft changed the APIs for notifications in Win11. Isn't OpenJD

Re: Windows 11: Notifications vanishes after few seconds.

2024-01-08 Thread Aleksei Ivanov
On 2024-01-08 19:30, Davide Perini wrote: Thanks for the Answer Aleksei, I have a lot of Windows apps that uses notifications without problems. even a simple python program like this works correctly. from win11toastimport toast toast('Hello','Click to run python script') Python could use newe

Re: Windows 11: Notifications vanishes after few seconds.

2024-01-08 Thread Davide Perini
Thanks for the Answer Aleksei, I have a lot of Windows apps that uses notifications without problems. even a simple python program like this works correctly. from win11toastimport toast toast('Hello','Click to run python script') is it possible that Microsoft changed the way how to create Not

Re: Windows 11: Notifications vanishes after few seconds.

2024-01-08 Thread Aleksei Ivanov
Hi Davide, The bug that you reported has been moved to JDK project in JBS, you can view it as JDK-8315647 [1]. You should've received a link to it. Is there a way to workaround this JDK bug? I opened a bug report months ago but no one answered. What kind of answer did you expect to receive

Windows 11: Notifications vanishes after few seconds.

2024-01-05 Thread Davide Perini
With previous version of Windows and JDK notification sticked in the Windows Notification Center forever until cancelled. Since the latest Windows/JDK, notifications vanishes automatically after few seconds. ### Code to reproduce the problem ``` import java.awt.*; public class Main {     pu