±Û¾´ÀÌ :ÀÌÁ¾¼ö 2000³â 3¿ù 22ÀÏ 18:17:37
In Reply to: [Áú¹®] ½ºÅ©·ÑÆÐÀο¡¼ÀÇ ±ô¹ÚÀÓ (ÄÚµå÷ºÎ) posted by ¾ç¿ËÀÌ on 2000³â 3¿ù 22ÀÏ 11:30:47:
public void paint(Graphics g) {
width = getSize().width;
height = getSize().height;
if (img == null) {
d = getSize();
img = createImage(width, height);
} if (d.width != width || d.height != height) {
d = getSize();
img = createImage(width, height);
}
gc = img.getGraphics();
gc.setColor(Color.red);
gc.fillRect(0, 0, width - 1, height - 1);
gc.setColor(Color.black);
for (int i = 0; i < lists.size(); i++) {
m.scrollpane.doLayout();
a = i*30+30;
gc.drawString((String)lists.elementAt(i),0,a);
}
g.drawImage(img, 0, 0, this);
}