Fix Java focus again

Apparently takeTopFocus needs to be a logHook and not a startup hook.  I
have no idea what I'm doing.