Perry Smith

Java Questions & Answers

Home / Java Q & A Page 2 / Java Q & A Archive Main Page

9-29-98

Setting a frame

Hi,

I wonder if there is a way to make a frame or a window show up at a specific location on the screen. Is there a way to specify its sizes as well?

Thanks for your help and effort! Bulgan.

Bulgan


Response
9-30-98

Re: Setting a frame

the methods for java.awt.Window apply the subclasses which include frames, so try these mthods

frameTemp.setSize(iWidth, iHeight);

and

frameTemp.setLocation(new Point(iX, iY));

I've never used ".setLocation(...)" before though

MikeD


Home / Java Q & A Page 2 / Java Q & A Archive Main Page