You can't change the color of frame or dialog borders... that is an OS specific thing... If you need to alert the user to an incoming message and the screen may not be on the top of the desktop, or may be iconified, perhaps this would work instead...
Write once, run anywhere, because there's nowhere to hide! - /. A.C.