I have a swing component: a JFrame in fact.
I noticed that when my code myframe.setVisible(flag);
is executed it becomes invisible if flag is equal to false
and visible otherwise.
Does anybody know why?
I have a swing component: a JFrame in fact.
I noticed that when my code myframe.setVisible(flag);
is executed it becomes invisible if flag is equal to false
and visible otherwise.
Does anybody know why?
Because that's what the setVisible
method does. The JFrame
class inherits the setVisible
method from java.awt.Window
.