Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

TTEXTFIELD in java

 
Anirudh Gaur
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to create ttextfield in java?
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic