Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Commit

Permalink
Added JPanelLine Class
Browse files Browse the repository at this point in the history
  • Loading branch information
Petschko committed Jan 17, 2017
1 parent 1745a79 commit 3ecc8d5
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions src/org/petschko/lib/gui/JPanelLine.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package org.petschko.lib.gui;

import javax.swing.BoxLayout;
import javax.swing.JLabel;
import javax.swing.JPanel;
import java.awt.Component;

/**
* Author: Peter Dragicevic [peter-91@hotmail.de]
* Authors-Website: http://petschko.org/
* Date: 17.01.2017
* Time: 18:52
* Update: -
* Version: 0.0.1
*
* Notes: JPanelLine Class
*/
public class JPanelLine extends JPanel {
/**
* Creates a new <code>JPanel</code> with a double buffer
* and a box layout.
*/
public JPanelLine() {
this.setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
this.setAlignmentX(Component.LEFT_ALIGNMENT);
}

/**
* Adds a Label with 1 empty space
*/
public void addSpaceLabel() {
this.add(new JLabel(" "));
}
}

0 comments on commit 3ecc8d5

Please sign in to comment.