Is there way to find out if Java is running on a platform which supports windowing of any kind? I know that you could possibly figure it out by reading in the environment variables, but that might prove to be rather difficult with all the possible combinations.
GraphicsEnvironment.isHeadless()
(另请参见JavaDoc )
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.