Search:

Type: Posts; User: Norm

Search: Search took 0.41 seconds.

  1. Replies
    6
    Views
    1,488

    [SOLVED] Re: trying to change image by mouse click

    The Event object passed to the action listener method has a reference to the component (JButton) that was clicked. Get that reference, cast it to a JButton and you can access that button's methods...
  2. Replies
    6
    Views
    1,488

    [SOLVED] Re: trying to change image by mouse click

    The code needs to get a reference to the button and call one of its methods.
  3. Replies
    6
    Views
    1,488

    [SOLVED] Re: trying to change image by mouse click

    Is something supposed to happen? Can you explain what you want the code to do when a button is clicked?
Results 1 to 3 of 3