Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

my application for touch screen  RSS feed

 
liang gu
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am developing a application for touch screen. To enter the data on some data fields, I basically have a small icon sitting close to the field, and a pop up key board will appear if the small icon is pressed. Does any body know any existing code for this? Thanks.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know of existing code. But it shouldn't be too hard to make. A GridLayout with at least 26 JButtons for each letter. Maybe the number pad too. Just add a listener to each Button that when pressed, the Buttons label is sent to whatever text field.
Actually, that might be kind of fun to write. I may take a stab at it. But you should try it out yourself.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!