if (image == null || imgWidth != image.getWidth()
|| image.getHeight(this) != getHeight())
{
+ try {
image = new BufferedImage(imgWidth, ap.annotationPanel.getHeight(),
BufferedImage.TYPE_INT_RGB);
+ } catch (OutOfMemoryError oom)
+ {
+ try {
+ System.gc();
+ } catch (Exception x){};
+ new OOMWarning("Couldn't allocate memory to redraw screen. Please restart Jalview", oom);
+ return;
+ }
gg = (Graphics2D) image.getGraphics();
if (av.antiAlias)