67,541
社区成员
发帖
与我相关
我的任务
分享
重写如下方法。
protected Point getInitialSize() {
String ostype = System.getProperty("os.name").toLowerCase();
if (ostype.equals("windows xp")) {
return new Point(x, y);
} else {
return new Point(x1, y1);
}
}
x,y自己定义。