You might try this:
[CODE]
import java.awt.*;//Where the Toolkit is located, I think
public class jFileFormat extends JFrame
{
//... Var declarations
//--+-- --+-- --+-- --+-- --+-- --+-- --+-- --+-- --+-- --+-- --+--
public jFileFormat()
{
//CONSTRUCTOR
super("Johns jFileFormat");//The JFrame Title
Toolkit tk = Toolkit.getDefaultToolkit();//see Cay Horstman, p. 273 , Core
Java I
Dimension d = tk.getScreenSize(); //Gets the user screen size
int scrnHigh = d.height; //Pulls out the High
int scrnWide = d.width; //Pulls out the Wide
//setSize(scrnWide *9/10, scrnHigh *9/10);//sets screen to 0.9 size
setSize(scrnWide, scrnHigh);//sets screen to FULL size
//setLocation(scrnWide *1/20, scrnHigh *1/20);//CENTER it for 9/10th size
setLocation(0, 0);//
Image icn = tk.getImage("snp_bluT.gif");//Frame Icon
this.setIconImage(icn);//Set Icon
//... CONSTRUCTOR More code
}//~End of CONSTRUCTOR
// ... CLASS code continues
}//~END of CLASS
[!CODE]