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();
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"));