adoptium / adoptium/adoptium-support
Windows 11: Notifications vanishes after few seconds.
- Dominant language
- No language data
- Stars
- 59
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Description
### Please provide a brief summary of the bug
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 {
public static void main(String[] args) throws Exception {
SystemTray tray = SystemTray.getSystemTray();
Image image = Toolkit.getDefaultToolkit().createImage("");
TrayIcon trayIcon = new TrayIcon(image);
trayIcon.setImageAutoSize(true);
trayIcon.setToolTip("Demo");
tray.add(trayIcon);
trayIcon.displayMessage("Hello, World", "notification demo", TrayIcon.MessageType.INFO);
}
}
```
### Expected Results
Notifications sent from a TrayIcon should not vanish automatically after few seconds but should stay in the notification center until cancelled by the user.
### Actual Results
Notifications sent from a TrayIcon vanishes automatically after few seconds
### What Java Version are you using?
21.0.1
### What is your operating system and platform?
Windows 11
### How did you install Java?
MSI
Contributor guide
Research direction
Start by running the provided Main reproduction with Java 21.0.1 on Windows 11 and observe the TrayIcon.displayMessage notification in Notification Center. Investigate the Java desktop notification integration; done means notifications remain available until the user dismisses them, matching the expected behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100