Search:

Type: Posts; User: helloworld922

Search: Search took 0.11 seconds.

  1. Replies
    8
    Views
    5,514

    Re: Can't set label text from a Jbutton

    Since the action listener class now has a constructor provided, you must use this constructor.

    //Set Action Listener
    // this is using the wrong constructor!
    //...
  2. Replies
    8
    Views
    5,514

    Re: Can't set label text from a Jbutton

    Yes, your intuition is correct. Action has no idea what label is. The easiest way to solve this problem is to pass label to it when it's being constructed:

    public class Action implements...
Results 1 to 2 of 2