package jalview.gui;\r
\r
import java.awt.*;\r
+import java.awt.Graphics2D.*;\r
+\r
import javax.swing.*;\r
import jalview.datamodel.*;\r
import jalview.analysis.*;\r
public class IdCanvas extends JPanel\r
{\r
protected Image img;\r
- protected Graphics gg;\r
+ protected Graphics2D gg;\r
\r
protected int imgWidth;\r
protected int imgHeight;\r
\r
img = createImage(imgWidth,imgHeight);\r
\r
- gg = img.getGraphics();\r
+\r
+ gg = (Graphics2D)img.getGraphics();\r
gg.setColor(Color.white);\r
gg.fillRect(0,0,imgWidth,imgHeight);\r
\r