Java中this.setLocation
为什么下面这样设置会在屏幕的中间
this.setLocation((screenSize.width - frameSize.width) / 2 - 280 ,(screenSize.height - frameSize.height ) / 2 - 350);
而我改成这样就在屏幕右边看不见的地方去了
this.setLocation((screenSize.width - frameSize.width) ,(screenSize.height - frameSize.height ) / 2 - 350);
难道屏幕的宽度screenSize.width减去一个frameSize.width值还变大了?
frameSize.width不会是负数啊。。。