here is some code:
My class extends JPanel
So, in my constructor method "this" is referring to the panel. It's not needed, I know. It's there because the code is in a state of flux and at one point it was needed.
Here my constructor at the moment:
And here is my Paint() method.
Notice my comment. It was the only way I know to get my original three panels (from the contructo method) painted.
Intrestingly, I have also overridden the Paint( Graphics JComponent c) method (just for
testing purposes) like this:
However, I have never seen this method invoked, and it still exists in my code at the moment.
Also, I am beginning to see another problem that you may be able to give me a hand with. If I have a lot of data to plot, I thought that I would simply resize my panels, plot my data on them, and use the scrollbars to view the plot.
I can't seem to get the scrollbars to appear. I have tried panel1.setSize() in my paint method but this did not cause the scrolls bars to appear.
Any suggestions?