JFrame Set Visibilitas

import javax.swing.JFrame;

JFrame frame = new JFrame(); // creates jframe, sets it as "frame"

frame.setVisible(true) // Visibility boolean value, true or false, to hide the JFrame, set it to false
ayaan