3、Screen

主要用来获取屏幕信息

//获取主屏幕
Screen screen = Screen.getPrimary();
//获取用户的所有屏幕
ObservableList<Screen> screens = Screen.getScreens();

//获取当前屏幕dpi像素
screen.getDpi();
//获取用户可视屏幕的宽高
screen.getVisualBounds();
//获取全部屏幕宽高
screen.getBounds();