Java Swing BoxLayout createBoxFiller()

Here you can find the source of createBoxFiller()

Description

create Box Filler

License

BSD License

Declaration

public static Component createBoxFiller() 

Method Source Code

//package com.java2s;
/**//from   ww  w .  j av a2  s.com
 * Copyright (c) 2014, by the Authors: John E Lloyd (UBC)
 *
 * This software is freely available under a 2-clause BSD license. Please see
 * the LICENSE file in the ArtiSynth distribution directory for details.
 */

import java.awt.Component;

import java.awt.Dimension;

import javax.swing.Box;

public class Main {
    public static Component createBoxFiller() {
        Dimension min = new Dimension(0, 0);
        Dimension max = new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE);
        return new Box.Filler(min, min, max);
    }
}

Related

  1. applyVerticalBoxLayout(Container p)
  2. combineInNorth(JComponent[] components)
  3. createBox(Component center, Component north, Component south, Component west, Component east)
  4. createBox(int axis, Object... children)
  5. createBox(int orientation, JComponent... components)
  6. createBoxLayout(Container container, int axis, Component... components)
  7. createBoxLayoutPanel(boolean vertical)
  8. createBoxPanel(int axis)
  9. createBoxPanel(int orientation)