Java Code Examples for javax.swing.JRootPane#setLayout()

The following examples show how to use javax.swing.JRootPane#setLayout() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LuckRootPaneUI.java    From littleluck with Apache License 2.0 5 votes vote down vote up
/**
 * <p>安装布局</p>
 * 
 * <p>set JRootPane layout</p>
 *
 * @param root
 */
protected void installLayout(JRootPane root)
{
    if (layoutManager == null)
    {
        layoutManager = createLayout();
    }

    savedOldLayout = root.getLayout();

    root.setLayout(layoutManager);
}
 
Example 2
Source File: LuckRootPaneUI.java    From littleluck with Apache License 2.0 5 votes vote down vote up
protected void uninstallLayout(JRootPane root)
{
    if (savedOldLayout != null)
    {
        root.setLayout(savedOldLayout);

        savedOldLayout = null;
    }

    layoutManager = null;
}
 
Example 3
Source File: BERootPaneUI.java    From beautyeye with Apache License 2.0 5 votes vote down vote up
/**
 * Installs the appropriate LayoutManager on the <code>JRootPane</code>
 * to render the window decorations.
 *
 * @param root the root
 */
private void installLayout(JRootPane root)
{
	if (layoutManager == null)
	{
		layoutManager = createLayoutManager();
	}
	savedOldLayout = root.getLayout();
	root.setLayout(layoutManager);
}
 
Example 4
Source File: BERootPaneUI.java    From beautyeye with Apache License 2.0 5 votes vote down vote up
/**
 * Uninstalls the previously installed <code>LayoutManager</code>.
 *
 * @param root the root
 */
private void uninstallLayout(JRootPane root) 
{
	if (savedOldLayout != null) 
	{
		root.setLayout(savedOldLayout);
		savedOldLayout = null;
	}
}
 
Example 5
Source File: SeaGlassRootPaneUI.java    From seaglass with Apache License 2.0 5 votes vote down vote up
/**
 * Installs the appropriate LayoutManager on the <code>JRootPane</code> to
 * render the window decorations.
 *
 * @param root the JRootPane.
 */
private void installLayout(JRootPane root) {
    if (layoutManager == null) {
        layoutManager = createLayoutManager();
    }

    savedOldLayout = root.getLayout();
    root.setLayout(layoutManager);
}
 
Example 6
Source File: SeaGlassRootPaneUI.java    From seaglass with Apache License 2.0 5 votes vote down vote up
/**
 * Uninstalls the previously installed <code>LayoutManager</code>.
 *
 * @param root the JRootPane.
 */
private void uninstallLayout(JRootPane root) {
    if (savedOldLayout != null) {
        root.setLayout(savedOldLayout);
        savedOldLayout = null;
    }
}