mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-26 01:35:42 +00:00
shape preview fixed
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -223,6 +223,7 @@ public class TagTree extends JTree {
|
||||
setHashColor(Color.gray);
|
||||
}
|
||||
};
|
||||
|
||||
setUI(treeUI);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user