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

unable to create form.

 
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is what I want to do. Create a textfield, therefor I need a form. But I cant create a new form. I looked att the api doc and it says "Form(String title)" But Im getting this error message when I compile
"C:\WTK104\apps\2-MIDP1\src\FormApp.java:15: cannot resolve symbol
symbol : constructor Form (java.lang.String)
location: class Form myForm = new Form("InputForm");" And a ^ that points out the ";" Here is my code:
 
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried your code with WTK 1.04 and WTK 2.0 and was able to compile with both. The error seems to indicate a classpath issue. Check the WTK104/lib directory and make sure that the midpapi.jar hasn't been deleted.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!