de.invation.code.toval.graphic.component.BoxLayoutPanel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of TOVAL Show documentation
Show all versions of TOVAL Show documentation
TOVAL comprises a set of java classes for common programming issues. It includes utils for arrays, lists, sets and collections for convenient handling and modification, but also support for mathematic definitions concerning logic (clauses + resolution) together with some algorithms for permutations, powersets and resolution. Additionally it contains a number of types for multisets, matrices with object keys and much more.
The newest version!
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