Using Flex components in Java application

Hello,
I was learning Flex previously, and I thought I remembered reading somewhere that I can use Flex UI components in a Java application. For instance, I could use Flex for the UI, and Java for the backend. I can't find though the documentation for this. I read this last summer. I don't mean using Flex as a UI in a browser and Java on the server, but a Java application that runs on the client with a Flex UI. I thought what I needed was the flex compiler api, but I looked at the flex compiler api documentation and it isn't what I want.
Does anyone know what this "part" of Flex is that I am talking about, but can't remember?
Thanks,
Vance

No, thanks, but that wasn't what I was thinking of.
What I remember looking at was some library that allowed wrapping Flex UI componnts in Java Swing components. Then the Swing components could be used in the Java app. One main objective of my wrapping Flex in Java is to use flash.media.Video class to play flash video.

Similar Messages

  • How to use OLE Components in Java Application?

    Hi,
    I try to make program that is able to include OLE components( Excel sheet, MS Word document, and so on ), and that can control these components.
    I want to know that Java Application or Applet can control and show OLE components like JavaBeans components. If that, How to ?

    Try this to generate a Word file.....
    import com.jacob.activeX.*;
    import com.jacob.com.*;
    public class ExportDOC {
    public ExportDOC () {
    //Application type
    ActiveXComponent doc = new ActiveXComponent("Word.Application");
    //Application visible
    doc.setProperty("Visible", new Variant(true));
    Object documents = doc.getProperty("Documents").toDispatch();
    //Open a file already exits
    //Object document = Dispatch.call(documents, "Open", "c:/nameFile.doc").toDispatch();
    //Open a new file empty
    Object document = Dispatch.call(documents, "Add", "").toDispatch();
    Object selection = Dispatch.get(doc,"Selection").toDispatch();
    //Text Format
    Object font = Dispatch.get(selection, "Font").toDispatch();
    Object alignment = Dispatch.get(selection, "ParagraphFormat").toDispatch();
    Object image = Dispatch.get(selection, "InLineShapes").toDispatch();
    //I put the selection at the end of the file for if I want to add text
    //Dispatch.call(selection, "EndKey", "6");
    //Text format (bold & italic)
    Dispatch.put(font, "Bold", "1");
    Dispatch.put(font, "Italic", "1");
    //To jump line
    Dispatch.call(selection, "TypeParagraph");
    //Align center (0= left, 1=center, 2=right, 3=justify)
    Dispatch.put(alignment, "Alignment", "1");
    //Insert image
    Dispatch.call(image, "AddPicture", "c:/graf.jpg");
    Dispatch.call(selection, "TypeParagraph");
    Dispatch.put(alignment, "Alignment", "3");
    //Insert Text
    Dispatch.call(selection, "TypeText", "Text ....... ");
    //Original values
    Dispatch.call(selection, "TypeParagraph");
    Dispatch.put(alignment, "Alignment", "0");
    Dispatch.put(font, "Bold", "0");
    Dispatch.put(font, "Italic", "0");
    //To jump page
    //Dispatch.call(select, "InsertBreak");
    //Save the document
    //Dispatch.call(document, "SaveAs", "c:/test.doc");
    //Quit the application
    //dc.invoke("Quit", new Variant[] {});
    public static void main(String[] args) {
    ExportDOC e = new ExportDOC();
    but you must download 'jacob.jar' in....
    http://users.rcn.com/danadler/jacob/
    is a FREEWARE!!!
    regards!!

  • Have a problem using flex ui with Java application

    Hi, I have a built a Flex UI for a java project. The UI has
    some forms which use a servlet for POST and data populated from
    servlet. I have used HTTP service to make the calls. I have built
    my application i.e UI in Flex Builder and when I run my application
    from flex builder everything works fine i.e data populated
    correctly..
    But when I open the projects folder and run the html file
    generated the Http Service does not happen. Can anybody tell me why
    is this so?? . Moreover I want use this UI for my already existing
    java project. So what all files (i,e. html, mxml, swf) will be
    required to be copied to my java project for the UI to work ..
    .Thanks in advance...

    well, that's because Flex Builder is tell Flash player to
    trust stuff in the bin folder:
    http://viconflex.blogspot.com/2008/08/why-no-sandbox-violation-running-from.html
    ATTA

  • How to use Flex Components with Flash?

    Hi!!
    I found a lot of very useful components in the web, but they are all for  Flex, is it possible to use Flex Components with Flash IDE?
    Thanks !!!
    jenry
    PS: this is one of the components I need to use (a tree with checkbox  nodes)
    http://www.sephiroth.it/file_detail.php?pageNum_comments=30&id=151
    another one:
    http://www.darronschall.com/weblog/2006/09/a-flex-2-checked-tree-control-component.cfm

    Flex components are delivered as SWCs just like Flash components, but the
    SWC format is incompatible with the Flash IDE.
    Also, the default fl.. components in the Flash IDE are incompatible with
    Flex components.
    You should be able to load a Flex SWF into a Flash SWF as long as you aren't
    using fl.. components in the Flash SWF.  If the Flex SWF overlays things
    in your Flash SWF then it might block interaction, but otherwise it
    shouldn't.  I don't think the statement you quoted is true for all
    configurations.
    But loading a Flex SWF into a Flash SWF isn't going to help you use those
    Flex components from your Flash IDE.  Try Flash Builder 4 to build out the
    Flex portion of your application.  I haven't tried it myself, but it I think
    it is supposed to have better integration with Flash.

  • Can I use Streaming Video in Java Application?

    Will i be able to use Streaming Video in Java Application, if yes can anyhow out there pls teach me how to do it... thanks...

    read up on the Java Medai Framework http://java.sun.com/products/java-media/jmf/index.html

  • Can i use flex components in flash?

    hi all,
    i recently downloaded flex and saw that the components have a
    much better feel than the components which ship with flash 8 pro.
    is there a way to use flex components in flash?
    any help would be appreciated.
    thanks,
    gaurav

    "rritchey" <[email protected]> wrote in
    message
    news:g8ua6d$qu6$[email protected]..
    > bump: Was I not clear in my question? Or does no-one
    know the answer?
    You might want to try in the flexCoders Yahoo! group.

  • Using JDBC in multithreaded Java application?

    Hello everyone
    Is it supported to use JDBC in multiple concurrent threads of a single Java application?
    I intend to use Java 7 (or even Java 8?) from standard Java multi-threaded library to access the following: Oracle 11g/12c and Microsoft SQL Server 2012-2014 and also PostgreSQL 9.4+.
    The Java dababase client application will run on Linux and on Windows (64-bit).
    If its supported to use JDBC in multi-threaded way - will it scale up well or am I better off using mutiple single-threaded Java applications instead?
    Are there any rules to follow when using JDBC from multiple-concurrent threads (such as: do not share any JDBC objects among threads, etc).
    Thank you
    Yuri Budilov

    Is it supported to use JDBC in multiple concurrent threads of a single Java application?
    Of course.
    I intend to use Java 7 (or even Java 8?) from standard Java multi-threaded library to access the following: Oracle 11g/12c and Microsoft SQL Server 2012-2014 and also PostgreSQL 9.4+.
    You should use a separate connection pool for each database.
    See the JDBC Dev Guide and use the latest Oracle driver and the latest connection methods shown in that doc
    http://docs.oracle.com/cd/E11882_01/java.112/e16548/toc.htm

  • How to use " toFront() " method in java application and in which package or

    How to use " toFront() " method in java application and in which package or class having this toFront() method.if anybody know pl. send example.

    The API documentation has a link at the top of every page that says "Index". If you follow that and look for toFront(), you will find it exists in java.awt.Window and javax.swing.JInternalFrame.
    To use it in a Java application, create an object x of either of those two classes and write "x.toFront();".

  • Using Flex components within Flash CS3

    I'm new to Flex and I enjoy all of the components that it has
    to offer, but I am wondering about their availability within Flash.
    My plan is to make a highly animated and interactive menu and
    I have reached a point where I have to ask two questions:
    1. Is is possible to use any of the Flex components within
    Flash CS3?
    2. If the first is not possible, then if I make my menu and
    specify "containers" within the Flash file then is it possible to
    populate these "containers" with Flex components by making the
    Flash (.swf) file of my menu into a Flex component itself?

    No, Flex components cannot be used in Flash 8.

  • HOW TO use OCX controls with Java application

    hi
    Is it possible to use microsoft Ocx controls in java applications.

    Anything is possible. You might want to ask if it's a good idea, but look at some of the people who have asked before. It looks like there are products out there to help.
    http://search.java.sun.com/search/java/index.jsp?qp=&nh=10&qt=%2Btitle%3Aocx&col=javaforums&x=19&y=13

  • How to use a proxy with java applications?

    I have a nokia 6300 type s40v3
    hello,
    I would like to know if it is possible to use a proxy of any and how ? kind with java applications.
    thank you

    Well, it works well when, into my applet, i do somethig like this:
    URL url = new URL(host);
    URLConnection connexion = url.openConnection();My applet uses proxy setting from IE6 but only if i use Java 1.4.2_08.
    With IE6 and Java 1.5.04, it doesn't work (my applet doesn't use proxy settings)
    With Firefox and Java 1.5.04, it's ok
    Have you already seen a problem like this with Java 1.5.04 ?

  • Using Unix commands from Java Application

    Hi,
    I need to write an Java application such that could run Unix commands in a Unix box.
    For example, my Java app needs to log in the Unix box, change directory (cd), create new folder (mkdir), list the current files in folder (ls), mount a new device (mount), etc.
    Thank you very much.
    Hung

    you can use java.lang.Runtime.exec to invoke OS commands, but if you're going to be completing a sequence that complicated and need to manage error handleing well, it might be best to just invoke a native method or write a shell script that does all of that stuff and then invoke that script via Runtime.exec . The Runtime class has limitations when you start invoking processes that require user input (like 'su'). Search the forums for more extensive examples on how to use Runtime.

  • Using xml file in java application

    How can i get the attribute name & value into my java application from a xml flie?

    read the file
    parse the contents
    store attribute name & value pairs.
    %

  • Using flex for thik client application

    My application is an C++ thik client application. It uses
    some king of lib (called zaf) for the UI.
    Can Flex be used for handling the UI of desktop application
    ?

    You could use AIR (Adobe Integrated Runtime), in which most
    of the app is created in Flex, and some in AIR extensions, but
    there would be limitations. You can't execute native applications
    from AIR applications, so you can't execute Perl scripts, Java
    apps, etc. from your AIR app. You can of course use FDS (Flex Data
    Services) to connect to POJO, EJB, JavaBeans, SOAP and other web
    services, etc.

  • Is database Engine necessary or should I use one in my Java application?

    I am writing a program which similar to a telephone directory kind of application. I have a database and I am thinking to use JDBC with mySQL for the database.
    My question is that later when this program is ready and I am going to burn it to CD, what will be happen with mySQL? Can I add mySQL (or a similar program)?
    Is it not better to make a database by Java objects or arrays within Java? What is the smart way to this when it comes to a program which in the background you have database??? Thank you for sharing your expertise...

    I am writing a program which similar to a telephone
    directory kind of application. I have a database and
    I am thinking to use JDBC with mySQL for the
    database.
    My question is that later when this program is ready
    and I am going to burn it to CD, what will be happen
    with mySQL? Can I add mySQL (or a similar program)?You can, but will users want that? Are you better off allowing users to work with any relational database they wish?
    >
    Is it not better to make a database by Java objects
    or arrays within Java? Unless you plan on writing a relational database and SQL engine on your own, the best bet is to get a real relational database.
    Hypersonic SQL is small and embeddable in Java. Cloudscape might be good, too. Derby is going to be part of Java 6, unfortunately. PostgreSQL is a terrific relational database that's free.
    What is the smart way to this
    when it comes to a program which in the background
    you have database??? Thank you for sharing your
    expertise...The smart thing is to get a real relational database and forget about doing it yourself. Databases are far more complex than a few arrays or objects.
    %

Maybe you are looking for

  • Apps wont update and cant download anything from Itunes

    I've been using my Iphone4 for 10 months now and haven't had any problems. I updated to iOs5 and iOs5.01. I never resorted to jailbreaking it nor would never resort in the future.. I believe in purchasing apps and paying the developers for really goo

  • I have written a question but when how do I send it to you? I couldn't find a send button.

    How do you expect me to see -- oh now it shows up at the bottom of the page. After I spent time writting a detailed description.

  • BAdI Change Display in Shopping Cart

    Hi, Has anyone activated the functionality that allows you to change the display of the shopping cart? If yes, what can you actually alter with it and where did you find useful documentation? Jerry

  • WebDocuments: Cannot open original files

    Hello, We are testing WebDocuments - BSP,which is used to retrieve data from SAP - DMS(Document Management System). When we try to open any original file in any one of the documents, we get exception. All other functions are working all right. Can an

  • Is frame works in JSP

    nobr]i am new to java and working in jubuilder i have made there three forms, calling s-aots and st_aots in fs_aots but when i compile it takes fiel,d text on seprate page and display result on other window why it dosent use frame here 2nd thing i wa