List of usage examples for java.awt Frame setBounds
public void setBounds(Rectangle r)
The r.width or r.height values will be automatically enlarged if either is less than the minimum size as specified by previous call to setMinimumSize .
From source file:edu.ku.brc.ui.UIRegistry.java
/** * Clears the GlassPane, meaning it sets the mainComp visible again and sets the GlassPane to be hidden. *///from w ww . j a va 2s.c o m public synchronized static void clearGlassPaneMsg() { Component mainComp = UIRegistry.get(UIRegistry.MAINPANE); if (mainComp != null && getGlassPane() != null && getGlassPane().isVisible()) { getGlassPane().setMaskingEvents(false); getGlassPane().setVisible(false); mainComp.setVisible(true); mainComp.repaint(); Frame frame = (JFrame) get(FRAME); frame.setBounds(frameRect); } showingGlassPane = false; }