Playing around with the WebNotificationPopup, because it is derived from a WebPopup, which extends WebPanel, it can be added to a Window, such as WebFrame.
The following code will show how to show a WebNotificationPopup outside of a window. It does not show code to position it correctly in the bottom right corner of the screen.
- Code: Select all
WebFrame frame = new WebFrame();
WebNotificationPopup popup = new WebNotificationPopup();
Setting the frame undecorated and setting the background with 0 Alpha will show only the WebNotificationPopup and can be displayed outside the current window! I don't know how you position the Popup inside a Window, though I think you can probably use similar code utilizing GraphicsEnviroment and getting graphics devices and such.