Does your button fire (eg does it print out your debugging "You clicked the button")? My guess is that it does, but you create a new chartPanel without adding it to the GUI (and I'm also unclear of...
Type: Posts; User: copeg
Does your button fire (eg does it print out your debugging "You clicked the button")? My guess is that it does, but you create a new chartPanel without adding it to the GUI (and I'm also unclear of...
If I understand your question correctly, you're JButton is not working? In your ResponseChart constructor you do not seem to have added a listener to the JButton. See How to Write an Action Listener...