Setup application

I'm building a setup application which copies a big file to the target machine.
How must I modify the ProgressBarDemo code (from this site) in order to show the progress of copying files ?
Thanks for help.
ProgressBarDemo code
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class ProgressBarDemo extends JFrame {
public final static int ONE_SECOND = 1000;
private JProgressBar progressBar;
private Timer timer;
private JButton startButton;
private LongTask task;
private JTextArea taskOutput;
private String newline = "\n";
public ProgressBarDemo() {
super("ProgressBarDemo");
task = new LongTask();
//Create the demo's UI.
startButton = new JButton("Start");
startButton.setActionCommand("start");
startButton.addActionListener(new ButtonListener());
progressBar = new JProgressBar(0, task.getLengthOfTask());
progressBar.setValue(0);
progressBar.setStringPainted(true);
taskOutput = new JTextArea(5, 20);
taskOutput.setMargin(new Insets(5,5,5,5));
taskOutput.setEditable(false);
JPanel panel = new JPanel();
panel.add(startButton);
panel.add(progressBar);
JPanel contentPane = new JPanel();
contentPane.setLayout(new BorderLayout());
contentPane.add(panel, BorderLayout.NORTH);
contentPane.add(new JScrollPane(taskOutput), BorderLayout.CENTER);
contentPane.setBorder(BorderFactory.createEmptyBorder(20, 20, 20, 20));
setContentPane(contentPane);
//Create a timer.
timer = new Timer(ONE_SECOND, new ActionListener() {
public void actionPerformed(ActionEvent evt) {
progressBar.setValue(task.getCurrent());
taskOutput.append(task.getMessage() + newline);
taskOutput.setCaretPosition(
taskOutput.getDocument().getLength());
if (task.done()) {
Toolkit.getDefaultToolkit().beep();
timer.stop();
startButton.setEnabled(true);
progressBar.setValue(progressBar.getMinimum());
* The actionPerformed method in this class
* is called when the user presses the start button.
class ButtonListener implements ActionListener {
public void actionPerformed(ActionEvent evt) {
startButton.setEnabled(false);
task.go();
timer.start();
public static void main(String[] args) {
JFrame frame = new ProgressBarDemo();
frame.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
frame.pack();
frame.setVisible(true);
}

How would WE know?

Similar Messages

  • Email Setup Application Does Not Work After Update

    I seem to be having the same problem as others with the email setup application.
    When I updated my Blackberry to the new OS6, I went to my email setup and it said "looking for updates"
    It finds a new update from my already installed email setup app 6.0.0 to the new 6.11.0419.0755.
    When I click "download" it says replace existing version? I click "yes"
    The it says: "com.rim.bis.client" contains a different version of module "net_rim_bis_client" which is also used by email setup application. If you proceed, "email setup application" may cease to function properly. proceed?
    If I click "yes proceed" it crashes my blackberry and it will not reboot and I have to do a complete hard reboot, wipe the device and reload everything from my backup on blackberry desktop.
    If I click "no" not to proceed, I cannot open the email setup application.
    I have tried downgrading to version 5 of the OS, I have rebooted with a battery pull, crashed my blackberry twice and spent hours reloading all my applications and systems.  I am at the end of my rope, and I don't know what else to do?!  
    If there was a way to turn off the automatic search for updates on my device under the setup and email settings, i think I would be able to set it up in the older version 6.0.0
    HELP.

    yep same problem here
    i had this problem and got a replacement handset.
    i have had to do an update and got the same issue yet again.
    The funny thing is, is when i got my new handset i had to run the email setup application and it worked fine.
    now its failed and i have to boot in safe mode and wipe etc.
    Will someone sort this out???!! O2, Blackberry whoever. Shambles!

  • Email Setup application is not working on my device Blackberry Curve 9320

    Dear Sir/Madam: I am unable to set up email using Email Setup application on my device. However I can setup my email accounts through the mobile service provider's web portal. Every time I try to setup emails from my device using "Emails Setup" option, I get the message "Your device encountered a problem with this application's server". Looking forward to your kind response Thanks Nini

    Hi and Welcome to the Community!
    Here is a KB that discusses that error:
    Article ID: KB32866 Error "Your device had a problem connecting to the server" is displayed when attempting to integrate an email account in the Email Setup application
    Hopefully it contains something useful! There also are multiple existing threads on this site that discuss that exact error...your review of those might prove useful, and a search of this site, using the error message, error code, or symptom, should reveal all applicable existing threads to you.
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Email setup Application is gone

    I updated my BB Curve and now my email setup application is gone.  i have selected "show all."  so, right now i can't update or verify any of my email accounts.  anyone have a solution?  thanks
    Solved!
    Go to Solution.

    1. Options > Advanced > Host Routing Table > Menu > Register.
    2. With the BlackBerry device powered ON, remove the battery a few seconds and then reinsert the battery to reboot
    if still nothing...
    3. resend your service books from your carrier BIS site.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How To Create Setup Application in java?

    I want to create a setup application which will guide the client while installing my software on his location.
    This setup application will installed all the files requires for my application

    Great!!!
    So whats the problem?

  • Reloading BlackBerry Email Setup Application

    Hi,
    I accidentally deleted the Blackberry Email Setup application in my BB Torch 9800. Accordingly, I cannot  setup any email accounts on my BB.
    Does anybody know how I can reinstall this application so that I can setup my email accounts on my BB?
    Thank you,
    adji99
    Solved!
    Go to Solution.

    I don't want to step on Boomer56's toes, but you've been without a response for six hours so I'll take a shot at it.
    If you plug your phone into your PC and open Desktop Manager, you can reload your current OS from there.  First, open Desktop Manager and do a data backup of your phone.  Once that's complete, click Device at the top of DM and Update from the drop-down menu.  You might be told that your phone is up to date.  At the bottom of that box, it'll show Show Other Versions.  Click that and make sure your current version is the one that's checked.  Keep it checked and click Update.  This will re-install your current OS, along with all the bells and whistles it came with. 
    - If my response has helped you, please click "Options" beside my post and mark it as solved. Clicking the "thumbs up" icon near the bottom of my response would also be appreciated.

  • Planning Setup Application

    Hi, i?ve just install Planning and i?m trying to do the Setup Application. But in the moment i press the "Finish" button, this message is shown:- IHspAppAssistanceACM_SaveAppAssistant() Error Unable to create application Error Number: -2147160060And in the event viewer the message is:- DCOM got error "Overlapped I/O operation is in progress. " and was unable to logon PC3\UsrDcom in order to run the server:{C96424A2-D46F-11D2-B067-E805B6000000} Does someone knows what could be the reson?Thanks for any help.

    Yeah, we got this one. Can't remember exactly what it was but some things to check are:-the user has local admin rights-the UDL is correct-is essbase runningHope this helps.

  • Audio Midi Setup/Applications/Utilities Settings?

    What should the settings be?  8000 - 96000hz?   2ch-16/20/24/32bit?  Volume %?  My G5 PPC doesn't work with the earphones although it works without them, could this be the problem?

    Open Audio MIDI Setup (/Applications/Utilities/), then check the Audio Output setting.
    Change the Audio Output setting to 44100.0 Hz.
    Quit Audio MIDI Setup.
    More info here:
    http://support.apple.com/kb/TS1574?viewlocale=en_US

  • Email setup application v. 6.11.0419 freezes 9330

    I went to update the email setup application on my new 9330 and throughout the update, it prompted me several times with the message: ? is also used by "Email Setup Application." If you proceed "Email setup application" may cease to function properly. Proceed? I don't know what the ? preceding  the beginning of the statement means. After I clicked on this several times throughout the update it finally updated and prompted for a restart. I restarted and the phone filled up the status bar and froze. Even after I removed and replaced the battery several times. I got the phone to unfreeze finally but I won't update the email installer again until this problem is worked out. Anyone know what the deal is?

    this worked for me
    NOTE: The following workaround is intended for BlackBerry smartphones running BlackBerry 6 OS only. To determine the operating system version, select Options > Device > About Device Versions on the BlackBerry. Performing the following workaround on OS versions other than BlackBerry 6 may cause the Email Accounts/Set-up application to become unusable. If this happens, a reload of the BlackBerry device software may be required. Please see KB03621 for steps for reload the BlackBerry device software.
    On BlackBerry smartphones running BlackBerry 6 only with a BlackBerry Internet Browsing enabled data plan:
    Download and install a new BlackBerry Internet Service Email Accounts/Set-up Application by navigating to the following URL using the web browser on the BlackBerry device: http://<brand>.blackberry.com/rest/EmailClient/
    Note: <brand> corresponds to the carrier BIS brand name. e.g. (Verizon = vzw, ATT = mycingular, Rogers = rogers) The BlackBerry smartphone user may need to contact their mobile carrier technical support to obtain the value to substitute for <brand> in the URL as it is different for each carrier.
    Taken from
    http://btsc.webapps.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB26055

  • Email Setup Application for my Curve 8330

    I recently updated the desk top to the current verison. Under applications it shows email setup application required, but it will not let me set it up. Does anyone have any ideas on what I need to do?
    Thanks

    So what happens when you click on that icon?
    Do you have a BlackBerry Data Plan enabled on your account with your carrier or mobile provider?
    You must, in order to get the RIM push email functions you are looking for, as well as addtional BlackBerry data services such as the internet browser, Facebook for BlackBerry, BlackBerry Messenger, and much more.
    So, call your carrier and inquire about having the BlackBerry Data Plan added to your account.
    Good luck.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Email Setup Application 6.11.0324.1701

    Hi,
    I'm here to report a huge bug. With the Email setup application update 6.11.0324.1701.
    I've tried to install it and my BB won't boot. At first I got a 606 error then I had the progress bar stuck full.
    I had to reinstall the OS and restore. If I refuse the update from the software I won't get access to the setup page.
    This update is here http://vodafr.blackberry.com/rest/updates/tc/6.0/6.11.0324.1701/net_rim_bis_client_fr.jad I've tried with 6.0.0.526 6.0.0.534 and 6.0.0.246 and the same issue with everyone. I've tried to load this one http://vodafr.blackberry.com/rest/updates/tc/6.0/6.11.0324.1701/net_rim_bis_client_en.jad then the BB boot but when I try to go to the BIS setup nothing happens. So I guess this is a language problem or a corrupt update. Non english users DO NOT UPDATE!!
    If anyone who has a solution or can contact RIM about this..

    Same for me:
    http://supportforums.blackberry.com/t5/BlackBerry-Device-Software/RIM-killed-my-9700-with-Update-for...
    Unfortunatelly no help from RIM :-(
    cu & good luck!
    Philipp

  • Email Setup Application Update

    Having serious issues trying to get email to work. Email shows up in the end, but I can't compose.
    When I try to open Messages icon and update the Email Setup Application the below happens
    When I try to set up my email account, it prompts me to do an update (Email Setup Application Version 6.11.0419.0755).
    I click ‘Yes’ and begin download.
    It then asks me ‘Application “Email Setup Application” already exists. Replace version 6.0.0 with version 6.11.0419.0755?” - so I click ‘ Replace’.
    It then begins the download.
    However it stops, and then an error comes up reading ‘ “com.rim.bis.client” contains a different version of module “net_rim_bis_client,” which is also used by “Email Setup Application.” If you proceed, “Email Setup Application” may cease to function properly. Proceed?” - so I click Yes
    It continues to download, and then prompts me with the above error “com.rim.bis.client” contains a different version...” again 3 times.
    It then prompts be me reboot. So I do.
    It then reboots, but takes about 7-10 mintues to do so (it sits on the startup screen with the progress bar sitting at ‘complete’).
    When it finally reboots an error comes up that reads ‘Uncaught exception: java.lang.NullPointerException’ - so I click OK
    Then another error comes up reading ‘Uncaught exception: ApplicationRegistry.waitFor(Oxbfca09409ffe99e5) timeout. So I click OK.
    Then the first error ‘Uncaught exception: java.lang.NullPointerException’ comes up 2 times - click ok both times.
    Then error reading ‘Uncaught exception: java.lang.Error comes up. Click OK.
    Then the first error ‘Uncaught exception: java.lang.NullPointerException’ comes up 2 times - click ok both times.
    Then error reading ‘Uncaught exception: java.lang.Error comes up again. Click OK.
    Then the first error ‘Uncaught exception: java.lang.NullPointerException’ comes up 8 times - click ok 8 times.
    THen I get a white screen with all my applications and programs in a list, and a black bar at the top that says ‘BlackBerry Platform 6.6.0.200. If I click on them it just brings up an error. Example: If I click on Address Book the error reads “Error starting net_rim_bb_addressbook_app: Module ‘net_rim_bis_lib’ not found. Hit OK and it goes back to white screen.
    The only way to get phone working again is to reinstall operating system.
    When I do so and phone is rebooting, grey screen comes up with small message ‘error 507 reload software’
    Hope someone can help.
    PS Why is BlackBerry so crappy with it's support? Is there anyway I can contact BlackBerry to get help with this issue??? Like talk to a PERSON? Please help.

    Have you found a solution yet?

  • Email setup application/BBmaps

    I recently upgraded my wireless plan to allow access to BIS and email. In the past I deleted the email setup application and BBmaps to free up device memory. Now that I have the data package, I want to use my device to compose email, but withuot the setup application I can only compose and save to draft. I wiped my handheld with Jl_cmder and re-installed my OS, I still have no email setup application or BBmaps. I also attempted to install v4.2 OS so that I can do an OTA install of BBMaps and the email, but when I connect to DM, it says no device software available. What can I do next?

    download the latest OS for your device, and install it to windows
    use desktop manager to sinatll the OS to your device
    when the software selection screen comes up, scroll down and put a check mark in email setup and bbmaps
    if you dont have DTM installed and dont want to you can use this instead to load the OS to your device
    http://na.blackberry.com/eng/update/

  • SETUP APPLICATION RESTRICTIONS

    Please, how can I setup application restrictions on my iPhone 4? Thank you

    Go to settings > General > restrictions > and do whatever you want from there.

  • Forced quit not working as setup application cancels shut down

    I upgraded to OS X and setup froze when I was setting up cloud storage.  When I try to force quit, the setup application automatically cancels shut down.  Tried Command q to try to quit setup, but no success. Waiting for battery to die, but is there another way? Help!

    Finally was able to bring up the task minder and force quit.  Command-option-escape or some variation of escape-control-command-option.

Maybe you are looking for

  • HP Deskjet 3545 shows "Incompatible cartridge " on the FIRST itself

     I got a Printer - Hp Deskjet 3545 here in Chennai to be used in my home, nearby Erode. I chose hp since, they have got good reputation and they promised onsite issue identification and solution. But on the first day, after carrying it home, installi

  • Error : Restore oracle database from TSM

    Hi , we have the RAMN backups of database in TSM. presently that database is droped in USNODE1. now we are trying to restore database from USSERVR23. i am getting below error,i think its TSM error. related to hostname changes.(ANS1302E (RC2) ) http:/

  • When is the ios B2B app store coming to Europe?

    When will the B2B "app store" and Volume Purchase Program be available in Europe for ios apps?

  • Editor 12 Application Crash

    Help! Editor is now crashing on startup. I have deleted the preferences file as suggested elsewhere, but no change. Problem signature:   Problem Event Name: APPCRASH   Application Name: PhotoshopElementsEditor.exe   Application Version: 12.0.0.0   Ap

  • My desktop has been wiped

    When I restarted my MacBook Air, the desktop files were wiped and the wallpaper changed to default. How can I get my files back?