Simulate a progress Bar similar to the one we get with 'wget' in linux

Hello everybody,
I want to write a class that simulate a progress bar in the console in linux. I've thougth of combining System.out.println's and calling to the command 'clear' for each printing, but if the refresh is too constant the result is an excessive flickering. Any ideas?
Regards,
Bruno

Thanks for replying Kayaman-
I imagined so and I was thinking to implement it using JNI. I'm studying if it's worth the effort :P
Bruno
P.D. The bar is something like this: [====>      ] 33% done
:)

Similar Messages

  • How Do I Create a Scrolling News Bar, Similar to the One Seen in News Broadcasts?

    Projects, links, tutorials, ect. much appreciated :)

    Hi, in Titles Browser > Search for Ticker
    This will give you horitontal scrolling text

  • Progress bar is animated in one direction in Indeterminate mode

    Hello All:
    How to make Progress bar being animated in one direction in Indeterminate mode, like what determinate mode does? For example, a horizontal progress bar is always animated from left to right.
    And how to control animation speed in this mode?
    Thank you very much.
    Johnson

    How to make Progress bar being animated in one direction in
    Indeterminate mode, like what determinate mode does?Well the point of using indeterminate mode is that you don't know how long it will take. So what happens if the task takes longer than you think and the bar reaches the end? The user will think its frozen.
    And how to control animation speed in this mode?
    UIManager.put("ProgressBar.cycleTime", new Integer(3000)); // 3000 is the default

  • How can I add a smooth scrolling progress bar? Or make one?

    Hey,
    If you have seen the QuickLook Progress Bar, it moves ever slowly and smoothly, with the little circle showing progress. I know this is called a Scrobble Bar, but I would really like a Link/Code to implement that same one, or one like Windows Media Player 11 (the 2px high, smooth one) **ahhhp, Windows :-(** If anyone can help me.....I would appreciate it.

    Hi,
    I would have thrown a prompt to the user in the renderasJpeg
    function and removed it in last line of convertToImage function.
    Isn't this what you want?
    Hope this helps.

  • How can I add a Progress bar to show the "render to JPG" progress?

    Hi everyone, I have a button which renders my component to
    JPG.
    How can I attach a progress bar to show the progress of the
    rendering?
    <mx:Button label="render" click="renderasJPEG ()"/>
    public function renderasJPEG( ):void
    convertToImage( component001, new JPEGEncoder( 100));
    private function convertToImage( object:IUICompon ent,
    encoder:IImageEncod er):void
    var base64string: String = ImageSnapshot. encodeImageAsBas
    e64(
    ImageSnapshot. captureImage( object, 72, encoder));
    var variables:URLVariab les = new URLVariables( );
    variables.encoded = base64string;
    variables.type = "jpeg";
    var request:URLRequest = new URLRequest(" script_saveasima
    ge.php");
    request.method = "POST";
    request.data = variables;
    navigateToURL( request, "_blank");
    Thanks in advance.

    Hi,
    I would have thrown a prompt to the user in the renderasJpeg
    function and removed it in last line of convertToImage function.
    Isn't this what you want?
    Hope this helps.

  • False message: The document name you requested (/selector_test.html) could not be found on this server. However, we found documents with names similar to the one you requested.

    When I specify http://www.celticmanner.com/selector_test.html to Firefox 6.01, I get the false message:
    Multiple Choices
    The document name you requested (/selector_test.html) could not be found on this server. However, we found documents with names similar to the one you requested.
    Available documents:
    /selector_test.txt (common basename)
    The file http://www.celticmanner.com/selector_test.html IS PRESENT on the host.
    The file http://www.celticmanner.com/selector_test.txt IS NOT. (It had been earlier.)
    I do not find the text "selector_test.txt" anywhere on my partition C! Where does Firefox retain a pointer to this file that no longer exists? And why?
    NB: The text "could not be found on this server" is sloppy. That message is not issued from a servcer, but from the instance of Firefox on my computer. The message should read "could not be found on the specified server".
    B. Somers

    I have the same problem and it does not have to do with firefox. Do you have any idea how to fix it through?

  • I lost my search bar, File bar, Bookmarks, and the one where you drag stuff onto, also my Norton bar because i closed them then it would not let me turn them back on!!! Help!!!!

    I lost my search bar, File bar, Bookmarks, and the one where you drag stuff onto, also my Norton bar because i closed them then it would not let me turn them back on!!! Help!!!!

    '''<u>Menu Bar</u>''' (File, Edit, View, History, Bookmarks, Tools, Help) , see: <br/>
    http://support.mozilla.com/en-US/kb/Menu+bar+is+missing
    * Press F10, Menu bar will appear, click View, click Toolbars, click Menu bar
    * Press ALT, the Menu bar will appear, click View, click Toolbars, click Menu bar<br />
    * Hold down the ALT button while pressing V+T+M
    '''<u>Navigation Toolbar</u>''' (Back/forward, Refresh...Home, URL/Location Bar, Search Bar): Do one of the following
    #click View > Toolbars, click on "Navigation Toolbar" to place a check mark, OR#right-click the Menu Bar, click "Navigation Toolbar" to place a check mark. See: <br />
    #*https://support.mozilla.com/en-US/kb/Back+and+forward+or+other+toolbar+items+are+missing
    #*http://support.mozilla.com/en-US/kb/How+to+customize+the+toolbar
    #*http://kb.mozillazine.org/Toolbar_customization
    #*http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    #*http://support.mozilla.com/en-US/kb/Navigation+Toolbar+items
    '''<u>Bookmarks Toolbar</u>''': Same procedure as Navigation Bar except click "Bookmarks Toolbar".<br />
    '''<u>Status Bar</u>''': click View, click Status Bar to place a check mark<br />
    '''<u>Full Screen Mode</u>''': If you have no Toolbars or Tab Bar: Press F11 (F11 is an on/off toggle). See: http://kb.mozillazine.org/Netbooks#Full_screen<br />
    Also see: http://kb.mozillazine.org/Toolbar_customization_-_Firefox#Restoring_missing_menu_or_other_toolbars
    <br />
    You need to update your plugins. It is important to keep them updated due to continuing security fixes and improvements in those plug-ins:
    * Shockwave Flash 10.1 r82
    * Next Generation Java Plug-in 1.6.0_20 for Mozilla browsers
    #'''Check your plugin versions''': http://www.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #'''Update Shockwave Flash'''
    #*Use Firefox to Download and SAVE to your hard drive from one of the links below; '''<u>the links take you directly to the download and you avoid the "getplus" download manager and "extras" (i.e., toolbars, virus scan links, etc.) on the main Adobe page.</u>'''
    #*SAVE to your Desktop so you can find it
    #*After download completes, close Firefox
    #*Click on the file you just downloaded and install
    #**Note: Vista and Win7 users may need to right-click the installer downloaded and choose "Run as Administrator"
    #**Note: Most browsers other than IE will also get updated with this one download
    #**Note: To update IE, same procedure '''<u>but use IE</u>''' to go: http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_ax.exe
    #*After installation, restart Firefox and check your version again.
    #*'''<u>Download links and other information</u>''':
    #** https://support.mozilla.com/en-US/kb/Managing+the+Flash+plugin#Updating_Flash
    #** '''<u>or</u>''' you can download, save, then run the manual installers for IE, then for Firefox (and all other browsers) from here: http://kb2.adobe.com/cps/191/tn_19166.html#main_ManualInstaller
    #* Also see: http://support.mozilla.com/en-US/kb/Installing+the+Flash+plugin
    #* Also see (if needed): http://kb2.adobe.com/cps/191/tn_19166.html#main_Uninstall
    #'''Update Java:'''
    #* Download and update instructions: https://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox
    #* Removing old versions: http://www.java.com/en/download/faq/remove_olderversions.xml
    #* After the installation, start Firefox and check your version again.

  • Can I move photos around in iPad?  There are some photos in camera roll, are those the ones I took with iPad?  Then there are some that are imported-I guess those are the ones from my camera.  Can I combine them into different albums?  Thanks

    Can I mover photos around in iPad?  There are photos on the camera roll-are those the ones I took with iPad?  Then there are the ones labeled as imported-I guess those are the ones I took with my camera?  Can I combine pictures from both into one album?  Thanks.

    At the moment no, you cannot move photos between albums in the Photos app directly on the iPad - but with iOS 5 (which will be free to download) in the Autumn, from http://www.apple.com/ios/ios5/features.html#photos :
    Even organize your photos in albums — right on your device.

  • I'm currently signed onto my home network and want to go on with another computer but don't remember my password for my network.  Does anyone know where to find this?  It's a password that I set myself, not the one that came with my router.

    I'm currently signed onto my home network and want to go on with another computer but don't remember my password for my network.  Does anyone know where to find this?  It's a password that I set myself, not the one that came with my router.

    It's in your Keychain on the computer you usually use to connect to your network - the "kind" will be "AirPort Network Password".
    Your Keychain can be opened by using the Keychain Access program. It is in your Utilities Folder.
    Open Keychain Access, and type airport in the search field. You will see a number of entries. Choose the one with the name of your wireless network, open it, and check the box next to "show password". Before it reveals itself you will be asked for your login password - the one you use to log in to your MacBook.
    The network password will appear in the box.
    Quit Keychain Access.

  • How to format and install a fresh copy of Mac OS 10.6.4, with another MacBook CD, because i lost the one that came with mine, thanks.

    Dear user, can i format and install a fresh copy of Mac OS 10.6.4, with another MacBook CD, because i lost the one that came with mine, thanks.

    As you need to be on 10.6 to be able access the App Store to download Lion, either get replacement discs via Applecare (you'll need the MBP's serial number to get the right ones) or get the SL retail disc. I would recommend the Original disc replacement set (assuming they were 10.6) as they carry not onlyApple Hardware Test for your model, but the iLife apps other bundled sftware that isn't on the retail disc.
    Once you've installed, and used Software Update to get to 10.6.8, you can then get Lion if you're feeling masochistic.

  • Hey how are you guys listen i have an iphone 4s the one i use with the H20 CARRIEr and i trying to enable the option call forwarding and when i type tho number i go back and i notice to the call forwarding it turning off as soon i back to the main menu ?

    hey how are you guys listen i have an iphone 4s the one i use with the H20 CARRIEr and i trying to enable the option call forwarding and when i type tho number i go back and i notice to the call forwarding it turning off as soon i back to the main menu ?

    There are a lot of posts in the forums today with people having problems with iMessage.   There was also a published outage yesterday, so it's possible there are still some issues that may be impacting you both.
    I would just wait it out - I'm sure it will be sorted out soon.

  • HT4436 Just did a restore for a new 4S. I want to do a new iCloud account and discard the one that came with the restore. Any suggestions?

    Just did a restore for a new 4S. I want to do a new iCloud account and discard the one that came with the restore. Any suggestions?

    Welcome to the Apple community.
    Settings > iCloud, scroll down and delete the account, sign back in by choosing the option to create a new Apple ID.

  • How do I get my burned songs on my iPod to a different computer than the one I synced with when I loaded them?

    How do I get my burned songs on my iPod to a computer other than the one I synced with when I loaded them? I purchased a new computer and want to transfer my library to it. The only sync option I get is to erase the ipod and sync it.

    By using a third-party program like one of those discussed here:
    Copy music from Ipod to new computer...: Apple Support Communities

  • Hello, is there any way of having a reboot disk for lion that I'm downloading, like the one I have with snow leopard ?

    Hello, is there any way of having a reboot disk for lion that I'm downloading, like the one I have with snow leopard ?

    Once the Lion download is complete quit the installer and follow these directions. The file you need to make a boot disk disappears after you install Lion.
    Egg Freckles | Burning A Lion Boot Disc
    However, the Lion installation includes a recovery partition. It won't be of help if your entire HD dies but is very handy otherwise. This Knowledge Base article has a lot of good information about Lion's recovery partition.
    OS X Lion: About Lion Recovery

  • What's the one thing you hate about Gnu/Linux?

    Hello everyone, this is my first post.
    What's the one thing you hate about Gnu/Linux or any other FOSS OS?
    I would say Xorg. Mainly because it asynchronous and that cause windows tears.
    Try resizing a window. See how it kind of jumps. It bugs me
    I only wish something would replace Xorg soon.

    brebs wrote:
    the one thing you hate
    Backwards-compatibility is cheerfully broken, about a hundred times too often.
    ,..not to mention regression.
    Linux is free, because people wouldn't want to pay a company in return for such treatment.
    Agreed.
    People (and especially companies) actually prefer to pay for operating systems; it transfers responsibility and reprehensibility onto an external entity when something goes wrong.

Maybe you are looking for