Ah.
I do get what you're saying, and I agree that it would help, I'm just under a bit of a time constraint for this one. I need to have it completed by Thursday, and at this point, I'm just trying...
Type: Posts; User: Hagstrom505
Ah.
I do get what you're saying, and I agree that it would help, I'm just under a bit of a time constraint for this one. I need to have it completed by Thursday, and at this point, I'm just trying...
Ok, I converted it into something a little more manageable in the ide, and this is the error I get:
Jan 28, 2013 7:53:36 PM org.jdesktop.application.Application$1 run
SEVERE: Application class...
It's not, now that I've stripped it down. I am honestly trying, I don't know why this keeps happening.
Alright, that's fair.
I'm going to trim it down to one button, the variables, and one section of the physical quiz. It comes in at around 145 lines, is that alright?
Integer[]...
I'm sorry about all of that. However, mistakes happen, it was posted as a rush job sort of thing, and ignoring the dropped }, it runs fine when I execute it. All the generated code and extra methods...
*
* SSCCEOfProblemView.java
*/
package sscceofproblem;
import org.jdesktop.application.Action;
import org.jdesktop.application.ResourceMap;
import...
Alright, how should I attach it?
I'm having a little trouble setting the SSCE up... Sorry.
The offending code is as shown, I just copypasted it into the answer buttons, but the only other part of the code I think is missing are...
AWT GUI. Input comes from buttons that when pressed, trigger a method which returns a numerical value that represents their answer. It also is the one responsible for cycling the questions.
Should...
I think I've found something that might help. My code now looks like
txta_display.setText("Press an answer button to begin");
if (totalquestions==4){
txta_display.setText("What is...
Ok, partially fixed that. It doesn't return the error message.
However, it stays on the first display, rather than changing what's in the text area. The counter for totalquestions has a sudden...
buttonPressA();
buttonPressB();
buttonPressC();
buttonPressD();
totalquestions=-1;//Don't ask why, it just works.
answer=solutions[0];//Counter iterates once inexpicably,...
Total questions isn't an issue. I already fixed that problem, it's in a different section of the code, so it wasn't part of the printout.
System.out.println("answer:"+answer);
...
Ok, I moved them. The answers match up with the solutions, but the score isn't being increased.
Right, ran the System.out.printlns you suggested, and they didn't output anything.
Any further suggestions?
Integer, but my computers teacher says the opposite, if I'm reading you right.
Zero is an okay response value, but this is when I run through the program using the correct answers, so all the if statements are considered true.
Thanks though, will try that.
Sorry about that. I declared it globally up at the beginning of the program.
As for program's output, with several System.out.println statements I omitted from up above, I get the following output:...
I'm working on a school project, which is basically a quiz type program, but I've hit a bit of a snag...
In it, I have a counter for the number of correct answers, but it doesn't store the value...