File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java Micro Edition and the fly likes How To Use TextField As Button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "How To Use TextField As Button" Watch "How To Use TextField As Button" New topic

How To Use TextField As Button

Kartik Raina

Joined: Sep 16, 2010
Posts: 10
I am relatively new Java ME. I was first trying to use StringItem as a Button, in which i was successful. I also found that while initializing a TextField the is an attribute for using TextField as a button (TextField.BUTTON). But it doesn't work as a button. It works just like any TextField would. Can any one please help me out.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17280

Wait a minute. You're expecting a Text Input control to act like a pushbutton? How do you reconcile with making it act like a Text Input control? Especially since the way you select a Text Input control for text input is to "click" on it.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: How To Use TextField As Button
It's not a secret anymore!