* in the adjustment listener in SeqPanel when the scrollbars move.\r
*/\r
\r
- public void paint(Graphics g)\r
+ public void paintComponent(Graphics g)\r
{\r
g.setColor(Color.white);\r
g.fillRect(0, 0, getWidth(), getHeight());\r
// this draws the whole of the alignment\r
imgWidth = getWidth();\r
imgHeight = getHeight();\r
- if(imgWidth<0 || imgHeight<1)\r
+ if(imgWidth<1 || imgHeight<1)\r
return;\r
\r
imgWidth -= imgWidth%av.charWidth;\r