Type: Posts; User: Mr.777
Also, dispose() is the method of java.awt.Window and setVisible() is of java.awt.Component classes.