Scrolling in JPanel makes the content erased
I have paint like application.I created it using Applet.I have two panels.1 is the tool panel and the other is the drawing panel.
using the tools in the tool panel i can write or draw on the drawpanel.
My question is if i write on the drawpanel, & if it reaches the end of the panel,the scrollbars should get added automatically and should be able to draw r write.and if i scroll up r down,drawing area gets erased and it was empty.
i just added a ScrollPane and tested ..