int width = swfAnimatorPreviewRootPanel.getWidth();
int height = swfAnimatorPreviewRootPanel.getHeight();
SimpleImage img = new SimpleImage(width, height);
img.fillBackground(0, 0, 0);
flamePanel = new FlamePanel(prefs, img, 0, 0, swfAnimatorPreviewRootPanel.getWidth(), this, null);
ResolutionProfile resProfile = getResolutionProfile();
flamePanel.setRenderWidth(resProfile.getWidth());
flamePanel.setRenderHeight(resProfile.getHeight());
flamePanel.setFocusable(true);
swfAnimatorPreviewRootPanel.add(flamePanel, BorderLayout.CENTER);
swfAnimatorPreviewRootPanel.getParent().validate();
swfAnimatorPreviewRootPanel.repaint();
flamePanel.requestFocusInWindow();