I am making a program using GUI, but the program would be run on different OS platforms. So I need a method that recognizes if the OS uses GUI in order my program to print out the results. I would be grateful if anyone could help me with that.
posted 8 years ago
Do a search through the API index for methods called isHeadless() or similar. That should help.