重写如下方法。 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自己定义。
67,549
社区成员
225,860
社区内容
加载中
试试用AI创作助手写篇文章吧