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 | |
---|
1 | package genius.gui.panels;
|
---|
2 |
|
---|
3 | import java.awt.BorderLayout;
|
---|
4 | import java.awt.Component;
|
---|
5 |
|
---|
6 | import javax.swing.JLabel;
|
---|
7 | import 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")
|
---|
14 | public 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.