Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Adobe Flash inside Java components  RSS feed

 
Jason R. Kretzer
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good Day Everyone!

I am looking at using Java for an application that I am building. One of the major components of this application is that it be able to display an html file with a flash swf inside a bounded box on the screen at precise coordinates that I specify. I do have some background in Java though it has been several years. As such, using my previous knowledge, I would probably use a JWindow to cover the screen(or a borderless jframe, perhaps?) and the use a JPanel or some other container to display the flash. The trick is that it needs to be able to be drawn exactly where I tell it to. There will be no resizing or anything like that to worry about. I have searched the forum and google for this and have not really found anything newer than 2008 or so.

The question is Is it possible?

I know in the Qt toolkit you can use a QWebView to do this and it will use the installed flash plugin.

Thanks!
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are a couple libraries that can play age-old Flash versions (QT4J, JMF), but if you're looking for an embedded web view that supports Flash, I think you're out of luck.

QWebView probably embeds the rendering engine of whatever browser is standard on Qt - in Java it's not so easy to hook up the GUI to such a native component.
 
Jason R. Kretzer
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:There are a couple libraries that can play age-old Flash versions (QT4J, JMF), but if you're looking for an embedded web view that supports Flash, I think you're out of luck.

QWebView probably embeds the rendering engine of whatever browser is standard on Qt - in Java it's not so easy to hook up the GUI to such a native component.


Do you know anything about JWebBrowser? or JxBrowser(non-free)?
 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could try JavaFX WebView. No, I don't know whether it supports Flash -- you'll need to find that out.

JavaFX documentation: http://docs.oracle.com/javafx/index.html
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://djproject.sourceforge.net looks interesting, i wasn't aware of it. It's IE only, though, so it's only an option if limiting your app to IE and Windows is acceptable. It also looks fairly easy to gets tarted with, so you could do a quick test of a web page containing Flash to see of it works.

http://www.teamdev.com/jxbrowser/ claims to support Flash on their home page.

Darryl Burke wrote:You could try JavaFX WebView. No, I don't know whether it supports Flash

It does not support plugins of any kind, so no Flash.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!