• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Canvas

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
On the TextField,Box...etc. when input text,number etc keyboard automation show defer with Canvas. So ask how to I can own call keyboard on Canvas using button / categorybar/automation?
 
Rancher
Posts: 1093
29
Netbeans IDE Oracle MySQL Database Tomcat Server C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Canvas is an AWT Object to allow you to display grahics. Very generally speaking, Swing is preferred to use and you extend a JPanel and override paintComponent to dispaly graphics.

Gathering text is another issue altogether, you can do that with an appropriate input stream, reading from Standard In, and then you can display that using the Graphics context from the JPanel.

If you want, making a transparent TextBox may be easier, and you can add that directly to your JPanel and arrange it according to your need and Layout Manager.
 
Firman creed
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My means Canvas J2me/MIDlet
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why are you coding for midlets? Java on mobile is dead.
Anyway, when I used to do it ages back, I was never happy with the 'vanilla' flavor of JME. I always used LWUIT It is very very similar to Swing.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic