1. problem of MediaTracker and paint(Graphics) coderanch.comWhen I use MediaTracker in program,the method "paint(Graphics)" will be invoked ceaselessly! why ?? import java.awt.*; import java.awt.event.*; import java.awt.image.*; import javax.swing.*; public class test extends JFrame { public test() { super("welcome"); //this.addNotify(); setPane(); pack(); setSize(800, 600); show(); } private void setPane() { MenuPane menuPane = new MenuPane(); MediaTracker tracker = new MediaTracker(this); Image img = Toolkit.getDefaultToolkit().getImage("icon.gif"); tracker.addImage(img, 0); try { ... |