Hi Michael

Perhaps the simplest solution to the problem would be to make the JMapPane
field 'redrawBaseImage' accessible either by making it 'protected' or
creating a 'setRedrawBaseImage ' method.  That way we can reduce the impact
on the JMapPane code.

I have extended the JMapPane class and overridden the 'paintComponent'
method (using reflection to set the 'redrawBaseImage' field accessible).  If
the map pane is not the topmost pane I set the 'redrawBaseImage' field to
false.  I then call the 'super.paintComponent' method.  This seems to work
OK but it would be better if I could access the 'redrawBaseImage' field
without using reflection.

Let me know what you think.

Thanks,
Richard
-- 
View this message in context: 
http://n2.nabble.com/JMapPane-bleeding-through-JInternalFrame-tp4891979p4913489.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to