SyntaxFix
Write A Post
Hire A Developer
Questions
new SecondForm().setVisible(true);
You can either use setVisible(false) or dispose() method to disappear current form.
setVisible(false)
dispose()