java中设置了当前窗体的大小,但就是没有效果,如何弄?帮帮忙

java中设置了当前窗体的大小,但就是没有效果,怎么弄?帮帮忙.
java中设置了弹出窗体的当前窗体大小,但就是没有效果.哪位大虾可以帮帮忙啊.谢谢.

------解决方案--------------------
把jbInit贴出来看看
------解决方案--------------------
代码呢?你用什么写的,记事本还是工具?把代码拿 出来看下才知道
------解决方案--------------------
Editor editor=new Editor();
editor.setSize(700, 500);
Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();//获取屏幕大小
int w = editor.getSize().width;
int h =editor.getSize().height;
int x = (dim.width-w)/2;
int y = (dim.height-h)/2;
editor.setLocation(x,y);
editor.setVisible(true);
------解决方案--------------------
应该是参数设置有问题,将代码贴出来。
------解决方案--------------------
Editor editor=new Editor();
editor.setSize(700, 500);
Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();//获取屏幕大小
int w = editor.getSize().width;
int h =editor.getSize().height;
int x = (dim.width-w)/2;
int y = (dim.height-h)/2;
editor.setLocation(x,y);
editor.setVisible(true);
===========================================================
这是设置大小?