posted 13 years ago
hi,I'm using netbeans GUI,I am writing a program like paint program(in windows),I have a panel that I can paint on it,and also I can load image into this panel.
but the problem is that when I load an image,when it is bigger than my panel I can not see the hole image,I need to have something to let me edit all of the image,I used scroll Pane this way:
I added to my panel one scroll Pane,and then put another panel inside it,and wrote all of the functions of my first panel for this one.
now I can paint in this one,and I see the scrollbar,but when I use them things does not works well....and also when I load an image,still just one paart of it is seen and there is no scroll bars.
I would be so thankful if you help me.