Search:

Type: Posts; User: GregBrannon

Search: Search took 0.09 seconds.

  1. Replies
    7
    Views
    1,352

    Re: Need help calling methods in a GUI

    Okay, cart before the horse = cart doesn't go well (or goes backwards).

    You might change your actionPerformed() method like this:
    // create a new dog instance with the contents of the text...
  2. Replies
    7
    Views
    1,352

    Re: Need help calling methods in a GUI

    If dog is an instance of Dog and textArea the JTextArea in which you want to invoke the Dog.toString() method, then a way to do that is:

    textArea.setText( "" + dog );
  3. Replies
    7
    Views
    1,352

    Re: Need help calling methods in a GUI

    @phunnydoode: Welcome to the Forum! Please read this topic to learn how to post code correctly and other useful tips for newcomers.

    @destitute.developer: Please follow Java naming conventions and...
Results 1 to 3 of 3