Position and size of window whith Desktop Java class -


the following code opens text file application operating system has set.

import java.awt.desktop; import java.io.file; import java.io.ioexception;  public class main {   public static void main(string[] a) {     try {       desktop desktop = null;       if (desktop.isdesktopsupported()) {         desktop = desktop.getdesktop();       }         desktop.open(new file("c:\\a.txt"));     } catch (ioexception ioe) {       ioe.printstacktrace();     }    } } 

from here, can know size , position of window opens?

thanks help.

greetings.

i not believe there simple way. method doesn't return , window opens separate application anyway.

there might way os specific @ running processes , build collect information not easy.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -