Witam, jestem początkującym w Javie. Zrobiłem obracającą się kość, jednak problem w tym że w programie zostawia ona w obwódce taki ślad.
W ten sposób kość się obraca:
z innymi gifami nie ma tego problemu.
Oto kod:
public class Test extends JFrame{
/**
* @param args the command line arguments
*/
private JLabel label;
private ImageIcon image = new ImageIcon("bone.gif");
public Test(){
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setSize(300, 600);
setLocation(50,50);
setLayout(new GridLayout());
label = new JLabel(image);
add(label);
setVisible(true);
}
public static void main(String[] args) {
new Test();
}
}
Jak można się tego pozbyć?
Pozdrawiam