All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.invation.code.toval.graphic.component.BoxLayoutPanel Maven / Gradle / Ivy

package de.invation.code.toval.graphic.component;

import javax.swing.BoxLayout;
import javax.swing.JPanel;

public class BoxLayoutPanel extends JPanel {

	private static final long serialVersionUID = 3858209653770136507L;

	public BoxLayoutPanel() {
		super();
		setLayout(BoxLayout.LINE_AXIS);
	}
	
	public BoxLayoutPanel(int axis) {
		super();
		setLayout(axis);
	}

	public BoxLayoutPanel(boolean isDoubleBuffered) {
		super(isDoubleBuffered);
		setLayout(BoxLayout.LINE_AXIS);
	}
	
	public BoxLayoutPanel(boolean isDoubleBuffered, int axis) {
		super(isDoubleBuffered);
		setLayout(axis);
	}

	private void setLayout(int axis) {
		BoxLayout layout = new BoxLayout(this, axis);
		setLayout(layout);
	}
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy