Sorry about the other two threads, It simply cut off the contents halfway, it wouldn't display the rest!
I'll try and express my problem more concisely.
I have invented a new component Histogram which extends JComponent.
I have an array[] of histogram objects.
I'm displaying a array[0] in a pane on my GUI, and I have a method update() which puts a new, different Histogram object in array[0]. I want the GUI to automatically reflect this change by displaying the new array[0] component instead of the old one.
How do I do this?
Thanks!
I'll try and express my problem more concisely.
I have invented a new component Histogram which extends JComponent.
I have an array[] of histogram objects.
I'm displaying a array[0] in a pane on my GUI, and I have a method update() which puts a new, different Histogram object in array[0]. I want the GUI to automatically reflect this change by displaying the new array[0] component instead of the old one.
How do I do this?
Thanks!