public static void main(String[] args)
{
Dimension screensize = Toolkit.getDefaultToolkit().getScreenSize();
int width = (int)screensize.getWidth();
int height = (int)screensize.getHeight();
System.out.println("宽度:" + width + " 高度:" + height);
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)