HI, I'm oding a java program to do some stuff with some JPG images. I want to add an option to preview one of those JPG images, and I can easily do this by sending a bash command from Java, wich is "xdg-open filename". But I also want to close that new window, and I don't know how. Xkill is not an option because I need to close it automatically. I can work with bash,Java and C.