Title: RE: How to tell Java to put windows in "default" location?

        super(title);
    Toolkit tk = Toolkit.getDefaultToolkit();
    Dimension screen = tk.getScreenSize();
    setSize(525, 535);
    int screenHeight = screen.height;
    int screenWidth = screen.width;
    setLocation((screenWidth/2) - this.getWidth()/2, (screenHeight/2) - this.getHeight()/2);


something like that?
that places them in the middle of the screen...
rev aaron

Reply via email to