How to display swf Files and have a datagrid with paging for javaFX

is there any example of javaFX which can display swf files or have a datagrid with paging.
sorry for my bad english and by the way i am new to javaFX
any help wil be appreciate

Please, refrain from posting identical messages in several forums. Thanks.
And I doubt JavaFX can display SWF files (it is a concurrent technology, after all! :-)), unless using some JNI/JNA technology (via JDIC? a long way...).
Datagrid: it is expected in next version (hopefully), there are some implementations around (look for CRUDfx, for example).

Similar Messages

  • How to display RTF file and .doc file in JTextPane

    How to display RTF file and .doc file in JTextPane??

    Duplicate post
    http://forum.java.sun.com/thread.jsp?forum=57&thread=567029&tstart=0&trange=30

  • How can I get a preloader to launch a main (external) swf file, and have the main file remove the preloader once it's fully loaded?

    Using Flash MX, ActionScript 2:
    I’ve been struggling for several weeks, trying to get a preloader to work on a large (~80 MB) photo portfolio file (using the method where the preloader is on frame 1 of the file, and when loading is completed, it jumps to the content).  I’ve done countless tutorials, and none seem to work on my presentation.  I even tried downloading a trial version of CS4 so I could export every one of the file’s library movie clips and images so that they load on Frame 2 (a feature MX doesn’t have).  It takes about 20 seconds for the .exe to load from a CD, and no matter which preloader construction I use, it always seems to appear in the last few seconds before the movie loads completely.  During the initial wait time, there’s no indication that anything is happening:  no hourglass on the mouse, and not even a blank screen. This is only true for the first time that the file is loaded from the CD; on subsequent loads, the file must already be in RAM, because it loads within a few seconds. 
    I decided that I’m going to try and make the file which the user clicks on (one named Windows_Portfolio.exe or another called Mac_Portfolio.hqx) the preloader so that it would be tiny, and would load instantly.  I want that file to launch the external huge portfolio file (renamed files.swf), keep track of its loading progress, and cycle through a slideshow (10 thumbnail images that transition into each other over 100 frames) proportionally, based upon the percentage of files.swf that had been loaded.
    I assume that there should be a loadMovie() or a loadMovieNum() command on the preloader’s timeline to launch files.swf, and that the initial code of files.swf should have some sort of this._parent._visible=false or other way of deleting the preloader on level0.  Can anyone explain the steps to me, or direct me to a good Flash MX tutorial that explains how to launch another external swf from a preloader .exe, keep track of its load progress, and delete the preloader .exe once the external swf had been loaded?
    Also, I’ve read that, using this construction on a CD, every file has to be in the same place, and that I can’t nest files.swf in a folder named “files,” and reference it with files/files.swf.  Is this true?
    Thanks for any assistance you can offer.

    If you know JavaScript (ECMA Script) then you might be able to get it done applying a for loop and a random function
    to the for loop if you know how to get a page-loaded request into JavaScript.
    But an easier solution, if you know ActionScript 3.0, and if your SWF's don't need to be recoded and can load into a "container" SWF would be to create a master FLA file that loads your SWF's in a random fashion using Math.random() as a multiplier, though you won't see much variation if you only have 2-3 SWF's to load--if you had more than that then you would begin to benefit from the random function's capabilities.  In ActionScript 3.0 use the load() method along with addChild() to load the SWF and add it to the stage.  You will be able to search for specifics on how to code the FLA properly by using Flash's Adobe Help tool and also using an internet search.
    -markerline
    P.S. Once you have the master FLA coded you can Publish it to an SWF and an HTML and if the container/master SWF needs to be in a page with other content you can simply copy and paste the object and embed tags for the container SWF from the published HTML into any place on your master HTML that you need it to reside.  You can then use CSS to control placement of the SWF object if it is in a div tag.

  • How to display read file and put in ftp server in jsp

    Hi all
    since this is very importent question, please understand it and reply soon.
    i am using power analyzer sdk. front end as jsp.
    i want read a file using poweranalyzer sdk(how to read this?)and put it in ftp server(how to put this?)
    thanks and regards
    Kasim
    Bangalore

    http://java.sun.com/docs/books/tutorial/uiswing/components/editorpane.html

  • How do i delete files and have the deleted space become available

    When i delete files, the system does not show the deleted space as available. How do I fix that?

    Have you emptied the trash?

  • How to zip one file i have on disk with java.util.zip

    I don't know how to zip a file. I managed to do new html file, but i don't know how to zip it.
    This is my code:
    PrintWriter pw = new PrintWriter (new FileWriter(export), true);
    Thanks!

    heres a zipper class i wrote which i have butchered a bit to make more generic (its basic and at present only takes one zipentry etc, but very simple and should be easy to extend etc) Just pass it your file in its constructor and then call its zipme method. PS if it can be made better let me know so i can update my class, cheers.
    import java.io.*;
    import java.util.zip.*;
    import java.awt.*;
    class zipper
         public File file;
         public zipper(File f)
              file = new File(f);
         public void zipme()
              try
                   FileInputStream fin = new FileInputStream(file);
                   int a = (int)file.length();
                   byte b[] = new byte[a];
                   fin.read(b);
                   ZipEntry k = new ZipEntry(fin.getName());//represents a single file in a zip archive!
                   File newFile = new File("D:\\AZipFile.zip");
                   ZipOutputStream zi = new ZipOutputStream(new FileOutputStream(newFile));
                   zi.putNextEntry(k);
                   zi.write(b,0,a);
                   zi.close();
                   fin.close();
              catch(FileNotFoundException e)
                   //System.out.println("ERROR File not found");
              catch(IOException ee)
                   //System.out.println("ERROR IO exception in Zipping file");
    }

  • How to display .swf files in java using eclips platform ???

    Here my java code plz some one help me...
    import javax.swing.*;
    import java.io.*;
    import java.net.MalformedURLException;
    import java.awt.*;
    import java.awt.event.*;
    public class DisplaySWF extends JFrame
        public JPanel  window_panel;//address_panel,
        public JLabel address_label;
        public JTextField address_tf;
        public JEditorPane window_pane,tree_pane,attr_pane;
        public JScrollPane window_scroll,tree_scroll,attr_scroll;
        TextArea t1,t2;
        JPanel pane;
        public JButton address_b, browse;
        public JLabel l,m;
        private Go go = new Go();
        JFrame f ;
        public DisplaySWF() throws IOException
        // Define address bar
        //tree_pane=new JEditorPane();
        //tree_pane.setBounds(650,50,300,250);
        //address_panel = new JPanel();
        //address_panel.setLayout(null);
        f= new JFrame("Web browser");
        f.setSize(1000,700);
        pane=new JPanel();
        pane.setVisible(true);
        pane.setLayout(null);
        f.setContentPane(pane);
        address_label = new JLabel(" address: ", SwingConstants.CENTER);
        address_label.setBounds(10, 10, 70, 30);
        pane.add(address_label);
        address_tf = new JTextField("",25);
        address_tf.setBounds(80,10,250,30);
        pane.add(address_tf);
        browse = new JButton("Browse");
        browse.setBounds(340, 10, 140, 30);
        browse.addActionListener(go);
        pane.add(browse);
        window_pane=new JEditorPane();
        window_pane.setBounds(10, 50, 600, 600);
        pane.add(window_pane);
        l=new JLabel("DOM Structure");
        l.setBounds(650,30,100,10);
        pane.add(l);
        t1=new TextArea();
        t1.setBounds(650,50,300,250);
        pane.add(t1);
        m=new JLabel("Attribute");
        m.setBounds(650,350,100,10);
        pane.add(m);
        t2=new TextArea();
        t2.setBounds(650,380,300,280);
        pane.add(t2);
        f.setVisible(true);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        window_pane = new JEditorPane("http://www.yahoo.com")
            public boolean getScrollableTracksViewportWidth()
                return true;
    public class Go implements ActionListener
            public void actionPerformed(ActionEvent ae)
                JFileChooser fc = new JFileChooser();
                int result = fc.showOpenDialog(null);
                if (result == JFileChooser.APPROVE_OPTION)
                    File file = fc.getSelectedFile();
                    String sname = file.getAbsolutePath();
                    address_tf.setText(sname);
                    String ext=getFileExtension(sname);
                    try
                        if(ext.equals("swf"))
                            window_pane.setPage(address_tf.getText());
                            System.out.println("hi");
                    catch (MalformedURLException e)
                    {     // new URL() failed
                        window_pane.setText("MalformedURLException: " + e);
                    catch (IOException e)
                    {               // openConnection() failed
                        window_pane.setText("IOException: " + e);
       public String getFileExtension(String filename)
        if (filename == null)
                return null;
        int lastUnixPos = filename.lastIndexOf('/');
        int lastWindowsPos = filename.lastIndexOf('\\');
        int indexOfLastSeparator = Math.max(lastUnixPos, lastWindowsPos);
        int extensionPos = filename.lastIndexOf('.');
        int lastSeparator = indexOfLastSeparator;
        int indexOfExtension = lastSeparator > extensionPos ? -1 : extensionPos;
        int index = indexOfExtension;
        if (index == -1)
            return "";
        else
            return filename.substring(index + 1);
    public static void main(String args[]) throws IOException
      DisplaySWF wb = new DisplaySWF();

    Thanks for reply...
    but i search in the google about this topic...there is no results will appear..
    the problem is "i have to run program in the MacOS like extract all the
    .sit(StuffIt) extension files. These sit files same as zip files in the windows... we have one tool called StuffIt Expander but it is 3rd party tool. but here requirement is i have to write my own program to extract all the files same as zip file program...
    please do the needful..i am waiting for ur reply,,,

  • Can I transfer my CS5 files from my Windows 7 computer to my Mac Yosemite computer and have them work with CS6 for Mac?

    I am using Dreamweaver CS5 on a Windows 7 laptop.  I would like to change to Dreamweaver CS6 on my Mac running Yosemite.  Can I transfer my CS5 files from the  Windows computer to the Mac and will CS6 be able to work those files on the Mac?  I do not need nor want a subscription account.  Just the stand-alone program for occasional tweeks to my web site.  at www.longwayhome.com.
    It is a realtively simple web site that requires only simple editing from time to time.
    Ed Dover

    Yes, your files in CS5 are just .html, .css, .php and .js files, there's nothing that makes them "CS5 versions" of those file types.
    You can do it a couple different ways, but the easiest would be to copy the folder being used as the root directory (and all of it's contents) from one machine to the other, then on the new machine, simply set up a new site definition, using that newly copied folder as the local root.
    If you want, you can export your site settings (FTP and whatnot) on the old machine...
    Go to Site > Manage Site> click the site you want > Export
    Copy the resulting .ste file along with the local root folder to the new machine
    On the new machine go to Site > Manage Sites > import to bring in the .ste
    Relink that new site to the newly copied root folder

  • Using a container to load several swf files and play them

    I need some help. I want to use several swf files and have them be called upon in a container file and play them in sequence. It's a presentation that needs to play thru but still have the ability to stop, click on items, open a popup and then continue on in the presentation. I am building all the individual "chapters" and their "sub-chapters" as swf files, with the hope that I can load them in order. I am relatively new to AS3. Help?

    If you will be loading swf files into a container then you will use the Loader class to accomplish that, so give that a looking over in the help documents and see what you can do.  If you have a problem getting it to work, post your code and describe what you have done.

  • Upload and displaying document file and image file with oracle portal

    Dear All,
    Could anyone please tell me how to displaying document file and image file that I've stored to database (8.1.7) using oracle portal. (I use intermedia data type).
    I've tried to follow the instruction given by Oracle LiveDemo, but it came with failure. (the image or document won't show up).
    Thanks for support.
    Moza

    Please repost this question in the appropriate section of the Discussion Forum.
    This forum is for general suggestions and feedback about the OTN site. For technical question about an Oracle product,
    For customers with paid support (Metalink) please go to:
    http://www.oracle.com/support/metalink

  • I only have the SWF file and HTML5 output, how can I control it?

    Picture this: A client gives me two zipped archives; one archive has a SWF file and another has HTML5, JS, and CSS. Both were published after checking "Scorm 1.2" in the reporting tab in Captivate. I'm just one developer and all I have at my disposal is html, javascript, and css.
    Is it possible for me for resume progress? Send quiz scores to my web service? Control playback?

    The 'built-in method' is called Self-paced Learning, and it usually has a message window that appears when you resume the lesson which asks the user whether or not they want to resume from the last visited slide.  However, as has been mentioned before on this forum, as soon as you activate LMS Reporting in Quiz Settings then Self-paced Learning is disabled. It's only designed for situations where an LMS is NOT involved.  LMSs typically have other mechanisms for resuming playback and having more than one mechanism active at the same time could result in conflicts.
    SCORM-compliant LMSs have the option of using Resume Data Bookmarking, but not all LMSs implement this in consistent ways.  The new SCORM drivers with Cp6 do a much better job of implementing bookmarking than previous versions, so I encourage anyone to upgrade to Cp6 if they haven't already done so.
    Since it sounds like you're trying to roll your own LMS I'm assuming that your Cp modules will have Quiz Reporting turned on, which means Self-paced Learning is NOT going to be an option.  You'll need to work with the SCORM Resume Data to achieve your goals.  But this is NOT an area for the faint-hearted or the non-programmer.  In SWF content, the scoring variables are passed from within the Captivate runtime to the Javascript SCORM API.  In HTML5 content this will all be JS code, however, it's going to be quite complex JS code and messing with it at all is likely to break something.  Personally, I wouldn't go that route.  If you're going to build your own LMS, make it the LMS that picks up the scoring and resume data from the Captivate output, rather than hacking the Cp code itself.

  • How to display swf in full screen mode and how to redirect to a url

    Hi,
    I have 2 questions :
    Question 1 - I have a flash swf file and I want to display it in the browser in full mode meaning it should fit the browser, I have tried adding
    fscommand("fullscreen", "true");
    in the first frame of a lyaer but it does not work.
    Question 2 - How to redirect to another page at the end of the swf movie, I have tried adding :
    stop(); 
    navigateToURL( new URLRequest("*www.microsoft.com*"), "_self");
    in the last frame but it does not work.
    Thank you very very much for your assitance !!
    Terry

    "fscommand("fullscreen", "true");" only works for self-running executables, not embedded SWFs in a web page.
    To get the swf to fill the browser page, the best thing to do would be to adjust the publish settings of the "HTML Wrapper" page and copy the necessary pieces from the resultant HTML file into the HTML file you are putting the swf into.
    I have had some successes dealing with similar navigation issues by breaking up the code into multiple tasks:
    var url:String = "http://www.microsoft.com";
    var urlReq:URLRequest = new URLRequest(url);
    navigateToURL(urlReq);
    I can't guarantee that will help, but at least I tried.  :-)

  • I am no longer able to double click on a file and have it open.  Any suggestions on how to resolve this problem?

    I am no longer able to double click on a file and have it open.  Any suggestions on how to resolve this problem?

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Because I can no longer open Adobe files, and have tried all obvious solutions, I've been told to defrag the Intel portion of my MacBook Pro. How do I do this?

    Because I can no longer open Adobe files, and have tried all obvious solutions, I've been told to defrag the Intel portion of my MacBook Pro. How do I do this?
    I never use the Intel side, and have never partitioned the MacBook Pro.
    Message was edited by: MacGirl221b

    I never use the Intel side,
    Not understood, Intel make the processor that runs your Mac, there is no other 'side' to your Mac.
    What Adobe application are you trying to open files with?

  • I have recently changed to an iMac from a Windows PC. How do I delete files and format the memory card in my helmet cam?

    I have recently changed to an iMac from a Windows PC. How do I delete files and reformat the memory card in my helmetcam?

    If you return the memory card to the helmetcam, it may choose to reformat it before use; back to some FAT-16 or FAT-32 format many of these third-party cards and cameras use. Unless you were going to use it for Mac OS X and format it with HFS+ or in a partition map for Mac data, etc.
    If not, the easiest way to reformat the card may have been in the camera itself. I've formatted several kinds of camera cards, drives, USB flash drive, and others. The means varies with the intended purpose. Sometimes the default is the best; since it is platform neutral if the device is seen by both players.
    Good luck & happy computing!

Maybe you are looking for

  • HT5261 My "start" message is out of range on my desktop.  cannot access.

    I downloaded the new Itunes, however the opening article from Apple is displayed out of my screens range and its blocking other icons.

  • Html_SetRadioValue: Add to html_elements.js

    The builtin html_elements.js library has functions like html_SelectValue, html_SetSelectValue, etc to read/write form items from client-side Javascript. I found myself needing a html_SetRadioValue and didn't find one in there so I wrote my own. funct

  • FM RV_PRICE_PRINT_HEAD

    Hello Gurus, I want to access the head conditions of an offer exactly as they are shown in VA22->Header->Conditions. In the PBO module of this screen (6201, function group V69A), I can see, that the table XKOMV[] contains this information. I tried to

  • Windows command length execeeded when add java options in opmn.xml

    Hi All, I have a Oracle AS 9i installed on Windows 2000. There are some requirement from my application that need to add additional java-options when start up OC4J. So, I updated the opmn.xml by add my things to <data id="java-options" > for start-pa

  • Where is my Usb located?

    i plugged in my USB and it did not pop up on my Desktop. i searched high and low but i cant find it. i need to find it so i can safely unplug it