litesoft
Diff Revisions
949
vs
950
for /trunk/Java/KeyHole/src/org/litesoft/aokeyhole/swing/namevaluecomponents/TextLabeledComponent.java
|
@@ -1,21 +1,21 @@ |
1 |
|
- |
// This Source Code is in the Public Domain per: http://unlicense.org |
2 |
|
- |
package org.litesoft.aokeyhole.swing.namevaluecomponents; |
3 |
|
- |
|
4 |
|
- |
import org.litesoft.aokeyhole.toolkit.*; |
5 |
|
- |
|
6 |
|
- |
import javax.swing.*; |
7 |
|
- |
|
8 |
|
- |
public class TextLabeledComponent extends LabeledComponent { |
9 |
|
- |
private String mText; |
10 |
|
- |
|
11 |
|
- |
public TextLabeledComponent( String pLabel, String pText ) { |
12 |
|
- |
super( new LabeledComponentParams( pLabel, false ) ); |
13 |
|
- |
|
14 |
|
- |
mText = pText; |
15 |
|
- |
} |
16 |
|
- |
|
17 |
|
- |
@Override |
18 |
|
- |
protected JComponent createCenterContent() { |
19 |
|
- |
return new JLabel( mText ); |
20 |
|
- |
} |
21 |
|
- |
} |
|
1 |
+ |
// This Source Code is in the Public Domain per: http://unlicense.org |
|
2 |
+ |
package org.litesoft.aokeyhole.swing.namevaluecomponents; |
|
3 |
+ |
|
|
4 |
+ |
import org.litesoft.aokeyhole.toolkit.*; |
|
5 |
+ |
|
|
6 |
+ |
import javax.swing.*; |
|
7 |
+ |
|
|
8 |
+ |
public class TextLabeledComponent extends LabeledComponent { |
|
9 |
+ |
private String mText; |
|
10 |
+ |
|
|
11 |
+ |
public TextLabeledComponent( String pLabel, String pText ) { |
|
12 |
+ |
super( new LabeledComponentParams( pLabel, false ) ); |
|
13 |
+ |
|
|
14 |
+ |
mText = pText; |
|
15 |
+ |
} |
|
16 |
+ |
|
|
17 |
+ |
@Override |
|
18 |
+ |
protected JComponent createCenterContent() { |
|
19 |
+ |
return new JLabel( mText ); |
|
20 |
+ |
} |
|
21 |
+ |
} |