Flash in Swing
Is there any way that you can import and use flash in swing?
I am still trying but if you have Flash 5.0 you will get
flash.jar file.
Any way try to get Activex control or Flash Player version 5.0 with
that you will get the Flash.jar File and how to use it. I think to use this jar file Flash version need to be 2 or 3
I tried a lot but unable to do. It has all functions like getFrame,play(),stop.
If you get info please mail me
[email protected]
Similar Messages
-
Hi,
Im looking to integrate flash with swings. This is for a desktop application, not a web based application. I was looking for some help on this, if someone could help me with it.
Regards,
Ghost RiderFlash is proprietary technology and they don't play nice with others. Same reason why you can't load an MSWord doc in a Java GUI. If Flash WAS an open technology, then perhaps someone would/could build a plugin or some way to do it.
-
Hi Flash community
I am researching on having the Flash application embedded in
the Java Swing GUI.
An approach seems to have the Http client view to load the
flash url. But are there any additional technologies from Adobe?
How extensive is the integration forFlex to call Java
objects/functions if http is not used?
Thanks
Nilesh Gujarathihow about asking Mr. Google - he knows a lot of libraries....
well here is one:
http://www.jpackages.com/jflashplayer -
hi.....do u think Flash > Applet AND VB.NET> Swing ?
I have little knowledge on Applet AND Swing......but I think Flash and VB.Net has exceeded and captured the market of Applet and Swing . Now a days most sites are using Flash for interactivity and VB for interface. do u think learning Flash and VB.NET would be worthy ? or should i update my knowledge on Applet and Swing ? One more bad thing regarding swing is , the code becomes bulky to get a simple interface .
i have one more doubt,......suppose i made a interface in VB.NET ( front end ) , can i run java code in back end ?
plz let me know what should i emphasis ?
thanksIt all depends on your current situation. Are you employed in IT? If so, what technologies is your employer using now. What technologies do they see themselves using next year? In 5 years?
What skills do you have now? Are you proficient in any technologies? Think about whether you want to be a jack-of-all-trades or very proficient in a smaller number of technologies. Are your current skills saleable to an employer? Should you improve your current skills or start learning new skills?
Hey, for a forum answer, I've certainly typed a lot of question marks! -
I recently downloaded an evaluation version of jFlash from sesma.com and it seems that Flash makes sense as an alternative for building impressive front end GUI's. Although It took me a while to get up to speed, in the end I could control Flash movies as Java objects. Pretty impresive. What do you guys think?
If you think about it, the problem with swing is that developers and graphics artists need to be the same person in order to get the job done. When I write swing code, it might work like a jet engine, but it looks like I just took a dump on the screen. I guess you need to be really good a writing a lot of code to make swing look good (too much work -for me at least). Products like jFlash, would problably allow Java developers to work on the stuff that makes the application solid, and in parallel Flash developers can write flash adhereing to whatever the Java developer specs out. And in the end, you end up with a solid app, and a beautiful front end.
-
How can I embed a flash video in swing panel?
Flash is proprietary technology and they don't play nice with others. Same reason why you can't load an MSWord doc in a Java GUI. If Flash WAS an open technology, then perhaps someone would/could build a plugin or some way to do it.
-
Flash SWF file within Swing JFrame
I was wondering whether its possible to open a Flash swf file within a JFrame
I am looking for a solution similar to the usage of Flash Activex control in .NET
thanks in advance
VikasI have read the forum link and other such entries in this forum. I have found the following:
1.) JFlash - a java based flash player. https://jflash.dev.java.net/
Could'nt find the app or the official site
2.) a few projects on sourceforge.org :
java flash bridge where you embed the flash inside an Integrated Browser Component
3.) SWT Flash integration.
I do not find any of these solutions satisfactory.except the SWT/Flash integration which I havent tried.
My question is that isnt there an easier and simpler way to :
Embed Flash into Swing app where actionscript and java can communicate.
I am aware of Remoting and web services. But It is a desktop app I am talking about.
Can anyone suggest anything?
thanks in advance..
from a very frustrated programmer.... -
Is there a way to embed Flash files on a Swing application?
What I want to do is grab locations of images through the java application and pass it to an SWF file to display an animation.
If embedding flash in Swing isn't possible, what other options are there in Swing for animation?
Thanksthere is one more way to embed flash swf file in swings . ie thru JDIC .
java desktop integration compnentsMy current favourite way is thru the DJNativeSwing project. I realised it provides a slightly better renderering of components than JDIC, especially for the embedded IExplorer on Windows platforms, and it also has some extra cool features that one can use out of the box, like mixing heavyweight and lightweight containers. And Swing borders even work great.
ICE -
Sir i want ot use flash in swings how can in embed the flash into my project
please help meFlash is proprietary technology and they don't play nice with others. Same reason why you can't load an MSWord doc in a Java GUI. If Flash WAS an open technology, then perhaps someone would/could build a plugin or some way to do it.
-
How to use Flash buttons/animation in a Swing/Applet?
Hello,
I want to use flash button as like as JButton that we use in Swing/ Applet. How can I do So?
Please help me.
Thanks-[http://java.sun.com/docs/books/tutorial/uiswing/misc/timer.html]
Or maybe just...
import java.awt.*;
import java.net.*;
import javax.swing.*;
public class Blinky {
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable(){
public void run() {
URL url = null;
try {
url = new URL("http://www.gifanimations.com/GA/image/animations/bodyparts/eyes/eye-01.gif");
} catch (MalformedURLException e) {
throw new RuntimeException(e);
JFrame f = new JFrame("Blinky");
f.getContentPane().add(new JButton(new ImageIcon(url)));
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.pack();
f.setLocationRelativeTo(null);
f.setVisible(true);
} -
Embed flash player in Java Swing or SWT UI?
Is it possible to embed the Flash player in a Java Swing or
SWT UI?
Thanks in advance for your help?how about asking Mr. Google - he knows a lot of libraries....
well here is one:
http://www.jpackages.com/jflashplayer -
How to play flash files in java swings
Hi All ,
I have a requirement in java swings , i want to play advertisements ( flash files in swings )
can any one provide any example for the above requirement .
Thank you all for sharing knowledge in this great forum .
JerryI have a java desktop application which is actually a
kiosk application. I have to run some promotion
videos in my application when no user is using the
kiosk.Will the kiosks all be running the same OS?
The reason I ask is that JMF is available in both
standard and performance pack versions. The PP
provides a wider variety of formats, but runs only
on Win. and *nix.
videos can be any avi or neother which can easily be
played in java applications.That is handy. The JMF standard pack provides
support for a number of flavors of AVI, but not all.
What is the best way for me to play video files in a
java application??I would suggest checking if the 'standard' version
of the JMF can play* the current AVI's. If it can, use
the standard JMF for the project, if not, look to
converting the AVI's to something the JMF can
deal with, this might involve storing the video or
audio of the AVI's in a different format - you
might have to experiment to get the right
combination, but the JMF 'supported formats'
is a good guide.
http://java.sun.com/products/java-media/jmf/2.1.1/formats.html
* To check if JMF can play them, install it and
try loading the AVI's in JMStudio - the default
player. -
Is it possible to create flash components (swf files) and include them in a Swing JFrame and be able to post data from and to it.
For example, if the swf gui is showing a list of items, the list is coming from the Java application and then the SWF file gets included in a Swing JFrame. When user chooses an item from the list and clicks a button then the results is passed back to the Java application.
Has anyone done something similar to this? How is this possible? Code samples would be appreciated.May be you can try out JFlash ...
https://jflash.dev.java.net/
They support only upto Flash 2 player... and it is still under development i guess... -
PL/SQL and Java Swing interface
Everybody in this forum knows that Oracle is the best database around
with many functionalities, stability, performance, etc. We also know
that PL/SQL is a great language to manipulate information directly
in the database with many built in functions, OOP capability,
transaction control, among other features. Today an application that
manipulates information, which needs user interface, requires components
to be developed using different technologies and normally running in
different servers or machines. For example, the interface is done using
a dynamic HTML generator like JSP, PHP, PL/SQL Web Toolkit, etc.
This page is executed in an application server like Oracle iAS or
Tomcat, just to name two, which in turn access a database like Oracle to
build the HTML. Also rich clients like Java applets require an intermediate
server to access the database (through servlets for example) although
it is possible to access the database directly but with security issues.
Another problem with this is that complexity increases a lot, many
technologies, skills and places to maintain code which leads to a greater
failure probability. Also, an application is constantly evolving, new
calculations are added, new tables, changed columns. If you have an
application with product code for example and you need to increase its
size, you need to change it in the database, search for all occurrences
of it in the middle-tier code and perhaps adjust interfaces. Normally
there is no direct dependency among the tier components. On another
issue, many application interfaces today are based on HTML which doesn't
have interactive capabilities like rich-client interfaces. Although it
is possible to simulate many GUI widgets with JavaScript and DHTML, it is
far from the interactive level we can accomplish in rich clients like
Java Swing, Flash MX, Win32, etc. HTML is also a "tag-based" language
originally created to publish documents so even small pages require
many bytes to be transmitted, far beyond of what we see on the screen.
Even in fast networks you have a delay time to wait the page to be
loaded. Another issue, the database is in general the central location
for all kinds of data. Most applications relies on it for security,
transaction and availability. My proposal is to use Oracle as the
central location for interface, processing and data. With this approach
we can create not only the data manipulation procedures in the database,
but procedures that also control and manage user interfaces. Having
a Oracle database as the central location for all components has many
advantages:
- Unique point of maintenance, backup and restore
- Integrated database security
- One language for everything, PL/SQL or Java (even both if desired)
- Inherited database cache, transaction and processing optimizations
- Direct access to the database dictionary
- Application runs on Oracle which has support for many platforms.
- Transparent use of parallel processing, clusters and future
background technologies
Regarding the interface, I already created a Java applet renderer
which receives instructions from the database on how to create GUI
objects and how to respond to events. The applet is only 8kb and can
render any Swing or AWT object/event. The communication is done
through HTTP or HTTPS using Oracles's MOD_PLSQL included in the Apache
HTTP server which comes with the database or application server (iAS).
I am also creating a database framework and APIs in PL/SQL to
create and manipulate the client interface. The applet startup is
very fast because it is very small, you don't need to download large
classes with the client interface. Execution is done "on-demand"
according to instructions received from the database. The instructions
are very optimized in terms of network bandwidth and based on preliminary
tests it can be up to 1/10 of a similar HTML screen. Less network usage
means faster response and means that even low speed connections will
have a good performance (a future development can be to use this in
wireless devices like PDAs e even cell phones, just an idea for now).
The applet can also be executed standalone by using Java Web Start.
With this approach no business code, except the interface, is executed
on the client. This means that alterations in the application are
dynamically reflected in the client, no need to "re-download" the
application. Events are transmitted when required only so network
usage is minimized. It is also possible to establish triggering
events to further reduce network usage. Since the protocol used is
HTTP (which is stateless), the database framework I am creating will
be responsible to maintain the state of connections, variables, locks
and session information, so the developer don't need to worry about it.
The framework will have many layers, from communication up to
application so there will be pre-built functions to handle queries,
pagination, lock, mail, log, etc. The final objective is to have a
rich client application integrated into the database with minimum
programming and maintenance requirements, not forgetting customization
capabilities. Below is a very small example of what can de done. A
desktop with two windows, each window with two fields, a button with an
image to switch the values, and events to convert the typed text when
leaving the field or double-clicking it. The "leave" event also has an
optimization to only be triggered when the text changes. I am still
developing the framework and adjusting the renderer but I think that all
technical barriers were transposed by now. The framework is still in
the early stages, my guess is that only 5% is done so far. As a future
development even an IDE can be created so we have a graphical environment
do develop applications. I am willing to share this with the PL/SQL
community and listen to ideas and comments.
Example:
create or replace procedure demo1 (
jre_version in varchar2 := '1.4.2_01',
debug_info in varchar2 := 'false',
compress_buffer in varchar2 := 'false',
optimize_buffer in varchar2 := 'true'
) as
begin
interface.initialize('demo1_init','JGR Demo 1',jre_version,debug_info,compress_buffer,optimize_buffer);
end;
create or replace procedure demo1_init as
begin
toolkit.initialize;
toolkit.create_icon('icon',interface.global_root_url||'img/switch.gif');
toolkit.create_internal_frame('frame1','Frame 1',50,50,300,136);
toolkit.create_label('frame1label1','frame1',10,10,50,20,'Field 1');
toolkit.create_label('frame1label2','frame1',10,40,50,20,'Field 2');
toolkit.create_text_field('frame1field1','frame1',50,10,230,20,'Field 1','Field 1',focus_event=>true,mouse_event=>true);
toolkit.create_text_field('frame1field2','frame1',50,40,230,20,'Field 2','Field 2',focus_event=>true,mouse_event=>true);
toolkit.set_text_field_event('frame1field1',toolkit.focus_lost_event,'demo1_set_upper',toolkit.get_text_method,'FIELD 1','false');
toolkit.set_text_field_event('frame1field2',toolkit.focus_lost_event,'demo1_set_upper',toolkit.get_text_method,'FIELD 2','false');
toolkit.set_text_field_event('frame1field1',toolkit.mouse_double_clicked_event,'demo1_set_lower',toolkit.get_text_method,'field 1','false');
toolkit.set_text_field_event('frame1field2',toolkit.mouse_double_clicked_event,'demo1_set_lower',toolkit.get_text_method,'field 2','false');
toolkit.create_button('button1','frame1',10,70,100,25,'Switch','Switch the values of "Field 1" and "Field 2"','S','icon');
toolkit.set_button_event('button1',toolkit.action_performed_event,'demo1_switch_fields(''frame1field1'',''frame1field2'')','frame1field1:'||toolkit.get_text_method||',frame1field2:'||toolkit.get_text_method);
toolkit.create_internal_frame('frame2','Frame 2',100,100,300,136);
toolkit.create_label('frame2label1','frame2',10,10,50,20,'Field 1');
toolkit.create_label('frame2label2','frame2',10,40,50,20,'Field 2');
toolkit.create_text_field('frame2field1','frame2',50,10,230,20,'Field 1','Field 1',focus_event=>true,mouse_event=>true);
toolkit.create_text_field('frame2field2','frame2',50,40,230,20,'Field 2','Field 2',focus_event=>true,mouse_event=>true);
toolkit.set_text_field_event('frame2field1',toolkit.focus_lost_event,'demo1_set_upper',toolkit.get_text_method,'FIELD 1','false');
toolkit.set_text_field_event('frame2field2',toolkit.focus_lost_event,'demo1_set_upper',toolkit.get_text_method,'FIELD 2','false');
toolkit.set_text_field_event('frame2field1',toolkit.mouse_double_clicked_event,'demo1_set_lower',toolkit.get_text_method,'field 1','false');
toolkit.set_text_field_event('frame2field2',toolkit.mouse_double_clicked_event,'demo1_set_lower',toolkit.get_text_method,'field 2','false');
toolkit.create_button('button2','frame2',10,70,100,25,'Switch','Switch the values of "Field 1" and "Field 2"','S','icon');
toolkit.set_button_event('button2',toolkit.action_performed_event,'demo1_switch_fields(''frame2field1'',''frame2field2'')','frame2field1:'||toolkit.get_text_method||',frame2field2:'||toolkit.get_text_method);
end;
create or replace procedure demo1_set_upper as
begin
toolkit.set_string_method(interface.global_object_name,toolkit.set_text_method,upper(interface.array_event_value(1)));
toolkit.set_text_field_event(interface.global_object_name,toolkit.focus_lost_event,'demo1_set_upper',toolkit.get_text_method,upper(interface.array_event_value(1)),'false');
end;
create or replace procedure demo1_set_lower as
begin
toolkit.set_string_method(interface.global_object_name,toolkit.set_text_method,lower(interface.array_event_value(1)));
toolkit.set_text_field_event(interface.global_object_name,toolkit.mouse_double_clicked_event,'demo1_set_lower',toolkit.get_text_method,lower(interface.array_event_value(1)),'false');
end;
create or replace procedure demo1_switch_fields (
field1 in varchar2,
field2 in varchar2
) as
begin
toolkit.set_string_method(field1,toolkit.set_text_method,interface.array_event_value(2));
toolkit.set_string_method(field2,toolkit.set_text_method,interface.array_event_value(1));
toolkit.set_text_field_event(field1,toolkit.focus_lost_event,'demo1_set_upper',toolkit.get_text_method,upper(interface.array_event_value(2)),'false');
toolkit.set_text_field_event(field2,toolkit.focus_lost_event,'demo1_set_upper',toolkit.get_text_method,upper(interface.array_event_value(1)),'false');
toolkit.set_text_field_event(field1,toolkit.mouse_double_clicked_event,'demo1_set_lower',toolkit.get_text_method,lower(interface.array_event_value(2)),'false');
toolkit.set_text_field_event(field2,toolkit.mouse_double_clicked_event,'demo1_set_lower',toolkit.get_text_method,lower(interface.array_event_value(1)),'false');
end;Is it sound like Oracle Portal?
But you want to save a layer 9iAS.
Basically, that was the WebDB.(Oracle changed the name to Portal when version 3.0)
Over all, I agree with you.
>>Having a Oracle database as the central location for all components has many
>>advantages:
>>
>>- Unique point of maintenance, backup and restore
>>- Integrated database security
>>- One language for everything, PL/SQL or Java (even both if desired)
>>- Inherited database cache, transaction and processing optimizations
>>- Direct access to the database dictionary
>>- Application runs on Oracle which has support for many platforms.
>>- Transparent use of parallel processing, clusters and future
>>background technologies
I would like to build 'ZOPE' inside Oracle DB as a back-end
Using Flash MX as front-end.
Thomas Ku. -
Is it in any way possible to do the above?
Would it be possible to communicate between flash and java in a standalone application?
Instead of building the interface with swing I would be using flash.Possible yes, though java support only extends (with JMF: java media framework) to Flash 2.0, which just about eliminates all of your fancy ActionScript stuff.
You can have a pure animation effect done in Flash with just a gif, which can look very sexy and very cheap in terms of file size. This can be stuck on with ImageIcon blah ... --> ...new JLabel(blah), which is nice and easy or you can also use Graphics.drawImage(...) too. Alternately with JMF you can have some Flash based buttons and the like, though limited as I've said - I have done this with the help of the local library I tracked down a half decent Falsh 2.0 book and the local university a Flash 2.0 CD - Some effort! Worth it? It was very nice in the end ...but, really worth it? - no.
My advice: stick to pure java and simple animated gifs for thing such as splash screens.
Maybe you are looking for
-
Converting Binary Data to Decimals
Hello, my task is to use the VI I created which reads magnetic card strips and displays the 32 bit X 8 binary code. I need to display the binary code as decimals. Here is my VI, where do I go from here? Fernando Attachments: 1MCardReader_finalCopy.vi
-
Post Author: Fabio CA Forum: General Is there a way to load a image dynamically? For example, depending on the Theme of my application or the .css.
-
IOS 5 Notification can use more improvement. I can't seem to click on anything on top when the notification banner is there. Hope a close button will be added to the notification banner.
-
Diff Using and changing in Perform
Hi All, What is the difference betwen USING and CHANGING in Perform. Thanks in advance Ranjith
-
Videos freeze after 5-7 seconds, no audio at all - Google Chrome
Win7 x64 Google Chrome 21.0.1180.60 m Flash version 11.3.31.222 My os is 64-bit, but the "what version of flash are you running" window says it's 32-bit. Which strikes me as odd. Anyway, Problem is basically laid out in the subject. No matter what vi