shape preview fixed

This commit is contained in:
honfika@gmail.com
2014-12-17 15:55:58 +01:00
parent 315ba25475
commit 596dc31137
3 changed files with 4 additions and 0 deletions

View File

@@ -750,6 +750,7 @@ public final class ImagePanel extends JPanel implements ActionListener, MediaDis
int msPerFrame = frameRate == 0 ? 1000 : 1000 / frameRate;
final int cnt = counter;
shouldDraw.set(true);
TimerTask task = new TimerTask() {
public int counter = cnt;
private final AtomicBoolean first = shouldDraw;

View File

@@ -138,11 +138,13 @@ public class FlashPlayerPanel extends Panel implements Closeable, MediaDisplay {
if (!Platform.isWindows()) {
throw new FlashUnsupportedException();
}
try {
flash = ActiveX.createObject(ShockwaveFlash.class, this);
} catch (ActiveXException ex) {
throw new FlashUnsupportedException();
}
flash.setAllowScriptAccess("always");
flash.setAllowNetworking("all");
flash.addFlashCallListener(new ActiveXEventListener() {

View File

@@ -223,6 +223,7 @@ public class TagTree extends JTree {
setHashColor(Color.gray);
}
};
setUI(treeUI);
}