I see. So would this pretty much require me making a class scope variable?
Type: Posts; User: xdega
I see. So would this pretty much require me making a class scope variable?
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...
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...
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...
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...
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.
...
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...
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...