Need help in makinga message dialog box dissapear automaticly

hi i have the following code that displays a message dialog box that tells me when a user is online.
how do i make it disapear automaticly after say, 5 seconds.on msn messenger a similar technique is used where when a user comes online, a message box appears stating who and then dissapears after a couple of seconds..
i need this to work so that say if a user is away from the pc for such a given time, the message box will just pile up if loads of users have appeared online during the duration that the user was away from his pc..
here is what i have
JOptionPane.showMessageDialog(null, "error " + e.getMessage(), "Error", JOptionPane.ERROR_MESSAGE);

U cant do that using a JOptionPane, use a JDialog instead.
use dialog.setVisible(true);
after this start a timertask which executes after 5 seconds and disposes the dialog

Similar Messages

  • Need help with "get info" dialog box

    Hi Everyone!
    I need some help with trying to figure out what some of the options are in the "Get Info" dialog box. I've searched the iTunes help and these forums, but can't find anything.
    So, in the options tab,
    1. What does "Part of compilation" Y/N, do for me?
    2. Same for "Remember Position"
    3. And finally, "Gapless album"
    Thanks, Vince.

    1. when you import a compilation album (like an 80's compilation or something), itunes will import it as
    song 1, artist 1, 80's greatest hits
    song 2, artist 2, 80's greatest hits etc
    Click part of a compliation means that, it means that it would keep them altogether rather than having lots of songs everywhere
    2. If you start playing a song, then stop, part way through, when you next come to the song, itunes will remember where you left off
    3. Albums like jean michel jarre, classical, mike oldfield, etc, have many songs which merge into each other. Having gapless album ticked will ensure that, when playing the album, there are no gaps between songs

  • I need help - Open windows and dialog boxes are ghosting and flashing.

    Hi All,
    My Mac Pro has recently come down with a "bug". When i open multiple windows they don't seem to cope well with each other and parts of the window behind will still show through the window in front in fragments. When downloading, the loading bar will also flicker and partly show the dialog box behind. The only thing that fixes the broken up windows/dialog boxes is to minimize then maximize again. At first i thought it was a memory issue but the problem occurs with no applications running except for finder. I have done several restarts, updated my software and have checked my hard drive in disk utility and everything appears okay?
    I can still operate the machine but it's getting a little annoying. Can anyone help me here?

    Hi nayefo,
    Try installing multitouch, and then see, while in windows, if you've successfully installed multitouch and multitouch mouse, you should have those drivers. Also check if you've installed trackpad and trackpad enabler.
    Cheers,
    Erik

  • Help with JOptionPane -- Popup Dialog Boxes

    I need to create a popup dialog box that looks like this:
    http://img88.imageshack.us/img88/6900/jbuttonpm2.jpg
    red = JTextField (Where the user will input a number that I need to store)
    green = Drop Down List with 1,2,3 as choices
    blue = JButtons for OK and Cancel
    So yeah, I need an easy way to collect a bunch of information from the user, and this was the best way I could think to do it. The user has to enter a number for all of the fields, but is there any way for the field to have a value of 0 there by default?
    I read some of the Java tutorials for using the JOptionPane's showXXXDialog but I wasn't sure if that can't of method could create such a complex dialog box. Any help would be really appreciated. How can I make that dialog box and get all the input I need from it?

    Create a panel containing red and green and pass it as message to JoptionPane.showConfirmDialog with OK_CANCEL_OPTIONS to have blue. If it returns OK_OPTION read and use values from panel. That's it.

  • Need help with error message 213:8

    Need help with error message 213:8, this error message prompted after re-installing CS5.5 on the same machine (W7 Pro)
    Thanks.

    Hi TKA_,
    Please try the solutions mentioned on following forum thread.
    http://support.muse.adobe.com/thread/1305941?start=0&tstart=0
    Let me know if it works?
    Regards,
    Sumit Singh

  • Need action to open save dialog box and STOP there. Help!!

    So here is the background info, in case it helps to know why I am looking for this option - I am pulling photos off an internal company database. I can not access these photos as regular files - I have to go to our website, input an employee number, and right click, copy. Therefore, any options related to batch editing, if they'd even help otherwise, are out for this first step
    In the meantime, I have created an action that opens a new doc, pastes the photo in, and resizes it. Assigned f5 as the shortcut. Then, to save my dexterity (:P) I also reassigned the "open save for web & devices" shortcut to f6.
    However, this is such a massive project, and coming to a time-crunch, that I'd really like to take the action I created even further to cut out that second step (open save w/ f6).
    I've googled and apparently am not phrasing the question right, no matter how hard I try.
    HOW in the world, if possible, can I add a step to my action that simply OPENS the save for web & devices dialog box? I know how to make it open and save, but no more than that. I need to open and just STOP there, so that I can simply hit enter and input the desired file name.
    Is this possible?! I'll love you forever if you can tell me that it is and how to accomplish it! Btw, I am on Photoshop CS4.

    For your F6 save files action, record it saving a file (it doesn't matter what or where for the moment)
    Now, in the actions palette, click the right hand box where your save action is. A dialogue box will pop up saying "This will toggle the state of all dialogs in this action..." Click ok beacause we want to hand over control of the save back to the user. Now, when you run your save action the dialogue will appear and you can save the file where and as you want.
    Hope this helps.

  • Validation and  Error Message Dialog Box

    hi,
    I created 2 items DateFrom and DateTo.....when User enter dates into these items I need validate these dates i.e DateTo should be greater than DateFrom
    if it is not so,,,,I need to Popup a Error message in Dialog Box.........
    and this Error should not terminate the Program.
    Thanks in Advanced
    regards,
    Radhika

    Radhika,
    You need to attach PPR event to the Date To column. In the event code in controller, you can validate do the validation and accordingly throw error on the page.
    Why do you need a pop up(javascript alert) for that?
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • JRE 1.6. 0_01 is giving issues in message dialog box size

    Hi There,
    I am displaying message dialog for one of my web application. To resize the dialog automatically, I have set getPrefferedSize() property.
    This is working fine with JRE 1.5.0_11 and all lower version, even ok with 1.4.x. But if I am viewing the applet in a browser having JRE 1.6.0, dialog box size is automatically streatched. Height of the dialog box is increased automatically more than the desktop height. I can not view top & bottom area of the dialog box on my desktop.
    Please guide me why is this issue only with JRE 1.6.0 and what should I do to eliminate & resolve it.
    Thanks.

    Really? I thought all official versions would be downloadable through webstart. I'm curious why would Sun not make them available. Now I need to explain to my higher-ups why I promised to get webstart to automatically update all our user's JRE but now failed to make good. :-(
    Regarding the printing problem: With b105 the printouts would have text that is upside, mirrored and cropped. It was a total mess. The problem is reproducible. We manually upgraded some users to b106 and the problem disappeared completely. I think Sun fixed it in 106 but now the problem is getting all our users onto JRE b106.
    Java Webstart is supposed to do this for me but now it appears to be failing me big time.

  • Cannot send message dialog box is too big to get to the bottom to close

    I tried sending an email to my entire address book. I received the error message "cannot send message". That is not my issue, I can deal with it. What IS my issue is the dialog box contains all the addresses that I tried to send the email to and therefore the dialog box itself is really big. I cannot scroll to the bottom to click on the resend, or edit email choices. I cannot close this particular email. I forced quit email altogether, but when I re-opened the dialog and message came back up. I shut all the way down and it still came up. Does anyone know how to get rid of this unsent email?

    I just went to the Genius Bar with this exact problem. To fix this do the following:
    1. click on the error message (it will select it without showing anything)
    2. press the return key (this should clear it from the screen and it will try to resend)
    3a. turn off your internet connection (wither airport or ethernet)
    3b. go to mail preferences and turn "disable" that particular mail account
    (these 2 steps in #3 will stop mail from its automation and allow you to select the message itself)
    4. Your "outbox should now be present, and you can go into it and select the message
    5. now click on the message tab at the top of your screen and select "send to..." > select "drafts"
    Now you should be able to edit this message or the recipients or just delete it all together and start over. I hope this helps some people out, it was a massive headache for me!
    Message was edited by: rockfountain

  • Help Product Improvement Program dialog box won't go away

    When I re-opened the beta version of Fireworks CS4 last
    night, there was a dialog box asking me whether or not I wanted to
    participate in helping Adobe with product enhancement by submitting
    information on my usage of Fireworks, but the bloody thing will not
    close. There's options to select yes, no and a few other things,
    but whenever I select anything it won't go away. Does anyone else
    have this problem? And if so, is Adobe aware of it?

    quote:
    Originally posted by:
    mcmmem
    When I re-opened the beta version of Fireworks CS4 last
    night, there was a dialog box asking me whether or not I wanted to
    participate in helping Adobe with product enhancement by submitting
    information on my usage of Fireworks, but the bloody thing will not
    close. There's options to select yes, no and a few other things,
    but whenever I select anything it won't go away. Does anyone else
    have this problem? And if so, is Adobe aware of it?
    Yes, this problem has been reported already in the CS4 Beta
    forum.
    Reading
    that topic, it appears that only Mac users reported the error
    so far, and the only way out was to quit and restart Fireworks. I
    think it would be a good idea to post your case there too.
    SiamJai
    ~~~~
    http://design.thaiwonders.com
    - Innovative Fireworks Tutorials

  • Using Message Built-In - Message dialog box appears twice

    Hi all,
    I'm using the message built-in to display messages in forms.
    I use the message command twice to make it appear as a dialog box.(Using it once displays it in status bar)
    Eg.
    Message('Hello World');
    Message('Hello World');
    Sometimes, the dialog box appears twice instead of once.
    Is there a way to solve this ?
    Regards,
    Sam

    With an alert, you can write up to 200 characters in the alert box. With a message, you can write up to 255 characters, and if you want the message to pop up in an alert box, you can write a double message. I use:
    Message('Hello World');
    Message(' ',no_acknowledge);

  • CS3 Help Menu "Move Items" Dialog Box

    CS 3.0.1, WinXP Pro. When I open the Help menu, I get a dialog box called "Move Items." It lists folders and says, "Select the place where you want to move 'help.html' then click the Move button." I click Cancel, it comes up again, I hit Cancel, and the html Help file opens. I recently hit the Move button, and had to repair the installation to get Help to work again. Must that dialog box come up?
    Thanks!

    Thanks Peter. However, the Move button blanks out when I choose that folder (which makes sense). If I move it somewhere else, Dr. Watson Postmortem shuts down and everything locks up or Help no longer works. Guess I'll just live with the infinitesimal inconvenience of the situation as is. I rarely use the Help menu, so it's not a big deal.

  • Need help to find image size box

    I am a novice, I need to find the image size box on illistrator but not able to so please explaine how to find it on the page.  Thanks

    You may also be talking about the "Info" window. To open it, go to Window > Info or hit command+F8. It will show you the dimensions of the bounding box containing whatever object you have selected.
    Please let us know if we can help you further.

  • Need help deciphering error messages!!!

    My iTunes library was continually acting up, so I finally decided to start fresh. I restored & updated iTunes, Quicktime, & my iPod. I followed the directions from a question I posted here. I drag and dropped the music back into the "clean" library, and everything was going great.
    Now I'm getting the same error messages as before. I was adding music and this message appeared.
    Error Message:
    The file "iTunes Library.itl" does not appear to be a valid music library file. iTunes has attempted to recover your music library and renamed this file to "iTunes Library (Damaged).itl".
    My library.xml file was missing some music, so I added it back to the library.itl file to see if it would work. It appeared fine afterward. The next day I went in to recreate my playlists, and received the following error.
    Error Message:
    The iTunes Library cannot be saved. An unknown error has occurred (-1450).
    Questions:
    1. What is error 1450?
    2. Are my music files (that I drag & drop)contaminated and need to be deleted and reimported?
    3. What are the causes of the 2 error messages above? I copied them to my notepad exactly as they appeared on screen?
    4. When iTunes creates a library (damaged).itl file, it also creates a new music file: song 1.m4a replaces song.m4a - which version do I keep?
    The only good news is that my iPod has always worked fine. It has no music on it now, and I don't want to hook it up to a contaminated library.
    Need help desperately...I'm beginning to hate iTunes...just want to use my iPod.
    Dell Inspiron 6000 Pentium   Windows XP   1.6 GHz, 1G RAM

    When iTunes creates a library (damaged).itl file, it also creates a duplicate song file.
    song 1.m4a replaces song.m4a - which version can I delete without creating problems?

  • Java Newbie needs help with multi method dialog calculator

    Our example for the unit was the example below... we now must create a 5 method program for a calculator... 1 main method and 4 for the standard operations(+ - * /). It is supposed to utilize Swing for graphics/dialog boxes that ask you for the operation you would like to use(if statements based on which operation they enter), and a prompt that asks you separately for the 2 numbers used.... anyone feel like drawing this skeleton out? I am in class right now and none of my neighbors can figure it out either....
    import javax.swing.JOptionPane;
    public class Payroll
         public static void main(String[] args)
         String name;         //the user's name
         String inputString;  //holds input
         int hours;           //hours worked
         double payRate;      //hourly pay wage
         double grossPay;     //total pay
         //getUser
         name = JOptionPane.showInputDialog("What is your name?");
         //getHours
         inputString = JOptionPane.showInputDialog("How many hours did you work?");
         hours = Integer.parseInt(inputString);
         //getRate
         inputString = JOptionPane.showInputDialog("What is your hourly pay rate?");
         payRate = Double.parseDouble(inputString);
         //setGross
         grossPay = payRate * hours;
         //showGross
         JOptionPane.showMessageDialog(null, "Hello " + name + ". Your gross pay is: " + grossPay); 
         //End
         System.exit(0);
    }

    import javax.swing.JOptionPane;
    public class CalcDiag
         public static void main(String[] args)
         String operation;
         String inputString;
         double num1, num2, total=0;
         inputString = JOptionPane.showInputDialog("What is your first number?");
         num1 = Double.parseDouble(inputString);
         inputString = JOptionPane.showInputDialog("What is your second number?");
         num2 = Double.parseDouble(inputString);
         inputString = JOptionPane.showInputDialog("Please indicate which operation you would like to use: A,S,M,D ?");
         operation = inputString;
         if (operation.equals("A"))
              total = getAdd(num1, num2);
         if (operation.equals("S"))
              total = getSub(num1, num2);
         if (operation.equals("M"))
              total = getMult(num1, num2);
         if (operation.equals("D"))
              total = getDiv(num1, num2);
         JOptionPane.showMessageDialog(null,"Total = "+total);
         System.exit(0);
    public static double getAdd(double x, double y)
              return x+y;
    public static double getSub(double x,double y)
              return x-y;
    public static double getMult(double x, double y)
              return x*y;
    public static double getDiv(double x, double y)
              return x/y;
    }your welcome

Maybe you are looking for

  • BI-IP / Formula navigation attribute

    Hi, i have the following problem and hope somebody can help. I have a BI-IP planing function (Fox-Formula) which simply copies the keyfigure Amount from the characteristic company (#) to the characteristic company (8703). { KI_LCCUR, 8703 } = { KI_LC

  • My URL address bar has disappeared - I inadvertently clicked on something and it disappeared.  How do I get it back so I can type in a website?

    My URL address bar has disappeared.  I inadvertently clicked on something and it just disappeared.  Now I have no address bar to type in a website address.  Can you please help me?

  • No luck upgrading iPhone 3 to OS4

    After upgrading to the latest iTunes version and then synching and backing up the iPhone for more than 12 hours, the message popped up and said that upgrade was complete and the phone could be disconnected from the PC. I did that but the firmware was

  • Signature.Verify()

    Can someone explain this please? thnaks verify public abstract boolean verify(byte[] inBuff,-->Is this a Message Digest? short inOffset, short inLength, byte[] sigBuff, short sigOffset, short sigLength) throws CryptoExceptionVerifies the signature of

  • ADF: Export table contents to pdf

    Hi Everyone, I am using Jdev 11G... I have a table and Export to Excel button on the adf page.Export to Excel is working fine. But now i have to change it to Export to pdf. Plz let me know how can i perform this operation Export table contents to Pdf