Example usage for java.awt Frame setBounds

List of usage examples for java.awt Frame setBounds

Introduction

In this page you can find the example usage for java.awt Frame setBounds.

Prototype

public void setBounds(Rectangle r) 

Source Link

Document

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 .

Usage

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;
}