remove config listeners on ffdec restart (solves a nullpointer exception problem)

This commit is contained in:
honfika@gmail.com
2015-12-21 16:20:42 +01:00
parent 4150718268
commit 760b5605ed
2 changed files with 30 additions and 17 deletions

View File

@@ -54,7 +54,6 @@ import java.awt.event.MouseMotionAdapter;
import java.awt.event.MouseMotionListener;
import java.awt.geom.AffineTransform;
import java.awt.image.BufferedImage;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
@@ -62,7 +61,6 @@ import java.util.Timer;
import java.util.TimerTask;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.imageio.ImageIO;
import javax.sound.sampled.LineUnavailableException;
import javax.sound.sampled.UnsupportedAudioFileException;
import javax.swing.JLabel;
@@ -518,14 +516,6 @@ public final class ImagePanel extends JPanel implements MediaDisplay {
return 1;
}
public void setImage(byte[] data) {
try {
setImage(new SerializableImage(ImageIO.read(new ByteArrayInputStream(data))));
} catch (IOException ex) {
logger.log(Level.SEVERE, null, ex);
}
}
@Override
public synchronized boolean zoomAvailable() {
return zoomAvailable;