This site requires JavaScript, please enable it in your browser!
Greenfoot back

Discussions

You need to login to take part
Rss

Current Discussions

gacha321

Help With Inputting and Showing Data File Formated .txt

By gacha321, with no replies.
I'm sorry but I have problem with my FarmGame again :((( in this case, my game must can inputting data to file formated .txt and can show that if we choose the "Look our Plants" list. I tried so many times and exactly it doesn't work at all :(( So, before we want to buy, sell or show our plants, we must walk to garden first, when we touch the garden it would showing us 3 lists, 1. Buy Plants; 2. Sell Plants; 3. Look our Plants; when we choose the 1st list, so it would be go to the BuyPlants World that show us 3 lists of Plants (Grape, Guava, and Manggo) wich have a sell price. when we wan't to buy the Plants, I make a 3 buy button for the Plants, we concern to the buy button in Grape (Button4).. I tried to code and I just have the code like this.. <Code Omitted> There's no error when compiling that code.. but when I tried to click the button, this is no act :(( there's no ChaChing sound and also the code like useless.. :(( I don't know where's the problem... After that, I tried to code for the 3rd list.. (Look our Plants) I tried to code like this in (List3.class) <Code Omitted> But.. it has an error that shows unreported exception java.io.FileNotFoundException; must be caught or declared to be thrown in this code... <Code Omitted> I don't know what must I do then :(( I tried to code this in 2 days and I don't know It's right or wrong because It doen's work in my game ;)) If you have a suggest or know what's wrong with my code.. please reply this.. your help is very very meaningfull for me ;))