I was trying to prevent applications from stealing focus and flashing with the taskbar. There's, unfortunatelly, no clean winapi approach to this, but this post on SuperUser describes how to hook WinApi function calls with his own (dummy) functions.
That looks really good, but since I have already started a java project, I'll need to port this code somehow - though I really regret I'm not using C++.
Therefore I need to know how to apply my user-defined functions to the target window. How to hook winapi methods from java?