File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "How To Use TextField As Button" Watch "How To Use TextField As Button" New topic
Author

How To Use TextField As Button

Kartik Raina
Greenhorn

Joined: Sep 16, 2010
Posts: 10
Hello,
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: 16388
    
  23

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How To Use TextField As Button