Making a message pop up appear on the task bar

hi all ! Im making a pop up with a message so the person can know that the product is registered. I use this code
javax.swing.JOptionPane.showMessageDialog(null,"Nueva Cita registrada","Medex",javax.swing.JOptionPane.INFORMATION_MESSAGE);The thing is that I want to make the pop up to appear in the task bar because sometimes it appear but behind the JSP and it looks like the program hanged or something.
Thanks !

There are two steps in running a JSP:
1. The server converts the JSP code to HTML and sends it to the client.
2. The client (your browser) displays that HTML.
Your Swing code there runs in step 1, on the server. At the moment you are running your server on the same machine as the client, right? So you see the popup window on your machine, because it is the server. But in real life the client would not see that popup window. It would appear on a different computer, in a room where nobody is watching it.
So, no, that can't be done. And no amount of changing it will make any difference. It's just wrong. If you want the client to see something, it has to be done in the HTML that the JSP produces. No Java code there, only HTML. If you really want something to appear in the browser's task bar then there may be some Javascript function that can do that.

Similar Messages

  • How do I get the "Notes" icon to appear on the task bar or Launchpad?.....late 2010 air

    How do I get the "Notes" icon to appear on the task bar or Launchpad?.....late 2010 air

    Ref: How do I get the "Notes" icon to appear on the task bar or Launchpad?.....late 2010 air
    Thanks for the input.
    Search field produces no "notes" file
    "Notes" icon does not appear in the applications folder
    I can not find the "notes" icon anywhere.
    Ideas?

  • Preventing a JFrame/dialog from showing in the task bar & gaining focus.

    As the (lengthly) title suggested, I would like to know if it is possible to create a JFrame or JDialog that can run (more or less) on its own without appearing in the task bar or gaining focus when setVisible() is called.
    Anyone know how to do this, or have better Google search term to use than the ones I thought up? ;-)

    The point is for it to stay visible (normally) when when it is not hidden (it is hidden for ~1 second to take a screenshot) and then shown again. The problem with this is that the application currently in focus loosees it (which is very annoying when typing...).
    I'm trying to make a 'desktop button' of sorts that just acts as a tray icon when the system tray isn't supported. I put some effort into making it have a transparent background, but by doing that setVisible() is called every 15 seconds or so. (the frame is alwaysOnTop as well), thus the reason that I don't want the focus to be taken.
    As for not showing in the system tray, I don't really need it although it would certainly make the icon better.
    With that said, is there some way to accomplish this?
    Thanks for the quick reply!

  • How to make the Outlook 2007 reminder pop-up appear in the foreground

    We are migrating from Windows XP and Office 2003 to Windows 7 and Office 2007. One of the complaints from our pilot users is that the Outlook reminder pop-up displays under/behind other application windows. Is there a way to modify this behavior so the Outlook reminder pop-up appears in the foreground?

    Opened a case with Microsoft on this one, and here is the official response:
    "After consulting and performing further investigation, we confirm that it was the intended design of Outlook 2007 that the Outlook reminders do not interrupt an application which has focus. Instead, reminders will only flash in the taskbar and produce the reminder sound.
    For many the taskbar changes in Windows 7 for the reminders are not enough to grab the user's attention to the new reminder, especially if sound is not enabled on the user's computer. Often appointments are missed due to the overlooked reminder.
    Microsoft has noticed this issue and the similar cases are already recorded in the database. Please rest assured that I will forward this request of making the Outlook reminder appear in the foreground to the appropriate development and usability experts for the purpose of improving user experience in the future. We strive to capture any and all product feedback so as to ensure that we are continuously developing Microsoft products to meet and satisfy the needs of as many customers as possible."

  • After reinstalling, a blank pop-up appears in the middle of the page, which has no copy and no way to delete, but it prevents taking any action on page.

    I had to restore my hard drive to a date two weeks earlier to eliminate an issue I was having. For some reason, this buggered my Firefox browser. I uninstalled it then reinstalled it (several times, now). It appears the reinstall is successful; however, when I open Firefox, a pop-up appears in the center of my homepage. It is blank except for a tiny box that I can check and uncheck and a grey bar in its center that doesn't seem to do much of anything. There is no copy in the pop-up. There doesn't appear to be any way to close it and it prevents me from from taking any other action including closing the page. Any clue what this pop-up is and how I might eliminate it? It doesn't appear with any other of my browsers.

    I can't take any action once my Foxfire homepage is open and the mystery pop-up appears, which is immediately. I have to restart my PC to close Firefox because the pop-up prevents my doing anything connected to Foxfire. I can open other browsers or do other functions, such as open documents, but Firefox is frozen on the homepage. And, although I can move the cursor around the page, I can't click on anything.

  • FF not connecting to web- This "Network Connections" message pops up: Error 623: The system could not find the phone book entry for this connection. Any ideas?

    About a month ago I could no longer connect to the internet on our PC. Every time I clicked on the Firefox icon the Netscape sign-on window would pop up. I would try to close it but it would pop up over and over again. If I tried to close it a dozen or so times eventually Firefox would open up but it would never connect. Just today I moved my Netscape file to the recycle bin. No longer does the Netscape sign-on window pop up but following Network Connection error message pops up: "Error 623: The system could not find the phone book entry for this connection".. This error window behaves the same way the Netscape sign-on window used to behave. Every time I click to close it it pops open again. After numerous clicks Firefox opens up but it never connects.

    Do you have this error message on a Mac computer or on a Windows computer?
    I've only seen this error mentioned on a Windows computer.
    *http://kb.mozillazine.org/Autoconnect

  • Sent e-mail messages do not appear in the sent box

    sent e-mail messages do not appear in the sent box

    Glad it's working for you but it's still not for me.  I was sending emails fine today and they went to sent box then all of a sudden they aren't there.  Does anyone know what is the problem and a simple solution?

  • I try to restore my iphone 4 and this message pops up and sais the iphone could not be restored. The device isn't eligible for the requested build

    i try to restore my iphone 4 and this message pops up and sais the iphone could not be restored. The device isn't eligible for the requested build... can anybody help me ?

    sounds like your phone was jailbroken.  If this is the case, you're hosed.

  • Minimized messages do not appear under the Window menu

    If I minimize a few messages (yellow button) in Mail, then quit Mail and reopen Mail, the minimized messages don't appear under the Window menu. The only way to retrieve them is to go into Expose one at a time and click on them.
    This seems like a bug or design flaw.
    Any ideas?
    Message was edited by: haroldo1

    Apparently fixed with 10.6.2

  • SMS messages do not appear in the Messages list, although the BlackBerry smartphone indicates that SMS messages have been received

    The BlackBerry smartphone shows notification that a SMS message has been received, but the SMS message does not appear in the Messages list or the SMS and MMS list

    Hi!
    Do you have an icon for SMS and MMS messages?
    To find the messages in the mean time from the main message queue do a search:
    Options>search setup up the options as follows it will show all unopened messages.
    Service=ALL SERVICES
    folder: ALL FOLDERS
    show: ONLY UNREAD
    type=ALL
    Thanks,
    Bifocals
    Here is the icon I'm referring to:
    Click Accept as Solution for posts that have solved your issue(s)!
    Be sure to click Like! for those who have helped you.
    Install BlackBerry Protect it's a free application designed to help find your lost BlackBerry smartphone, and keep the information on it secure.

  • Message "no service appears" at the top.  How do I get it back?

    A message "no service" appears at the top of my iphone4.  How do I reset it?  The name of my network does not show up in carrier settings like it used to.It just says automatic.I cannot phone or receive phone calls or messages.

    If you are in the same physical area where you formerly had service, it sounds like an issue with your cellular carrier.  Either they did something to your account or (less likely) perhaps they have an issue with their towers.
    Contact your cellular carrier.

  • My Thunderbird page is screwed up - there is no address book appearing in the tool bar and i do not see a "write: tab - just message - how can I restore

    My Thunderbird page is screwed up - there is no address book appearing in the tool bar and i do not see a "write" tab - just "message" how can I restore back to normal?
    Would so much appreciate help... frustrating.

    Sounds like you are missing the Mail Toolbar.
    Do you have a Menu Bar with File-Edit-View etc?
    If not press the alt key to make it appear.
    From the Menu Bar select View-Toolbars and turn the missing toolbars back on.
    Write and Address Book are on the Mail Toolbar.
    FYI: The alt key or F10 will make a missing toolbar appear in most applications.

  • Every time I would download games for free, always appear message "Verification Required". How that message does not appear and the free download smoothly.

    Every time I would download games for free, always appear message "Verification Required". How that message does not appear and the free download smoothly.

    Create a NEW account using these instructions. Make sure you follow the instructions. Many do not and if you do not you will not get the None option. You must use an email address that you have not used with Apple before.
    Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card

  • Messages typed not appearing on the QWERTY display...

    Hi..
    Im having this prob which is when i type a message its not appearing on the small white screen. This happens to both mode for mini QWERTY and also Full Screen QWERTY. So when i use the Full screen mode i cant see the words that i typed untill i click the green colour tick mark.
    Pls help me if you guys know whats the prob...
    Thanks

    Hi Venkat,
    Yes thier is a problem in your config.
    Go to SPRO -> MM ->Purchasing>Confirmation->Setup confirmation control.
    Check your setting for the the Inbound Delivery Make it Not Relevant for POD
    and further select it and go to Confirmation Sequence and select AB -Order Acknowledgment and check box MRP-RElevant and then select LA-Inbound Delivery and Check all three boxes save it and then check in Me21n i think it should work
    Lekhram

  • I have 2 iphones on the same account and all of a sudden my text messages are also appearing on the other phone. i haven't changed any setting

    i have 2 iphones on the same account and all of a sudden my text messages are also appearing on the other phone. i haven't changed any setting

    you most likely have imessage on both iphones and sending/receiving to same number on one of the iphones. go to settings messages > send and receive > check the numbers/emails on both iphones. once you uncheck the numbers/emails you dont want you will not be getting the messages any more. a little bit more info is helpful read this http://support.apple.com/kb/HT5538.

Maybe you are looking for