Package chrriis.dj.nativeswing.swtimpl.components

Examples of chrriis.dj.nativeswing.swtimpl.components.JFlashPlayer.load()


    flashPlayerPanel.setBorder(BorderFactory.createTitledBorder("Native Flash Player component"));
    final JFlashPlayer flashPlayer = new JFlashPlayer();
    flashPlayer.setControlBarVisible(true);
    FlashPluginOptions flashLoadingOptions = new FlashPluginOptions();
    flashLoadingOptions.setVariables(new HashMap<String, String>() {{put("mytext", "My Text");}});
    flashPlayer.load(VariablesAndFlow.class, "resource/dyn_text_moving.swf", flashLoadingOptions);
    flashPlayerPanel.add(flashPlayer, BorderLayout.CENTER);
    contentPane.add(flashPlayerPanel, BorderLayout.CENTER);
    JPanel variablePanel = new JPanel(new BorderLayout());
    variablePanel.setBorder(BorderFactory.createTitledBorder("Get/Set Variables"));
    JPanel getSetNorthPanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 4, 2));
View Full Code Here


    JPanel contentPane = new JPanel(new BorderLayout());
    JPanel flashPlayerPanel = new JPanel(new BorderLayout());
    flashPlayerPanel.setBorder(BorderFactory.createTitledBorder("Native Flash Player component"));
    final JFlashPlayer flashPlayer = new JFlashPlayer();
    // Flash Demo from Paulus Tuerah (www.goldenstudios.or.id)
    flashPlayer.load(FunctionCalls.class, "resource/FlashPlayerInteractions.swf");
    flashPlayerPanel.add(flashPlayer, BorderLayout.CENTER);
    contentPane.add(flashPlayerPanel, BorderLayout.CENTER);
    GridBagLayout gridBag = new GridBagLayout();
    JPanel interactionsPanel = new JPanel(gridBag);
    interactionsPanel.setBorder(BorderFactory.createTitledBorder("Java Interactions"));
View Full Code Here

*/
public class SimpleFlashExample {

  public static JComponent createContent() {
    JFlashPlayer flashPlayer = new JFlashPlayer();
    flashPlayer.load(SimpleFlashExample.class, "resource/Movement-pointer_or_click.swf");
    return flashPlayer;
  }

  /* Standard main method to try that test as a standalone application. */
  public static void main(String[] args) {
View Full Code Here

    layeredPane.setBackground(new Color(200, 200, 255));
    int layerIndex = 0;
    // A flash player
    JFlashPlayer flashPlayer = new JFlashPlayer(JFlashPlayer.constrainVisibility());
    flashPlayer.setControlBarVisible(false);
    flashPlayer.load(SimpleFlashExample.class, "resource/Movement-pointer_or_click.swf");
    flashPlayer.setBounds(0, 0, 200, 200);
    layeredPane.setLayer(flashPlayer, layerIndex++);
    layeredPane.add(flashPlayer);
    // A swing panel
    JPanel swingPanel = new JPanel();
View Full Code Here

        log(logTextArea, "- JFlashPlayer is initialized.");
        log(logTextArea, "  -> runInSequence() used to display this message.");
      }
    });
    log(logTextArea, "- Before JFlashPlayer.load() call.");
    flashPlayer.load(SimpleFlashExample.class, "resource/Movement-pointer_or_click.swf");
    flashPlayer.runInSequence(new Runnable() {
      public void run() {
        log(logTextArea, "- runInSequence(): JFlashPlayer.load() has run.");
      }
    });
View Full Code Here

        log(logTextArea, "- JFlashPlayer is initialized.");
        log(logTextArea, "  -> runInSequence() used to display this message.");
      }
    });
    log(logTextArea, "- Before JFlashPlayer.load() call.");
    flashPlayer.load(SimpleFlashExample.class, "resource/Movement-pointer_or_click.swf");
    flashPlayer.runInSequence(new Runnable() {
      public void run() {
        log(logTextArea, "- runInSequence(): JFlashPlayer.load() has run.");
      }
    });
View Full Code Here

    flashPlayerInternalFrame.setBounds(100, 100, 400, 280);
    flashPlayerInternalFrame.setResizable(true);
    flashPlayerInternalFrame.setVisible(true);
    JFlashPlayer flashPlayer = new JFlashPlayer(JFlashPlayer.proxyComponentHierarchy());
    flashPlayer.setControlBarVisible(false);
    flashPlayer.load(SimpleFlashExample.class, "resource/Movement-pointer_or_click.swf");
    flashPlayerInternalFrame.add(flashPlayer, BorderLayout.CENTER);
    desktopPane.add(flashPlayerInternalFrame);
    // Web Browser 2 internal frame, with a button on top
    JInternalFrame webBrowser2InternalFrame = new JInternalFrame("Web Browser 2 with a JButton on top");
    webBrowser2InternalFrame.setBounds(190, 190, 400, 280);
View Full Code Here

        // Rather than wait for garbage collection, release when the component is removed from its parent.
        flashPlayer.disposeNativePeer();
      }
    };
    flashPlayer.setControlBarVisible(false);
    flashPlayer.load(SimpleFlashExample.class, "resource/Movement-pointer_or_click.swf");
    contentPane.add(flashPlayer, BorderLayout.CENTER);
    JButton addRemoveButton = new JButton("Add/Remove component");
    addRemoveButton.addActionListener(new ActionListener() {
      protected boolean isAdded = true;
      public void actionPerformed(ActionEvent e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.