📅  最后修改于: 2022-03-11 14:52:14.058000             🧑  作者: Mango
代码示例1
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
int height = screenSize.height;
int width = screenSize.width;