This week's book giveaway is in the Java in General forum.
We're giving away four copies of Java by Comparison (eBook) and have Simon Harrer, Jörg Lenhard, Linus Dietz on-line!
See this thread for details.
Win a copy of Java by Comparison (eBook) this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Data in low level API  RSS feed

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to introduce data using low level apis (canvas) as if this were a TextField for example... what I can do is put text using drawString but what I wanna do is capture data from the keyboard and display it at the same time on the screen (canvas). Please, somebody help me... thanks a lot.
 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It doesn't look very good. You can grab numeric info: web here, but it also says:
"This technique is useful only in certain limited cases. In particular, it is not sufficient for full textual input, because it does not handle upper and lower case, keyboard shift states, and characters that require more than one keystroke to enter. For textual input, applications should always use TextBox or TextField objects."

Dan
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!