Hi so I've been having trouble with this one exception I've been getting. It says it's on line 22 but I don't understand why I'm getting it. BTW I'm using Eclipse on a Mac.
Yes I think there are design problems too. I never designed Phrasebot from the start, I just started writing code which pretty much led to the mess today.
I don't add the same 3 nouns, adjectives, and verbs everytime because the user is supposed to enter new ones. Besides, a HashSet puts in absolutely no duplicates so the probability of the same phrase...
Thanks for the advice. But could you or someone else help me find what is making it only show Strings a, b, and c? It feels like I'm searching for a needle in a haystack.
thanks this helped a lot! but the thing is it doesn't show anything but the variables a, b, and c. Plus when I click arrangements and change the arrangement it doesn't change until you click another...
So whenever I click phrasemaker in my program it prints "null null null" in midgui. It should be returning a random String from nouns, adjectives, and verbs. I don't understand. It's supposed to...
Okay instead of using a method I'm using a constructor now. But it's still not working. I honestly think I'm doing something wrong. I haven't really ever used constructors so I think that's the...
The basic idea behind Phrasebot is to be able to take words the user has entered and make a random 'Phrase' out of them. Since Phrasebot only provides 3 boxes for each type of word you can add to the...
I want to have a default so everytime the user launches the Phrasebot they don't have to go into Arrangements... and choose what they want. So I give...
Thanks for the advice. I'll keep it in mind for future projects because this project is very close to being done. Could you please tell me how to fix the problem?
Yes I feel the deja-vu as well ;). The bad thing about me is when I see the bug and find the line the bug is on I never bother to look out of the method the line is invoked on. I need to change that...
So I've been trying to make this thing work and it's giving me an error like this:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at...
Okay I did it but since HashMap doesn't implement Collection JList won't take it because it doesn't implement Collection. At least this is what I think is wrong. If you can please help! Here's my...
I see where you're coming from but moving that would cause it to not be able to change the arrangement.
Sorry, I'm 12 years old and sort of a programming newbie in general.
So I'm trying to make my program so it can have different arrangements of phrases. I think I've got the right idea but it's not working out too well. If you can, please help!