File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java Micro Edition and the fly likes calculate the amount values stored form recordstore in J2ME midlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "calculate the amount values stored form recordstore in J2ME midlet" Watch "calculate the amount values stored form recordstore in J2ME midlet" New topic
Author

calculate the amount values stored form recordstore in J2ME midlet

wentrace chan
Greenhorn

Joined: Oct 04, 2003
Posts: 2
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
paul wheaton
Trailboss

Joined: Dec 14, 1998
Posts: 20572
    ∞

I don't suppose you could narrow the problem down to a few lines of code ...


permaculture Wood Burning Stoves 2.0 - 4-DVD set
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

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 agree. Here's the link: http://aspose.com/file-tools
 
subject: calculate the amount values stored form recordstore in J2ME midlet