Geertjan's Blog

  • January 26, 2007

Flash in NetBeans IDE

Geertjan Wielenga
Product Manager
Technical writer Talley Mulligan made a brand new series of flash movies as a High-level Introduction to NetBeans IDE and the Community. It's pretty cool to watch and Talley's voice is really soothing. However, if you're a semi-savvy module developer, why not integrate something like JFlashPlayer... and then you'll be able to watch/hear Talley's movie right inside the IDE:

Maybe in future we'll be able to distribute an integrated Flash Player with the IDE, together with flash movies as tutorials? That would be cool. Pity JFlashPlayer isn't free though. But they have temporary licenses available and maybe there's an open source alternative. Here's all the code I needed, all under the "Browse" button (everything else was generated by the Window Component wizard, with the addition of me drag-and-dropping a JPanel on the TopComponent):

JFileChooser fc = new JFileChooser();
int returnVal = fc.showOpenDialog(this);
if (returnVal == JFileChooser.APPROVE_OPTION) {
String flashMovie = fc.getSelectedFile().toString();
FlashPanel welcomePanel = new FlashPanel(new File(flashMovie));
jPanel1.add(welcomePanel, BorderLayout.CENTER);

So all that happens is that the FlashPanel gets added to the JPanel. And that's it. That's how you integrate Talley into NetBeans IDE.

Join the discussion

Comments ( 4 )
  • Sven Reimers Friday, January 26, 2007
    Hmm, what about https://jflash.dev.java.net/ ;-)
  • Tom Wheeler Friday, January 26, 2007
    Very interesting. BTW, the Gnash project aims to provide an open source Flash player. Unfortunately, I believe it currently only supports older versions of the Flash format.
  • Geertjan Saturday, January 27, 2007
    Thanks Sven and Tom. I've just been looking at jflash.dev.java.net, but their player doesn't seem to support current versions of Flash format, because I can't play Talley's Flash movies (but others are possible). What IS cool is that JFlash comes as a NetBeans project, with examples, and also a distro for Java ME.
  • guest Monday, June 13, 2016

    Hi, can u help me ? ive already done my game project by using adobe flash. Now i dont know how to import the project into netbeans.. Thanks

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.