I am really green when it comes to Java, so this is probably extremely simple, but I have been struggling with it and just can't get it right. I wrote the simple program below to try to get a handle on it, but it does not work. I am trying to add another line of text when a button is pressed, and to update it every subsequent time that the button is pressed. I am working with the code below, and it only seems to repaint and add the last line when the stop method is invoked (when I bring the window down and pull it back up). Could somebody please tell me what I am missing?
PS. I was planning to add more functionality like different messages depending on the number entered, but I haven't gotten that far, since I couldn't even get it to update once.