setSize(EDITOR_WIDTH, EDITOR_HEIGHT);
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); int width = 8*(screenSize.width/10); int height = 8*(screenSize.height/10); setSize(width, height);
    public void setOnScreen()    {        setSize(EDITOR_WIDTH, EDITOR_HEIGHT);        UIUtilities.centerAndShow(this);    }