Search:

Type: Posts; User: xdega

Search: Search took 0.11 seconds.

  1. Re: Disabling Check Boxes created by different method.

    I see. So would this pretty much require me making a class scope variable?
  2. Disabling Check Boxes created by different method.

    So. I have the following method that is called to create Check Boxes:


    //function to create check boxes and add them to frame ( complete with action listeners )
    public void addCheckButton(int...
  3. Replies
    2
    Views
    2,278

    Re: Can't use button.addActionListener(this); ?

    Thank you so much. I read through that documentation. Just simply had to add the "implements" to my class and I am now able to trigger action events :D
    As for the conventions, I am a little sloppy...
  4. Replies
    2
    Views
    2,278

    Can't use button.addActionListener(this); ?

    So.. In a nutshell, I am working on a basic GUI project. I have attempted to break everything down in to small factored down methods inside my class.
    I am able to build my GUI this way, but now...
  5. Replies
    6
    Views
    2,229

    Re: Problem w/ Hashmap. Null Pointer?

    Think I may have nailed it! in the following line:

    return Collections.unmodifiableMap(mp);
    Instead of using the var mp (the var assigned to MAP), I tried the variable "question" (the var assigned...
  6. Replies
    6
    Views
    2,229

    Re: Problem w/ Hashmap. Null Pointer?

    this is the line where I am getting the exception

    System.out.println("Question1:" + QuizAnswers.getAnswer(0));
    it was a test line I added a while back to see if I could retrieve the values.
    ...
  7. Replies
    6
    Views
    2,229

    Re: Problem w/ Hashmap. Null Pointer?

    Also, I should probably state. I am aware that an Array would be a viable solution to my problem, but this is a school assignment and I want to push my studies a little.
    atm though, I am at a...
  8. Replies
    6
    Views
    2,229

    Problem w/ Hashmap. Null Pointer?

    So basically, I have written this class to define a hashmap, with a method to access the values.
    This is pretty explanatory, it is used as an answer key for a larger "quiz" program.
    Whenever I...
Results 1 to 8 of 8