This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

How do you label a TextField


Joined: Mar 11, 2003
Posts: 5
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);

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

Joined: Jul 22, 2000
Posts: 9056
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.

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

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

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

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

Joined: Dec 10, 2001
Posts: 7023
Moving this to The Swing / JFC / AWT Forum...
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: How do you label a TextField
It's not a secret anymore!