So within the mouseClicked method, I'm going to bring up a brand new frame that includes the question in Harry Potter font. Although if Ryk isn't marking it on this computer, he won't see it. Well, I'll organize it later.
There is also one more thing I have to find out - is if I want the program to constantly update the score, how do I do it. Cause in the original window, I'm trying to get the score to be displayed at the top, and have it update every time a question is answered.
I've also ran into another problem, which is..I create a new frame and a brand new asking questions frame in the mouseListener method. Because there is a button there, I have to add that component to the mouseListener and it doesn't seem to be working. Anyways, i just cut it and paste it to a private variable up in the class, and it worked. However, there is one more problem: when I use the variable whichQuestion, the program isn't changing the value even though I told it to in a certain method. I'm thinking that, if it is declared in the class, it will just keep redeclaring itself, so it also has to go up to the class definitions (and calling it private).

No comments:
Post a Comment