Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Canvas

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • 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: 904
22
Netbeans IDE Oracle MySQL Database Tomcat Server C++ Java
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
My means Canvas J2me/MIDlet
 
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
  • 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.
 
    Bookmark Topic Watch Topic
  • New Topic