Search:

Type: Posts; User: xooch

Search: Search took 0.11 seconds.

  1. Replies
    24
    Views
    854

    Re: Draughts using mouse listener problem

    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.
    ...
  2. Replies
    24
    Views
    854

    Re: Draughts using mouse listener problem

    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
  3. Replies
    24
    Views
    854

    Re: Draughts using mouse listener problem

    I didnt think it was relevant
  4. Replies
    24
    Views
    854

    Re: Draughts using mouse listener problem

    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.
  5. Replies
    24
    Views
    854

    Re: Draughts using mouse listener problem

    Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException: Not supported yet.
    at draughts.Board.mouseExited(Board.java:116)
    at...
  6. Replies
    24
    Views
    854

    Re: Draughts using mouse listener problem

    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
  7. Replies
    24
    Views
    854

    Re: Draughts using mouse listener problem

    hm, can you paste me the code you edited? I just removed my exceptions and it still doesn't turn the dark squares, yellow.
  8. Replies
    24
    Views
    854

    Re: Draughts using mouse listener problem

    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.


    ...
  9. Replies
    24
    Views
    854

    Re: Draughts using mouse listener problem

    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
    {
  10. Replies
    24
    Views
    854

    Re: Draughts using mouse listener problem

    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...
  11. Replies
    24
    Views
    854

    Re: Draughts using mouse listener problem

    ok I understand I have to implement a FocusManager into my code, I dont understand where and what exactly I have to write out.
  12. Replies
    24
    Views
    854

    Re: Draughts using mouse listener problem

    No I dont think they do, altho Im very new to java, and not sure what focus is.
  13. Replies
    24
    Views
    854

    Draughts using mouse listener problem

    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...
Results 1 to 13 of 13