oldFrame and newFrame would be instances of JFrame. Check the API to find out what exactly setVisible(false) means.
Actually my browse button is on Web page which will then open my swing application.
As my application will have to refresh the web application so I want to open the new web page instead of new one. Is it possible to do the same as you suggest.
Please
tell the details.