File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes TTEXTFIELD in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "TTEXTFIELD in java" Watch "TTEXTFIELD in java" New topic
Author

TTEXTFIELD in java

Anirudh Gaur
Greenhorn

Joined: May 11, 2011
Posts: 5
How to create ttextfield in java?
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18708
    
    8

What's a "ttextfield"? I googled the term and found a few obscure references, but nothing which looked relevant to "in java".
Anirudh Gaur
Greenhorn

Joined: May 11, 2011
Posts: 5
Paul Clapham wrote:What's a "ttextfield"? I googled the term and found a few obscure references, but nothing which looked relevant to "in java".


I've also found it very difficult to get the meaning of "ttextfield" and what i found out is that it is just like a simple "textfield" but consist of some rules or obligations, such as it will accept only numbers(or only letters) from keyboard, or it can make the small letters entered by users into capital letters...
This is all what i've got...so anyone please help me..
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18708
    
    8

If you don't know what it is, then it's pretty hard to tell you how to implement it.

Perhaps you can ask the person who told you to make one of those things what they are and why they made up that name?

Anyway as a general rule to make a JTextField which restricts what can be typed into it, you can use a Formatted Text Field or a Document Listener or Filter.
 
wood burning stoves
 
subject: TTEXTFIELD in java