Ah, just an FYI, I fixed everything. The problem was how Java swing handled the updates of the jFrame, only updating AFTER the actionPerformed thread was done and returned to the main thread. I...
Type: Posts; User: CjStaal
Ah, just an FYI, I fixed everything. The problem was how Java swing handled the updates of the jFrame, only updating AFTER the actionPerformed thread was done and returned to the main thread. I...
Why not? I love eclipse
import these workspace folders in eclipse
It's hard to explain. I tried already it messes up since the GUI and logic need to be in 2 different threads or else it hangs up and never shows the 2nd buttons value if it doesnt match the first...
Text display, basically its an inner workings of java error. It compiles and runs and makes matches but if no match theres a bug that I cant iron out. again that can also be fixed with a SwingWorker...
basically its a memory game
You click 2 buttons see if the values match if they do keep the text as is, change color to blue
else if it doesnt match switch back to blank and re-enable
The first...
I had a version of my code like that, it messes up since the GUI and logic need to be in 2 different threads or else it hangs up and never shows the 2nd clicks value if it doesnt match the first...
how would I implement that?
I'm sorry I didn't word what I meant to say correctly.
Basically right here
GUI mainGameWindow = new GUI();
GLogic gameLogic = new GLogic(mainGameWindow.getAmountOfButtons());...
THe buttons are and arent working lol.
They're up now but not working due to the code in main.
3rd window, scolled up 5 lines from bottom is where the comment is. Baiscally I need it to wait for...
AH I forgot that, I just did that actually.
Updated
GUI.java
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import...
For some reason my program will not draw the buttons, also I have a comment put in for a line of code that I do not know how to implement.
Any help is appreciated
Main.java
import...