• 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
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Canvas  RSS feed

 
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: 795
19
C++ Java MySQL Database Netbeans IDE Oracle Tomcat Server
  • 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
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 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.
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!