Search:
Type: Posts; User: Shaken_Earth
Search:
Search took 0.02 seconds.
-
December 28th, 2010, 10:33 PM
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.
Code:
import...
-
August 28th, 2009, 07:12 PM
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.
Thanks I'll try using it as a local...
-
August 16th, 2009, 03:24 PM
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...
-
August 16th, 2009, 11:15 AM
How do I have a HashSet pick a random element from itself?
-
August 11th, 2009, 04:03 PM
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.
-
August 9th, 2009, 07:12 PM
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...
-
August 9th, 2009, 01:55 PM
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...
-
July 11th, 2009, 04:45 PM
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...
-
Thanks! :D
"But, there's one more thing..."
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...
-
Yes, the famous last words :) .
Here's the code:
...
JList list;
-
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...
-
By the way line 611 is the line that reads ListItem item = (ListItem) list.getSelectedValue();
-
Phrasebot Class:
//Phrasebot is property of shakenearth.com
//Code by Thomas Lisankie
//You may not use any of this code
//you may not distribute this program either
import java.awt.*;
-
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...
-
June 27th, 2009, 09:38 AM
-
June 26th, 2009, 12:17 PM
How would this work since MyValue isn't defined?
-
June 25th, 2009, 06:17 PM
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...
-
June 25th, 2009, 02:38 PM
Thanks! This really helps! Too bad I didn't know about Maps earlier =D
-
June 25th, 2009, 12:04 PM
So I'm working on a project which needs a JList that prints a different value than what the item says on the list. So when I use the following code:
String p;
...
class quick1Listener...
-
June 17th, 2009, 03:13 PM
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.
-
June 16th, 2009, 05:39 PM
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!
//Phrasebot is...
-
-
Thanks! That helped a lot! :D
|
Click Here to Expand Forum to Full Width
|