when setting the main window visible, bring it also to front

cusax-fix
Yana Stamcheva 19 years ago
parent c03769c3f5
commit 1ceb846ff2

@ -355,14 +355,17 @@ public boolean isVisible()
* hides the main application window depending on the parameter
* <code>visible</code>.
*
* @param visible true if we are to show the main application frame and
* @param isVisible true if we are to show the main application frame and
* false otherwise.
*
* @see UIService#setVisible(boolean)
*/
public void setVisible(boolean visible)
public void setVisible(boolean isVisible)
{
this.mainFrame.setVisible(visible);
this.mainFrame.setVisible(isVisible);
if(isVisible)
this.mainFrame.toFront();
}
/**

Loading…
Cancel
Save