premtpt 0 Newbie Poster

currently i am developing an image processing software it loads images from disk to application for processing .As more and more images loaded to application memory used for each image is not freed so system become slow and slow.In java theory it is stated that garbage collector automatically deallocate unused memory.But actually it would not happened.But some image processing softwares such as imageJ donot have such problem how can use fixed primary memory for my application .


for my image processing how can i draw lines on java frame/Jframe that looks like adobe photoshop laso tool line, selection tool line which are draws on image but it look like it detached from frame some one who knows java code for my question please post