I am working on a program that acts as a launcher for other programs. It is possible that there could be 20+ windows displayed when started. I would like someway of specifying which workspace the program opens on, while it is already possible to start the program on a certain workspace, I need a list of the available workspaces in my launcher for the user to choose from and then to pass as a command line argument to the processes when they are started. Is this possible? If it makes any difference, it is on the Java Desktop Environment.
If it is not possible in Java then is it possible in some other language? I could then run that from Java and use its output to produce the list.