Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Yes, you can use the following methods:

1) setEnabled(boolean enabled) method can be used to enable or disable the JFrame.

2) setOpacity(float opacity) method can be used to set the opacity of the JFrame.

3) setDefaultCloseOperation(int operation) method can be used to set the default close operation of the JFrame.

4) setExtendedState(int state) method can be used to set the extended state of the JFrame, such as maximized or minimized.

You can use a combination of these methods to achieve the desired behavior of displaying or hiding the JFrame, without using setVisible() method.