File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes How to display flash file(.swf) in java application? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "How to display flash file(.swf) in java application?" Watch "How to display flash file(.swf) in java application?" New topic
Author

How to display flash file(.swf) in java application?

Javed Akhtar
Greenhorn

Joined: Dec 20, 2000
Posts: 18
I want to display an image developed in flash (ie .swf extension)
in my java application.I had tried with JMF2.1,but JMF2.1 supports till flash 2 only.Kindly help me to display advance flash application in my Java Application?
I need your help very much. I am so grateful if somebody get back to me as early as posible.
Thanking very much,
Javed
Raghu Jamwal
Greenhorn

Joined: Dec 28, 2000
Posts: 8
Hi Javed
Do you need to display the flash image in a webpage?If so copy and paste the code that is generated by flash in the html page,in the place where you want the image to be,and ensure that all your .swf files are in the root directory, eg:if your page is in /html/demoapp/yourpage.html then the swf files shouls be in the demoapp directory.
Hope that helps.
Javed Akhtar
Greenhorn

Joined: Dec 20, 2000
Posts: 18
Hello Raghu,
Thanks for response,but I don't want to display it in Webpage,Basically I wants to run flash application in my standalone Java application. For example I am having a hello.swf
file and I wants to display it in a Java Frame not in applet or webpage.
Kindly get back to me as early as posible.
Thanks
Javed
Yin Yun Yap
Greenhorn

Joined: Aug 31, 2003
Posts: 2
hmmm i am having the same problem as yours... however even i have tried to put flash within a html... it also cannot be displayed using JEditorPane...
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Unless someone has developed a Flash viewer in Java (which is very unlikely, especially given the patent issues involved) you're really out of luck, unless you want to write a lot of native code to host the plug-in.
Hmmm. Maybe have a look at what the Jazilla project is up to regarding plug-ins (http://jazilla.sourceforge.net).


[Jess in Action][AskingGoodQuestions]
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Nasty solution - look at Jacob or other Java COM bridge products to see if you can put IE as an activex control on a Java page. We had a couple variations of this *almost* working and decided the requirements didn't really call for it.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to display flash file(.swf) in java application?
 
Similar Threads
How to use flash plugin in java application
How to use flash plugin in java application
How to display flash file(.swf) in java application?
How to display flash file(.swf) in java application?
Use of flash plugin in java application