wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes How do you label a TextField Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How do you label a TextField" Watch "How do you label a TextField" New topic
Author

How do you label a TextField

Jbowl
Greenhorn

Joined: Mar 11, 2003
Posts: 5
Hello,
i would like to label my TextField, so that i can see some text to indicate whats what. How do i do this?
private TextField input;
public void init () {
input = new TextField (20);
add (input);
input.addActionListener(this);
}


_ _____________________ _ <br />Jbowl to the nineth degree
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9047
    
  10
JBowl aka Jeremiah jjjjjjjjjjjjjjjj,

Since you refuse to abide by the naming policy, I am inactivating your account. If you want to reactivate it and use a compliant display name, please contact either one of the bartenders or me.

Marilyn
sheriff
[ March 29, 2003: Message edited by: Marilyn de Queiroz ]

JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
You can use a Label.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Moving this to The Swing / JFC / AWT Forum...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do you label a TextField