Download NetBeans!

20070126 Friday January 26, 2007

Flash in NetBeans IDE

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.

Jan 26 2007, 09:22:04 AM PST Permalink