How to read images from local hard disk and display in tile layout

Dear Folks,
I have 100 images in a folder @ local hard disk (E drive).
I would like to display them in Tile view of 3X3.
I have options (Radio buttons) to chnage the layout at runtime to 4X4 , 5#5 and 6X6.
Also when the change in layout happens, I wanted to make use of backgroudLoading of image view so that user do not want to wait till the entire tile loads.
How do I achive this requiremet?
Sample code if any of great help. Thanks in advance.
Edited by: JavaFX_Duo on Jul 9, 2009 12:02 PM

1. So I would like to know which is the {color:#3366ff}best way to load local images in ImageView{color}.I'm no expert, but is there a reason that you are using Swing to do the loading?
2. secondly, currently the system displays all images only after the completion of creating all images. {color:#3366ff}How to display images as and when they are created.{color} So that the user has a feeling that the images are loading.JavaFX Image class let you display a lightweight placeholder, and you can bind the progress to some kind of visual indicator. I don't think you can display an image that is partially loaded.
def PATHS: String[] = [
    "C://Ariel Atom//ariel-atom-1.jpg",
    "C://Ariel Atom//ariel-atom-2.jpg",
    "C://Ariel Atom//ariel-atom-3.jpg",
    "C://Ariel Atom//ariel-atom-5.jpg"
function getImage(path: String): Image {
    Image {
        url: "file:///{path}"
        backgroundLoading: true
Stage {
    title: "Image Tiles"
    width: 1024
    height: 800
    scene: Scene {
        content: [
            Tile {
                columns: 2
                tileWidth: 400
                tileHeight: 400
                content: for (i in [0..3]) {
                    ImageView {
                        image: getImage(PATHS)

Similar Messages

  • Reading files from local hard disk - Access Local Files Only

    Hi All,
    I have a local flash file published as 'Access Local Files Only', to allow me to read from local filesystem.
    What methods or classes can I use to read text and other files from the user's harddisk.
    This is the first time I am trying to do something like this, all help is grealy appreciated.
    Thanks
    Andy

    Hi, thanks for the responses
    I did some searching and found that the urlloader class is the right one for the job.
    'Access Local Files Only' option is provided for this very purpose I believe.
    If anyone has done something like this and have some sample code it would be awesome
    Cheers
    Andy

  • I disabled my Macbook  Hard Disk and lock the settings, after i try to reboot, the system wouldn't come up. It refuses to read instructions from the hard disk. How can i enable the hard disk when the system wouldn't come up?

    I disabled my Macbook  Hard Disk and lock the settings, after i try to reboot, the system wouldn't come up. It refuses to read instructions from the hard disk. How can i enable the hard disk when the system wouldn't come up?

    How do you disabled it if running the same?

  • How I can backup from another Hard disk through my Macbook air?

    How I can backup datas from another external storage disk by using My Macbook Air?

    How I can backup from another hard disk through my Macbook air in Time Capsule?

  • How to capture an image from my usb camera and display on my front panel

    How to capture an image from my usb camera and display on my front panel

    Install NI Vision Acquisition Software and NI IMAQ for USB and open an example.
    Christian

  • I lost my images from my hard drive and now I can not access them in Lightroom. What can I do?

    I lost my images from my hard drive and now I can not access them in Lightroom. What can I do?

    Your images are truly no longer present on the hard drive(s)? Have you had your operating system do a search for them?
    If such a search fails to find them, here's what I would do, in order
    Look in the trash can/recycle bin
    Restore from backups
    If you don't have backups ... well, why not? ... find a program on the internet called an "undelete utility" (free versons are available) and then download and install it and run it. If you are going to do this, then do not perform any other tasks on your computer except find the program, download it (if possible to a different drive than the photos were stored on), install it (if possible to a different drive than the photos were stored on), and run it. In the future, you will need to commit to making regular backups of your photos and of your Lightroom catalog file, no excuses.
    If that doesn't work, but the thumbnails still appear in Lightroom, you can probably recover the thumbnails from Lightroom via a plug-in, but these would be low-resolution versions of your photos, if you really need instructions on this step, write back

  • How to join  fields from different internal tables and display into one int

    hai i have one doubt...
    how to join  fields from different internal tables and display into one internal table..
    if anybody know the ans for this qus tell me......

    hii
    you can read data as per condition and then can join in one internal table using READ and APPEND statement..refer to following code.
    SELECT bwkey                         " Valuation Area
             bukrs                         " Company Code
        FROM t001k
        INTO TABLE i_t001k
       WHERE bukrs IN s_bukrs.
      IF sy-subrc EQ 0.
        SELECT bwkey                       " Valuation Area
               werks                       " Plant
          FROM t001w
          INTO TABLE i_t001w
           FOR ALL ENTRIES IN i_t001k
         WHERE bwkey = i_t001k-bwkey
           AND werks IN s_werks.
        IF sy-subrc EQ 0.
          LOOP AT i_output INTO wa_output.
            READ TABLE i_t001w INTO wa_t001w WITH KEY werks = wa_output-werks.
            READ TABLE i_t001k INTO wa_t001k WITH KEY bwkey = wa_t001w-bwkey.
            wa_output-bukrs = wa_t001k-bukrs.
            MODIFY i_output FROM wa_output.
            CLEAR wa_output.
          ENDLOOP.                         " LOOP AT i_output
        ENDIF.                             " IF sy-subrc EQ 0
    regards
    twinkal

  • Should I boot from external hard disk and how do I achieve this?

    I'm in a downward spiral and need advice about if booting off of an external hard disc is the right thing to do and how to go about it. How I got into this mess I'll write below. My immediate problem is that I want to be able to install a copy of osx 10.5 from the original disks that came with my computer onto a usb hard drive. Then I want to boot from that drive and install software such as disk warrior on the same external hard drive in order to repair and recover the files on my internal hard disk. Not sure if this is easy to do with the install disk that came boxed with my macbook. So is what I want to do feasible and how do I do it? Thanks.
    How did I get into this mess?
    For those with time to read more. A downward spiral (and my macbook was working fine)::
    I have been backing up my work documents onto a 20 GB pendrive waiting to get the money to buy an nas to work with time machine for the two macbooks we have at home as a place to backup photos and video. I bought a network drive but it wouldn't work with my macbook; my time machine backup freezing at 3 gb, but works fine with wife's macbook pro.
    I tried to do TM backup on a usb hard disk and got the same problem. Support forums indicated that hard disk problems could confuse TM, so although I was experiencing problem free computing I ran disk utility from internal  osx. This indicated an <invalid node structure - file system verify or repair failed> at the checking catalog file stage. So I followed instructions to run disk utility and repair from the installation disk. When I ran disk utility from installation disk I get exactly the same <invalid node structure - file system verify or repair failed>. It gets worse.
    After failing with install disk utility, I could not then boot from my hard disk (I had had trouble free computing up to my attempts to use TM) or eject the disk. At first attempt I had no option but to boot from dvd again as hd not offered as an option. Second attempt hd option available but fails. By reading advice given to others I managed to eject the dvd and have tried:
    safe boot - it won't
    boot in verbose mode and single user (indicates I have disk0s2:I/O error) and won't boot
    try to use disk utility from install disk to create disk image on external hd, it won't (cites i/o error)
    If I can boot from an external I will try to repair with Disk Warrior as forums indicate that this software has been able to solve <invalid node structure> issues (but am open to recommendations of other products). I also hope that I may be able to try again to burn a disk image sucessfully if this repair works. I'm still trying to save my photos and videos that aren't backed up.
    I  plan to try an archive and install installation but first I want to  try a repair with disk warrior as I fear that archive and install won't work and I'll end up having to erase and repair my hard disk.
    I feel like some perverse god is punishing me for trying to do the right thing and back up my hard disk.
    Macbook 5.1 late 2008
    Intel Core 2 Duo
    OSX Leopard 10.5.8
    85 GB of a 150GB hard disk needs backing up (saving)

    I am not sure about this, but my memory is that if you try to partition the drive (in OS 10.5.8) it will erase the data.
    But you can try. Go through the Add a partition steps, but watch for any warnings. If my memory is correct there will be a message to the effect that everything will be erased. If you see that, do not proceed. This page has info about how to do it, if it can be done: http://www.macworld.com/article/1164643/live_partition.html
    With respect to DW on an external, I do that. I have a 80 GB external - I call it Emergency - with an OS, DW and TechTool Pro on it. (Since I have is a recovery partition built in with all new OS, Emergency would be of use only if I need to run DW or TTP.)  I have never yet had to use it, but it's there. It is not usually connected - I just did that for this screen shot.

  • Open dialog defaults to local hard disk and eventually crashes

    Hello everyone. I am working with a client who is running PowerMac G5, Tiger 10.4.8. Here is the issue:
    Every time he opens a file in any app (Adobe CS2, Macromedia suite, MS Office, etc) he has to navigate to the file server. In other words, none of the applications remember the last open path, it will default back to Computer > Volumes > SERVERNAME. The same thing doesn't happen if he drills down into a folder on his local hard disk. For example, if he were to open a Word document from /Users/MarkS/Documents/Folder1, close Word, and go to Open (File > Open, Command+O, etc) it goes back to /Users/MarkS/Documents/Folder1.
    The other issue is if he tries to navigate back using the recently accessed folders (the dropdown menu in the Open Dialog sheet) then the application crashes (again, this is with any app).
    He is connecting to the fileserver via AFP (Windows Server 2003 with ExtremeZ-IP 5), gigabit (on a dedicated switch to his department), and according to him, this issue began some time ago.
    The only thing I've tried was to remove his Finder preference file, logged out, logged in, and after recreateding the Finder preference file he had the same results. Just to be sure it wasn't just his account on this PowerMac, I logged in with a different domain account and the same issues came up (i.e. with another user account on that same G5). So it makes me wonder if its a system wide issue.
    Any thoughts?
    MacBook Pro 1.83, 1 GB RAM, 80 GB Hard disk, Super Drive (nothing special!)   Mac OS X (10.4.9)  

    Turned out to be a simple fix. There were old names in the /Volumes directory, which simply had to be unmounted. If they were not unmounted, the GUI would recognize the Apple share, but the underlying system would create a new directory with a "-1" appended to the end, thus confusing the OS and causing the applications to crash.

  • I need to read data from a text file and display it in a datagrid.how can this be done..please help

    hey ppl
    i have a datagrid in my form.i need to read input(fields..sort of a database) from a text file and display its contents in the datagrid.
    how can this  be done.. and also after every few seconds reading event should be re executed.. and that the contents of the datagrid will keep changing as per the changes in the file...
    please help as this is urgent and important.. if possible please provide me with an example code as i am completely new to flex... 
    thanks.....  

    It's not possible to read from a file without using classes from the core API*. You'll have to get clarification from your instructor as to which classes are and are not allowed.
    [http://java.sun.com/docs/books/tutorial/essential/io/]
    *Unless you write a bunch of JNI code to replicate what the java.io classes are doing.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Can load image from file using LabVIEW and display on IMAQ graph?

    I dont have IMAQ Vision for LabVIEW on my computer. Is it possible to load image file and display on an IMAQ graph?
    Thanks!

    Hey werwr,
    In response to: "I dont have IMAQ Vision for LabVIEW on my computer. Is it possible to load image file and display on an IMAQ graph?"
    As of right now, in order to read an image from file, you actually do need the IMAQ Vision software. The IMAQ driver without the Vision VI's will allow you to collect images from a framegrabber, and it will allow you to save those images to file. But the function that allows you to read an image from file does require the Vision VI's. Once you have the VI to read images from a file, you will be able to display the image on an IMAQ "Graph" or otherwise known as an Image Display.
    I hope this helps. Please let me know if you have any further questions.
    Thanks,
    DJ
    Applications Engineer
    National Instruments

  • How to move image from one hard drive to another - T41

    Hi All
    I have a T41 which has a 30GB hard drive, over the time I have installed quite a few programs which I don't have the cd's for to reinstall. Now that I am almost out of space I need to swap my present Hard Drive with another one. I already bought a 60GB HD for the laptop but I don't want to just swap it, what I want to do is make an image of the existing HD and past it in the new HD and then swap the HD so that I have everything from my previous HD.
    Can I do this with Ghost 2003 or maybe with anyother ghost app. Also what if I just make a backup of the registry and system state through windows backup tools then install windows XP in the new HD and then restore the restore the system state and registry from the backup. In this wall I will loose the hidden partition.
    Please advice whether I can image of the current HD and then move it to the new HD.
    Thanks in advance 

    Thanks for the responses for far, I really appriciate it.
    Ok, I have two question for two response I received:
    To infocatchjp:
    1. I didn't find any connector for "ThinkPad 2nd HDD Adapter for Ultrabay Slim".
    2. Rescue and recovey is a windows tool or built in IBM tool.
    3. Would it tranfer the program as well and also the hidden partition for the laptop.
    To stbigham:
    I went to the website for the given software and checked out its feature. My only question is would the software transfer the existing and hidden partition when it is moved to the new HD.
    thank you both for your support. Hope to hear from you soon.
    Haydes 

  • How to read image from mssql db?

    how to read an image stored in mssql database .and how to display that image in html page through servlet.
    thanks in advance,
    Rassam

    Here are the steps you can do
    1) Write JDBC code to read the image from database. You will have to use
    ResultSet.getBlob("columnname") method.
    2) Write this blob object on to server filesystem using java.io at a defined location
    3) Give link in your HTML page for this defined location.
    (You can do all of this in your servlet.)
    I have given very high level steps. Let me know if you want detailed steps.
    Vaibhav

  • I tried to empty the trash, full of back up file from my hard disk and it just says: "The operation can't be completed because an unexpected error occurred (error code -8003)"

    I have an external hard disk of 319.73 GB that I use as back up memory and where I put all the movies and other files that I can't leave on the computer as they occupy too much memory space . One day I was deleting all the previous dated back up to have more space on it , but had to stop the trash for doing it cause it was taking too long and now every time that I try to empty the trash it just says "The operation can’t be completed because an unexpected error occurred (error code -8003)" and even if I press CONTINUE it won't empting it . I'm not really pratical with this things and I tried already to find out the solution here and on Google but apparently nobody ever had a similar error code and I don't know what else to do.
    I've a MacBook Pro with a Mac OS X 10.6.8 Version.
    Thanks again for the help and sorry if I did some english mistakes !
    PEACE & LOVE

    Hey donnie90,
    It seems like this article might be the best for helping you address this issue:
    You can't empty the Trash or move a file to the Trash
    http://support.apple.com/kb/ht1526
    Thanks for coming to the Apple Support Communities!
    Regards,
    Braden

  • How to extract information from client security certificates and display it

    Hi guys,
    just wanted to know is it possible to extract information from an digital security certificate and get that displayed on top level navigation of the portal. So for ex. I want to extract the clients name and code and area from where they come from to be displayed on top level.
    thanks
    anton

    RoopeshV wrote:
    Hi,
    The below code shows how to read from txt file and display in the perticular fields.
    Why have you used waveform?
    Regards,
    Roopesh
    There are so many things wrong with this VI, I'm not even sure where to start.
    Hard-coding paths that point to your user folder on the block diagram. What if somebody else tries to run it? They'll get an error. What if somebody tries to run this on Windows 7? They'll get an error. What if somebody tries to run this on a Mac or Linux? They'll get an error.
    Not using Read From Spreadsheet File.
    Use of local variables to populate an array.
    Cannot insert values into an empty array.
    What if there's a line missing from the text file? Now your data will not line up. Your case structure does handle this.
    Also, how does this answer the poster's question?

Maybe you are looking for

  • DVD burner is on another machine

    I have 2 machines connected thru a local network; 2 versions of OS X; 2 versions of iDVD; but only one DVD burner. I have created an iDVD using my newer Powerbook (OS X 10.4.3, iDVD 5). The DVD burner is on my iMac (OS X 10.2.8, iDVD 3). I would like

  • Universal cable remote with Mini

    I am using a Mini as a media server for my home theatre setup. I would like to get rid of the Apple remote so I only have to use one remote device. I have been able to program my Cox cable universal remote to control all devices (SONY Bravia, Sony re

  • Where can I find metadata for Power View reports created in sharepoint 2013.

    I am looking for what I would assume is the sql server tables that would hold the MDX (DAX) Queries for the power view reports.  Example my customers may create say 30 reports and I need to know quickly if an attribute I am changing is in those repor

  • IBM Blade HS23 Emulex Adapter Woes

    I inherited an IBM Blade chassis with three HS23 blades in it, each sporting an Emulex 10GbE VFA Advanced II module. I have been tasked with adding three additional blades to the chassis with the same cards. I am having terrible trouble setting these

  • Flexible File Adapter

    Hi, I have a requirement to design a File Adpater which can read csv files from different clients. Some of the clients will send files with extra fields.So the file adpater should be able to read all files irrespective of the number of columns. For e