litesoft
Diff Revisions
947
vs
948
for /trunk/Java/KeyHole/src/org/litesoft/aokeyhole/swing/namevaluecomponents/TextLabeledComponent.java
|
@@ -5,20 +5,17 @@ |
5 |
5 |
|
|
6 |
6 |
|
import javax.swing.*; |
7 |
7 |
|
|
8 |
|
- |
public class TextLabeledComponent extends LabeledComponent |
9 |
|
- |
{ |
|
8 |
+ |
public class TextLabeledComponent extends LabeledComponent { |
10 |
9 |
|
private String mText; |
11 |
10 |
|
|
12 |
|
- |
public TextLabeledComponent( String pLabel, String pText ) |
13 |
|
- |
{ |
|
11 |
+ |
public TextLabeledComponent( String pLabel, String pText ) { |
14 |
12 |
|
super( new LabeledComponentParams( pLabel, false ) ); |
15 |
13 |
|
|
16 |
14 |
|
mText = pText; |
17 |
15 |
|
} |
18 |
16 |
|
|
19 |
17 |
|
@Override |
20 |
|
- |
protected JComponent createCenterContent() |
21 |
|
- |
{ |
|
18 |
+ |
protected JComponent createCenterContent() { |
22 |
19 |
|
return new JLabel( mText ); |
23 |
20 |
|
} |
24 |
21 |
|
} |