Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Shaken_Earth

Page 1 of 2 1 2

Search: Search took 0.01 seconds; generated 56 minute(s) ago.

  1. Exception in thread "main" java.lang.OutOfMemoryError: Java heap space help

    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...
  2. Re: null null null and no components show up at launch

    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...
  3. Re: null null null and no components show up at launch

    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...
  4. Replies
    1
    Views
    2,497

    How to pick a random hashset element

    How do I have a HashSet pick a random element from itself?
  5. Re: null null null and no components show up at launch

    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.
  6. Re: null null null and no components show up at launch

    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...
  7. null null null and no components show up at launch

    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...
  8. Replies
    23
    Views
    4,666

    Re: Jlist help

    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...
  9. Replies
    23
    Views
    4,666

    Re: Jlist help

    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...
  10. Replies
    23
    Views
    4,666

    Re: Jlist help

    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...
  11. Replies
    23
    Views
    4,666

    Re: Jlist help

    Yes, the famous last words :) .

    Here's the code:



    ...

    JList list;
  12. Replies
    23
    Views
    4,666

    Re: Jlist help

    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?
  13. Replies
    23
    Views
    4,666

    Re: Jlist help

    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...
  14. Replies
    23
    Views
    4,666

    Re: Jlist help

    By the way line 611 is the line that reads ListItem item = (ListItem) list.getSelectedValue();
  15. Replies
    23
    Views
    4,666

    Re: Jlist help

    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.*;
  16. Replies
    23
    Views
    4,666

    Re: Jlist help

    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...
  17. Replies
    23
    Views
    4,666

    Re: Jlist help

    O okay thanks :D
  18. Replies
    23
    Views
    4,666

    Re: Jlist help

    How would this work since MyValue isn't defined?
  19. Replies
    23
    Views
    4,666

    Re: Jlist help

    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...
  20. Replies
    23
    Views
    4,666

    Re: Jlist help

    Thanks! This really helps! Too bad I didn't know about Maps earlier =D
  21. Replies
    23
    Views
    4,666

    Jlist help

    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...
  22. Replies
    4
    Views
    1,202

    Re: ArrayIndexOutOfBoundsException?

    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.
  23. Replies
    4
    Views
    1,202

    ArrayIndexOutOfBoundsException?

    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...
  24. Replies
    3
    Views
    830

    Re: NoClassDefFoundError ???????

    Huh?
  25. Replies
    4
    Views
    654

    Re: Bug? Help?

    Thanks! That helped a lot! :D
Results 1 to 25 of 42
Page 1 of 2 1 2


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center