摘要:
对话框居中的3种方法:1.int width = shell.getMonitor().getClientArea().width;int height = shell.getMonitor().getClientArea().height;int x = shell.getSize().x;int y = shell.getSize().y;if (x > width) { shell.getSize().x = width;}if (y > height) { shell.getSize().y = height;}shell.setLocation((width - x) / 阅读全文
posted @ 2013-01-28 09:27
rhino
阅读(4521)
评论(0)
推荐(0)

浙公网安备 33010602011771号