That was because my Board class was giving an error, and Netbeans suggested I either make the class abstract, or implement all the abstract methods. It's not even in the original code I was given.
...
Type: Posts; User: xooch
That was because my Board class was giving an error, and Netbeans suggested I either make the class abstract, or implement all the abstract methods. It's not even in the original code I was given.
...
I do know the code and what it contains, I just had to edit it so the dark squares can be highlighted. I'm new to java and having troubles, hence I came to this forum
I didnt think it was relevant
No I didnt write it all, I have been given it from a tutor asking to edit the code so it highlights the dark squares, obviously Im having trouble doing it.
Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException: Not supported yet.
at draughts.Board.mouseExited(Board.java:116)
at...
ok, removing the throw statements make it so the dark square turn yellow when I mouse over them, although the game crashes immediately, after entering a dark square
hm, can you paste me the code you edited? I just removed my exceptions and it still doesn't turn the dark squares, yellow.
basically when the mouse moves over WHITE squares, it does nothing. But when it moves over the dark square, that single dark square which the cursor is over turns yellow. using these pieces.
...
There isn't a problem, I dont have any errors. It just doesn't do what I want it to do.
DraughtsApplication.java
package draughts;
public class DraughtsApplication
{
I know you're trying to help, I think it might be just how I am wording it lol, but I only want it to change the black squares to yellow when my cursor highlights them, I really have no idea how to...
ok I understand I have to implement a FocusManager into my code, I dont understand where and what exactly I have to write out.
No I dont think they do, altho Im very new to java, and not sure what focus is.
Hey there,
new to Java, so excuse my noobness, but I'm having problem creating a simple method within my Draughts game. atm I have the entire board spawning a 8x8 board, half of them being white...