java.awt.LayoutManager2 Java Examples

The following examples show how to use java.awt.LayoutManager2. 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: Panels.java    From RipplePower with Apache License 2.0 5 votes vote down vote up
public static JPanel newPanel(LayoutManager2 layout) {
	JPanel panel = new JPanel(layout);
	panel.setBackground(UIConfig.dialogbackground);
	panel.setOpaque(false);
	panel.applyComponentOrientation(LangConfig.currentComponentOrientation());
	return panel;
}
 
Example #2
Source File: FilterDialog.java    From magarena with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Default layout. Variable sized main panel containing filter
 * values above fixed sized action bar.
 */
protected LayoutManager2 getLayoutManager() {
   return new MigLayout("flowy, gap 0, insets 0",
            "[fill, grow]",         // column layout
            "[fill, grow]3[fill]"   // row layout
    );
}
 
Example #3
Source File: RoundedPanel.java    From RipplePower with Apache License 2.0 4 votes vote down vote up
public RoundedPanel(LayoutManager2 layout) {
	super(layout);
	setOpaque(false);
	this.cornerRadius = LSystem.COMPONENT_CORNER_RADIUS;
}
 
Example #4
Source File: Panels.java    From RipplePower with Apache License 2.0 3 votes vote down vote up
public static JPanel newRoundedPanel(LayoutManager2 layout) {

		JPanel panel = new RoundedPanel(layout);

		return panel;

	}
 
Example #5
Source File: Wrapper.java    From gcs with Mozilla Public License 2.0 2 votes vote down vote up
/**
 * Creates a new {@link Wrapper}.
 *
 * @param layout The layout to use.
 */
public Wrapper(LayoutManager2 layout) {
    super(layout);
    setOpaque(false);
}
 
Example #6
Source File: AnimatedLayout.java    From stendhal with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a new AnimatedLayout.
 *
 * @param proxy layout manager to be used for determining the desired layout
 */
public AnimatedLayout(LayoutManager2 proxy) {
	this.proxy = proxy;
	animations = new WeakHashMap<Container, Animator>(5);
}