This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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 Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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
Sheriff

Joined: Oct 14, 2005
Posts: 19747
    
  10

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
Sheriff

Joined: Oct 14, 2005
Posts: 19747
    
  10

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: TTEXTFIELD in java
 
It's not a secret anymore!