Last change
on this file since 4448 was 4367, checked in by mdewsnip, 21 years ago |
Fixed tabbing.
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
470 bytes
|
Line | |
---|
1 | package org.greenstone.gatherer.gui;
|
---|
2 |
|
---|
3 | import javax.swing.JLabel;
|
---|
4 | import javax.swing.JTextField;
|
---|
5 |
|
---|
6 | public class TextFieldLabel
|
---|
7 | extends JLabel {
|
---|
8 | static private JTextField FIELD = new JTextField("John");
|
---|
9 | public TextFieldLabel(String text) {
|
---|
10 | this(text, true);
|
---|
11 | }
|
---|
12 | public TextFieldLabel(String text, boolean enabled) {
|
---|
13 | super(text);
|
---|
14 | FIELD.setEnabled(enabled);
|
---|
15 | setBackground(FIELD.getBackground());
|
---|
16 | setBorder(FIELD.getBorder());
|
---|
17 | setOpaque(true);
|
---|
18 | }
|
---|
19 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.