This week's giveaway is in the JDBC forum.
We're giving away four copies of Java Database Connections & Transactions (e-book only) and have Marco Behler on-line!
See this thread for details.
Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC 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
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

calculate the amount values stored form recordstore in J2ME midlet  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
dear all,
l am doing a project about how to calculate the amount expenses.Is there anyone
can help and guide me to write the codes for the program.Cus l am really need your help urgently.Hope taht anyone can help me.Thank you very much
besides, if possible that anyone also can help me with my "View Record" in the project.Because after l have deleted record and added new record,l cannot view the added record and having problems with program.
l will enclose with my source codes here.
Hope you could help me.Thanks
 
Trailboss
Posts: 22951
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't suppose you could narrow the problem down to a few lines of code ...
 
ranger
Posts: 17344
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Paul Wheaton:
I don't suppose you could narrow the problem down to a few lines of code ...


You should have seen the original. It was over 10,000 lines of code.
Mark
 
Mark Spritzler
ranger
Posts: 17344
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First thing I would do Wentrace, is to break up your class into a few classes. It looks like you gave the GUI, the Business Logic, and the Record Store code all in one place. By spliting this into seperate classes, you will be able to debug, enhance, and maintain your code better.
Also it will make less code for you to post here for us to look at.
Right now, unfortunately because it is all one big glob of code, it is almost impossible for us to look at it and figure out your issue.
Also, you might want to redo your indentation. Whenever you hit a braces, you should indent all your next code with 4 spaces, until you hit the end of the braces, then bring the indentation back. It makes the code much easier to read and follows Sun's coding standards.
Looking at your code a little closer, it looks like you have a few inner classes. Do these classes have to be inner classes, or can you split them out, and just create instances when you need them.
Other than that, I can't figure out your problem with the RecordSource, because I can't tell where that code is in your example.
But the suggestions that I have made can really help you out, to help isolate where the actual problem resides.
Mark
 
I've never won anything before. Not even a tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!