posted 11 years ago
I have created a Graph Panel where a graph paper is painted. I am actually writing codes for a Quadratic equation Graph. After the calculation, graph will be shown on clicking a certain button. my graph panel does not adjust in every screen as it is in a fixed mode that is it has no of certain rows and columns with certain heights and widths. it looks better when i see on my 17" monitor and it looks half when i see it on 15.6" laptop screen. Therefore, I'd like to add scrollPane. It does not work even I add it, whereas if I add any image it works. I have given my code for graphpanel below:
my graph panel example is :
Please it would be so kind if any one helps.
my second question is even if it is possible, shall I really be able to update this panel after every clicking the button of new calculation?
Thanks in Advance!