Search:

Type: Posts; User: MXA92

Search: Search took 0.14 seconds.

  1. Replies
    4
    Views
    406

    Re: Q about the String class

    I'm a beginner myself, but I'd probably read the string as a set of char's, and say after 3 char's add '-', after another 3 char's add '-'....
  2. Parsing information from a Custom Dialogue Box

    I find images are the best way of getting the point across easier so if you take a quick look at the image, you'll see what I have so far :)...
  3. Replies
    10
    Views
    1,098

    Re: Adding a mouse listener to my Draughts game

    Oh yeah, that was substantially better:


    public void mouseEntered(MouseEvent e)
    {
    ((Square)e.getSource()).enter();
    }

    Thank you again Norm :)!
  4. Replies
    10
    Views
    1,098

    Re: Adding a mouse listener to my Draughts game

    EDIT: CODE REMOVED
  5. Replies
    10
    Views
    1,098

    Re: Adding a mouse listener to my Draughts game

    Hmm, I'm not quite sure what you mean.
    I need the mouse listener to call the enter() method for the specific Square object that has called it :/
  6. Replies
    10
    Views
    1,098

    Re: Adding a mouse listener to my Draughts game

    I've worked out I need the row and column of the square the mouse is on (using e.getX() and e.getY() somehow?) and then I can just call the enter() method.

    ie. squares[1][2].enter() changes the...
  7. Replies
    10
    Views
    1,098

    Re: Adding a mouse listener to my Draughts game

    EDIT: Code Removed
  8. Replies
    10
    Views
    1,098

    Adding a mouse listener to my Draughts game

    EDIT: CODE REMOVED
Results 1 to 8 of 8