private JPanel createImagesCard() {
    JPanel shapesCard = new JPanel(new BorderLayout());
    JPanel previewPanel = new JPanel(new BorderLayout());

    JPanel previewCnt = new JPanel(new BorderLayout());
    imagePanel = new ImagePanel();
    imagePanel.setLoop(Configuration.loopMedia.get());
    previewCnt.add(imagePanel, BorderLayout.CENTER);
    previewCnt.add(
        imagePlayControls = new PlayerControls(mainPanel, imagePanel), BorderLayout.SOUTH);
    imagePlayControls.setMedia(imagePanel);
    previewPanel.add(previewCnt, BorderLayout.CENTER);
    JLabel prevIntLabel = new HeaderLabel(mainPanel.translate("swfpreview.internal"));
    prevIntLabel.setHorizontalAlignment(SwingConstants.CENTER);
    // prevIntLabel.setBorder(new BevelBorder(BevelBorder.RAISED));
    previewPanel.add(prevIntLabel, BorderLayout.NORTH);

    shapesCard.add(previewPanel, BorderLayout.CENTER);

    shapesCard.add(createImageButtonsPanel(), BorderLayout.SOUTH);
    return shapesCard;
  }
 public void setMedia(MediaDisplay media) {
   this.media = media;
   imagePlayControls.setMedia(media);
 }
 public void showImagePanel(SerializableImage image) {
   showCardLeft(DRAW_PREVIEW_CARD);
   parametersPanel.setVisible(false);
   imagePlayControls.setMedia(imagePanel);
   imagePanel.setImage(image);
 }
 public void showImagePanel(Timelined timelined, SWF swf, int frame) {
   showCardLeft(DRAW_PREVIEW_CARD);
   parametersPanel.setVisible(false);
   imagePlayControls.setMedia(imagePanel);
   imagePanel.setTimelined(timelined, swf, frame);
 }