PopUp not working when Java enabled

Have a graphic that is to show on popup. When I enable JAVA scripting it doesn't show up. If I take it off it will then placement is off with different sizes of resolutions and all. How to fix this?