Hi,
Has this issue been resolved as I too am seeing this issue, **on some PC's**?
On my PC (and others in development), the popup does not grab focus, but on a critical user's PC it does - and this is annoying to him.
This is the code I use to create the alert - should I remove the call to alert.setOwner(mc)? "mc" is the main dockable frame window.
- Code: Select all
private Alert createAlert(long duration) {
Alert alert = new Alert();
alert.setOwner(mc);
alert.setTimeout((int)duration);
alert.setTransient(false);
alert.setPopupBorder(BorderFactory.createLineBorder(new Color(128, 128, 128), 3));
CustomAnimation showAnimation = new CustomAnimation(
CustomAnimation.TYPE_ENTRANCE,
CustomAnimation.EFFECT_FLY,
CustomAnimation.SMOOTHNESS_MEDIUM,
CustomAnimation.SPEED_VERY_FAST);
showAnimation.setVisibleBounds(PortingUtils.getLocalScreenBounds());
showAnimation.setFunctionY(CustomAnimation.FUNC_BOUNCE);
showAnimation.setDirection(CustomAnimation.BOTTOM);
alert.setShowAnimation(showAnimation);
CustomAnimation hideAnimation = new CustomAnimation(
CustomAnimation.TYPE_EXIT,
CustomAnimation.EFFECT_FLY,
CustomAnimation.SMOOTHNESS_MEDIUM,
CustomAnimation.SPEED_VERY_FAST);
hideAnimation.setVisibleBounds(PortingUtils.getLocalScreenBounds());
hideAnimation.setDirection(CustomAnimation.BOTTOM);
alert.setHideAnimation(hideAnimation);
return alert;
}