How do I use a JProgressBar to monitor the loading of a file ?

How do I let the progress bar tell how much it has finished the reading so far ?? Thanks !!!

You can use a ProgressMonitorInputStream, which can be used much like any other input stream, e.g.:
in = new ProgressMonitorInputStream(contentPane, "Loading " + filename, new FileInputStream(filename));Look here for lots more info: http://java.sun.com/docs/books/tutorial/uiswing/components/progress.html
Hope this is helpful
Chris.

Similar Messages

  • How can i use my apple ID with the itune store over my windows laptop

    how can i use my apple ID with the itune store over my windows laptop

    If you don't have iTunes installed on your laptop then you can download and install it from here : http://www.apple.com/itunes/download/
    You can then log into your account on it via the Store > Sign In menu option (on iTunes 11 on a PC you can get the menus to show via control-B) :
    And you can then select the Store on the left-hand sidebar (you can enable the sidebar via control-S), and then browse items in the store and buy them by clickin on their price.

  • How do i use my time capsule as a network to store files, etc.?

    How do i use my time capsule as a network to store files, etc.?

    There is no difference in setup..
    Only trouble.. be warned this is quite problematic. With Mavericks even more so.
    See Q3 here.
    http://pondini.org/TM/Time_Capsule.html
    Take particular note. The TC is not a NAS or file server.. it can be pressed into use as one.. but will suffer..
    1. Slow spin up of the disk and fast spin down. Causing streaming and library issues with itunes.
    2. iphoto is easily corrupted.. don't move it to a network drive at all.
    3. no backup.. the TC cannot back itself up.. it is designed as a backup target for Time Machine. but Time Machine cannot backup network drives.. and nor did apple build in a backup.. it was never needed. After all it is a backup.. not a file store.
    4. you cannot partition it. You will have issues with TM if you do store both data and TM backups on it.
    5. You can use USB drive plugged into the TC, and experience a new definition of pain and suffering.. well slow file transfer anyway.
    Good luck.

  • HT4994 How do I use which is sim with the device

    How do I use which is handsome with the device

    If the phone is carrier locked, contact the carrier it is locked to and find out:
    a) if they offer unlocking
    and
    b) if you qualify and what the charges to do so are.

  • Hi, we have two iphones with two accounts.  The apple tv automatically syncs with one account to play music from the iphone to apple tv.  How can I use my iphone to do the same?

    Hi, we have two iphones with two accounts.  The apple tv automatically syncs with one account to play music from the iphone to apple tv.  How can I use my iphone to do the same?

    Our experience is a little different, we have different iTunes accounts for different family members, each family member has their own iTunes library on their own mac, each mac uses my Apple ID for homesharing and we are able to play purchased content from each library on the Apple TV.

  • Can any one suggest me how can I use relative path inside SSIS pacakge to access config file ?

    Can any one suggest me how can I use relative path inside SSIS pacakge to access config file ? Please help me as its urgent.THanks for your help in advance.

    Hi Jay,
    SSIS can only recognize the absolute path of a XML Configuration file, the relative path is not supported. Furthermore, if the XML Configuration file is already generated, we can use the Environment variable package configuration type instead so that
    SSIS runtime automatically looks for the configuration file from the path defined in the environment variable. This is convenient when we need to deploy a package to different environment. We only need to define the environment variable for package configurations
    once on each server, and then the variable can be used by all the packages on this server.
    Regards,
    Mike Yin
    TechNet Community Support

  • How can I use apple gift card in the Philippines . It says it's only applicable in US storefront

    How can I use my gift card in the Philippines  when it says for US Storefront only

    You cannot use that card. iTunes gift cards are only valid in the country of original purchase.

  • HT201209 How do you use a gift card for the billing info

    How do you use a gift card in the billing info

    Itunes verifies your account using credit card info.

  • How can i use offline & online database in the same time?

    how can i use offline & online database in the same time?
    my database in another server when the connection true it connect
    but if not does not work
    i wanna make offline database if the server not connected it connect offline then the server is on it alter all data from the offline to the server.

    User, please tell us your Jdev version!
    There is no such functionality build into the framework. The offline data base is only for designing the db, not to have a backup db.
    If you can't connect to the db the application will not work.
    Timo

  • TS4148 I have an apple 4 given to me by my cousin from japan but the phone is lock by japan sotfbank, how can i use this phone here in the Philippines network provider? thanks

    I have an apple 4 given to me by my cousin from japan but the phone is lock by japan sotfbank, how can i use this phone here in the Philippines network provider? thanks

    Only the carrier an iPhone was sold as carrier locked with can officially unlock the iPhone. It is my understanding that Softbank in Japan does not unlock iPhones.

  • How do you use passbook? Finally got the app to connect to App Store. Does not seem to allow me to add anything.

    How do you use passbook? Finally got the app to connect to App Store. Does not seem to allow me to add anything.

    http://support.apple.com/kb/HT5483
    Use this

  • [HELP],875P LSR ,HOW Can I USE 3 Optical Drives in the MoBO?

    I have 1 SATA HDD Drive (Seagate 160G) installed and Have 3  Optical Drives ,Pioneer DVD and Liton CDRW in IDE2 , Plextor CDRW in IDE3 ,but MOBO can't recgnize the PLextor CDRW,WHY???
    NEED HELP!!!!!HOW can I USE these 3  Optical Drives the same time?THANK's LOT!

    Thanks Everybody!
    I changed another IDE Cable and set IDE mode in BIOS : Native , SATA only ,Keep PATA, both channels
    then,
    Everything is OK!
    How silly I am ! I used a bad 80 pin IDE CABLE!

  • Hi, folks can some body help me¡  How  I can  use  de second  code  to  the  Itunes card  to  use  the  Itunes card.... My  number is vanished, how  i can submit  my  Itunes card?

    Hi, folks can some body help me¡  How  I can  use  de second  code  to  the  Itunes card  to  use  the  Itunes card.... My  number is vanished, how  i can submit  my  Itunes card?

    iTunes Store: Invalid, inactive, or illegible codes
    http://support.apple.com/kb/TS1292

  • How can I use SQL to check if the receipt is accounted?

    Dear all:
    How can I use SQL to check if the AR receipt is accounted ? Because there is so many receipts to check, I cannot open it to see the detail one by one.
    My environment is :11.5.9
    database : Oracle 9.2.0.8

    Duplicate post.
    How can I use SQL to check if the receipt is accounted?
    Re: How can I use SQL to check if the receipt is accounted?

  • Can a iview monitor the loading of another iview?

    Hello,
    We created some IAC iviews and these IAC sometimes takes upto 1 minute to load completely. While doing so, there is no indication that the page is loading. In workplace, there was a image(similar to the webdynpro loading image) but this is not available in the portal. We poked around  and concluded that the image was being loaded and unloaded by the base frame. How can we accomplish something similar in the portal? Specifically, can we use EPCF for it? Biz has ruled out modifying IAC pages to fire EPCF events. Can a iview monitor the loading of another iview?
    Thanks for viewing this question,
    Raj Balakrishnan

    To make app maintenance easier, I'd prefer to define the logic in one button and have the second button
    simply do whatever the first button is defined to do -- as if it was the one that was clicked. Generally a button either submits the page with a request (i.e. 'CREATE') or executes some Javascript. You can make multiple buttons on your page that when clicked issue the same submission request. In that case, the Processing designed to run on that request will run regardless of which is clicked. Likewise more than one button could execute the same Javascript function.
    For example, I have several apps that my userbase makes use of, and some people make use of several. To make it clear which they are logging into, the login screen of each has a graphic that indicates the app name (the same as defined in the application's logo). That graphic is actually in the screen as a graphic button and when clicked will submit as 'LOGIN', so it matters not whether someone clicks on the image or the Login button, the login logic will execute.

Maybe you are looking for

  • Stop error messages in a particular application

    I have an application open all the time which allows me to monitor our printing presses. My problem is that every time there is an error/status message on the printing machine the application takes over my machine and forces me to look at the message

  • Workflow from Canon to Raw image in PS CS4

    Hello, I apologize if I am in the wrong place with this question.  I have a Canon Rebel XSi that I am learning to use and also have CS4.  I've been working through Kelby's 7 step book with Photoshop and am ready to start working on my own photos, but

  • Amfphp - flex remote object error event handler

    I'm using amfphp and I want it to return an error that the flex remote object error event handler will pick up. At the moment I can get only the result handler to do anything in flex.

  • Is the iphone 5s in stock?

    ..

  • Problem in returns

    Dears, i got one issue now. when i wanna to handle one sales order type of Returns Order ( sample of charges) . then my screen show some message " copying from sales document type ZORA to ZRE1  isn't support " how can i do? PLZ let me know what you t