Originally posted by Javed Inamdar:
I have problem with paint method in following Java file. Drawing logic is not given there but drawing logic is taking 1 minute to execute. Problem here is that whenever i try to move scrollbar entire drawing get called once again. I want it to be executed only once and result should be scrollable.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Originally posted by Javed Inamdar:
Actually while drawing I am reading values/arguments for drawing from 30 MB text file thats why it is taking time. But is there any other way to achieve this........
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Originally posted by Javed Inamdar:
I am drawing on JPanel and saving drawing over JPanel as bufferedImage and from next time i am loading that image on JPanel so drawing multiple time problem is solved......But My drawing's legth is too big, maxlength of JPanel is also short for that. so problem of drawing as well as creating bufferedimage is occuring there.
Originally posted by Javed Inamdar:
How to do rendering of portion of image?
Ever since I found this suit I've felt strange new needs. And a tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|