source: src/main/java/genius/gui/panels/LabelAndComponent.java@ 3

Last change on this file since 3 was 1, checked in by Wouter Pasman, 7 years ago

Initial import : Genius 9.0.0

File size: 470 bytes
Line 
1package genius.gui.panels;
2
3import java.awt.BorderLayout;
4import java.awt.Component;
5
6import javax.swing.JLabel;
7import javax.swing.JPanel;
8
9/**
10 * Panel with a text on the left and an arbitrary component on the right
11 *
12 */
13@SuppressWarnings("serial")
14public class LabelAndComponent extends JPanel {
15 public LabelAndComponent(String text, Component comp) {
16 super(new BorderLayout());
17 add(new JLabel(text), BorderLayout.WEST);
18 add(comp, BorderLayout.CENTER);
19 }
20}
Note: See TracBrowser for help on using the repository browser.