This behavior is very specific to the Windows operating system, and therefore there is no such way in the standard JDK or AWT / Swing, since they must work sequentially on several different operating systems.
The closest equivalent to what you want is to get the current borders of the screen and move / resize the window according to the flash on the one hand, although this will now have some effect on the desktop or other windows.
The closest thing you are likely to get to what you need is JNIWrapper and WinPack to change the behavior of your own window. However, their documentation shows nothing about toolbars for desktop computers. You will probably have to use your JNI to directly access specific COM functions, and then learn how to do this in C ++, but if you don't know C ++, this will probably go beyond the scope of your project.
Application:
If you want to use your own functions for specific operating systems and desktop managers, you will need to connect to the native C ++ library to connect to Gnome, KDE, Mac OS, etc. Search for "Java JNI" and the window system with which you want to integrate in order to find packages that you can use. For example, for Gnome, see here .
If you want to support multiple operating systems, make sure you create a common interface so that you can create implementations that connect to the corresponding JNIs, depending on which one is available at runtime, and allow returns if none of them not available.
PS. If you want to receive pop-up notifications in your application, Mac OS and various Linux builds support Growl so you can save some time.
BoffinbraiN
source share