Wrong TextField value open a new message window

How can I make my program to react like this:
I enter a value in a textfield. Valid values are <= 20. If I enter 21 how can I make the program to open a small window and display an error message? On the background the original program still runs. Only a new message box comes on screen.
Regards

You want a dialog box to show up. If you use swing, you can use JOptionPane. It has some static methods you can use to display a dialog box.

Similar Messages

  • Can't open new message window or reply window in mail

    I just started having issues where I cannot open a new message window or a reply window. I also cannot open a new Note or To Do. I restarted, zapped the pram (8 times), and was going to trash the plist but couldn't find it. Does anyone know if there is a plist for mail. Any other suggestions would be welcome.

    Hi ulua & welcome to discussions...
    Try this - find the /Library/Preferences folder in your user/Home folder and then locate and delete this file:
    com.apple.mail.plist
    *Caution* - doing this may clear your account settings so be sure to note those first in the event you are required to reconfigure, etc.

  • Entourage open from dock opens a new message screen. If I open it from the application window it open to my inbox as normal. Just since upgrading to Mavericks.

    Since upgrading to Mavericks, when I open Entourage from the dock it opens the program and opens a new message window. Very annoying. If I open it from the application folder it opens to my inbox like it always has. Any ideas?
    Thanks
    Dave

    the problem has been solved for me following the process :
    1 -close entourage
    2 - start and follow the complete reconstruction of the entourage database ;
    3 - in the "entourage" menu, disable "office reminds" or "office recall" (i don't know the exact name because my entourage is in french)
    For me it has worked. when i click on the dock entourage shortcut it opens without showing the new message windows at start.

  • Can't see new new message window

    When trying to send mail, when I attempt to open a new message window, it will not display. If I look under the window tab in the task bar, I can see that a new message window has been opened, but even if I highlight the new message, it will not display. Any idea what setting has been changed, or what might be the problem? The mail program is downloading new e-mail messages, and otherwise seems to be functioning OK. Thanks.
    G4 & G5 Powermac   Mac OS X (10.4.7)  

    I resolved the issue. I have more than one monitor set up on the computers, and the new mail message was opening on the display I didn't have turned on....
    G4 & G5 Powermac Mac OS X (10.4.7)
    G4 & G5 Powermac Mac OS X (10.4.7)
    G4 & G5 Powermac Mac OS X (10.4.7)

  • HT5361 i can't resize the new message window in mac mail.

    I have OS X 10.9.1 and a MacBook Air.
    When i open a new message window to type an email. It opens up as big as full screen or bigger. When I try to resize the window it won't allow me to make it any smaller.
    Can anyone help?

    Another quick follow-up. I have several email accounts set up within Mail and have the "Bcc" field set up so I automatically get a copy of my emails in the account from which I send the message. Setting the "Bcc" to one of my accounts triggers a jump to a large message viewer window  that won't resize. Then deleting that "Bcc" listing from the message doesn't fix the problem. I have to go back to a copy of the message I've sent to myself and again click the forward icon to get a window I can resize. This problem doesn't seem to occur if I paste the offending  account into the "To" field of he message, only the "Bcc' field. Go figure!

  • I close Firefox session and then try to open a new browser window - get message that Firefox is still running and I need to shut down and restart. Need a solution

    I close a Firefox browser and at a later time want to open a new browser window but get message "Firefox is still running and I need to shut down before I can open a new session" I do not want to shut down as this is laborious - I can go into task manager and processes and click on Firefox and end session that way but this is not the solution. Firefox seems to be running in background but I cannot open a new session window without doing on of the above.

    Have a look at this post, see if it is of any help (though related to Vista, but same issue can be there with Window 7 also)
    http://www.vistax64.com/browsers-mail/265937-firefox-exe-still-running.html

  • Tip Message with hyperlink to open in new tab/window

    Hi Guys,
    I have created a FND Message which has the following content:
    some text <a href="https://www.google.co.uk"target="_blank">Click Here</a> some more text
    This is referenced in a custom OAF page as a Tip Message (OATipBean), the text and hyperlink render with no issues, however the hyperlink does not open in a new tab/window (it opens in the current tab) - when you view the source of the page the '...target="blank"...' is not there:
    ... <a href="https://www.google.co.uk">Click Here</a> ...
    Is there a way of getting hyperlinks in Messages to open in new tabs/windows?
    Regards
    Carl
    Message was edited by: CarlHammond

    I think part of your problem might lie in the way you are trying to use your quotation marks.  It appears you are trying to have the single quotes do what double quotes should be doing.
    document.write("<a href='"+imagelinks[ry]+"' target='_blank'><img src='"+myimages[ry]+"' border='none'></a>
    If you want to have doublequotes appear in code as doublequote characters you can try slashing them to have them read literally... \"
    document.write("<a href=\""+imagelinks[ry]+"\" target=\"_blank\"><img src=\""+myimages[ry]+"\" border=\"none\"></a>

  • Please tell how to do, that when I want to forward a message, a message opens in new tab, not in a new message window in thunderbird. Thanks.

    Please tell how to do, that when I want to forward a message, a message opens in new tab, not in a new message window in thunderbird. Thanks.

    Sorry, but at the moment 'Compose in a tab' isn't yet possible. You'll always get a new windows when composing or replying/forwarding a message.

  • Mail wont let me open new message window

    Hello,
    So lately I have noticed a bug, I believe, in mail. At random times when I click on the new message icon nothing happens. However, if I close mail completely and reopen it, the new message window shows up. Any idea why this is happening? Thanks for the help
    Derek Osterloh

    SUSSED THE NEW MAIL MESSAGE PROBLEM!!!
    I am delighted to say that I resolved this one myself... Its on an IMAC 20", which I had also hooked up to a second display (although not switched on). What happened is that I turned to system Preferences, went to Displays, and changed the settings in the arrangement tab. This I thought would help, as perhaps the New Message window had been created, but was displayed somewhere else I could not see, and Guess what, there they all were! They had been elongated after the update to Leopard, and subsequently, were all sat there on the 'other' display.
    I hope his helps with others with the same problem. (thats also why I did not have the problem on the laptop)
    Good luck to all.

  • Clicking email-links doesn't open "new message" window

    Hi,
    When I click email links, safari doesn't take me to the "new message" window. It activates safari: the program comes on in the dock and the text next to the apple logo changes to "mail", but I don't get the "new message" window

    You're welcome. Glad to have helped.
    Mahalo (thanks) for the and Aloha from Big Island.

  • Recurring New Message Window opens in Mail

    When I send a new message, another "New Message" window launches automatically. I can't figure out how to stop this from happening. There are currently no rules turned on and I'm only using on mailbox/account. Can anyone help me out?
    Message was edited by: jestertj

    Have you tried creating a new User Account and setting up Mail to work there to see if the problem manifests there as well? That would be an indicator of where the problem lies.
    You can also try:
    1. Quit Mail if it's running
    2. Go to Home/Library/Preferences and removing the com.apple.mail.plist file.
    3. Restart Mail and enter your account information again; Mail will automagically find your existing mailboxes. Then check to see if the problem remains.
    Mulder

  • Mail automatically opens a new compose window after sending mail

    Just recently, my Mail program has started opening a new compose window after I send an email. It's accompanied by the "you did something wrong" tone that my computer makes if you (for instance) hit some incorrect combination of keys. I've tried to fix this in preferences, but I don't see any item that controls this. Any ideas would be greatly appreciated, as this is a waste of time to have to cancel out of the unwanted new compose message, and confirm that, indeed, I want to cancel and not save it.
    Thanks!
    2006 G5   Mac OS X (10.4.9)  

    Is Outbox visible in the mailbox list? If so, get rid of any stray messages that may be there.

  • New message window keeps popping up

    The new message window keeps popping up without prompting, usually twice in a row. I notice
    this particularly when I first open the Mail program. The funny thing is that you can't actually type in any text in the new message window. Any ideas???

    It seemed to work itself out after several days.

  • Mail: new message window blocks the Mail program

    Hello,
    When you write a new mail, the new nice interface makes the window of the new mail appear as it did on the iPad. However, this does not allow you to use the Mail program for other uses: for instance, I used to open the new mail window, and continuously switch to other received emails to re-read while typing the new one or similar.
    This is not permitted anymore and the only way I found is to open a new entire mail window, which is not exactly the best solution...
    Does anyone know how to make the popup window of the new email "non-blocking"?
    I think this is a nice-looking feature but VERY counterproductive.
    Thanks a lot,
    Marco

    Hi Marco,
    You can send feedback to Apple at http://www.apple.com/feedback
    As far as I am aware there is currently no way to change the new message overlay in full screen mail.
    J.C

  • Mail "New Message" window retreats to background after drag and drop attachment from Finder to Mail "New Message", click, and Finder window stays in foreground even when not in focus

    Hi, I'm surprised I can't quickly find if anyone else is having this issue. For me it has been going on since Lion on my 13" MacBook Pro 2011 and it's still persisting in Mavericks, and even still now that I've "downgraded" to a 15" MacBook Pro 2010 with Mavericks.  The behavior is odd and difficult to explain concisely. Basically, when I want to add an attachment to Mail, I'll Cmd+Tab over to Finder click and drag and Cmd+Tab back to Mail, and drop the attachment. At first it looks fine, but when I click in the New Message window where I just dropped the attachment, to move the cursor, it retreats to the background and the Mail Main Window comes to the foreground. Then, if I click on that, the Finder window that I just used comes to the foreground. Sometimes if I switched to another app before going to Finder to select the drag and drop, that other app window will appear in the foreground instead. If I click on the other app window that is now in the foreground, then the Finder window that was last used will come to the foreground. The only thing that seems to fix this switch-a-roo effect is Cmd+Tab-ing back and forth a few times, or click on the window "frame" at the top to move the window around.
    The way to prevent this is to have my Mail Message window visible in the foreground side by side with the Finder window when the drag and drop occurs (this is a tedious extra step if mulitple windows are open, or to use the add attachment command in the menu within Mail. But it sure is annoying buggy behavior.
    Thanks
    Daniel

    Yep, I get exactly the same thing when using Thunderbird mail client on my 2011 iMac running Lion. I've been putting up with it for at least a year, maybe longer.
    For me it appeared to start after a Thunderbird update, so I figured that was the cause and couldn't find a solution at the time. However I've now noticed it starting to happen in Apple Motion 4 when dragging files from Finder into a DropZone in my animations. Motion remains the active program but the Finder window sits on top until I Cmd-tab out to a third open program (ie not Finder) and back to Motion again.
    This is the first indicator I've had that it's an OS X issue.
    Be great to find a solution as D&D is by far my preferred way of adding attachments to emails and similar tasks.

Maybe you are looking for

  • Scroll Bar in Table

    h3. {color:#800000}*Hiii all,*{color} h3. {color:#800000}*i notice that if i have a table with some rows, more than the height a scroll bar showed up, but if you use next button the scroll remain in the top but the selected row is next, until you go

  • Make placed JPEG color transparent in Illustrator CS2/3

    I've been using CorelDRAW! for years and want to learn to use Illustrator CS2 and CS3. In CorelDRAW I can import (place) a simple bitmap images, such as a JPEG, and I can select and make transparent any color in the image. An example would be to brin

  • IPhoto new version keeps crashing when I turn on photostream. Why?

    I upgraded to the new version because it offers the photostream service. but now it crashes everytime i turn it on. please help.

  • LabView Calendar Control

    How can I force the Calendar browse function to display when I run a VI using a control input to the timestamp of the Format Date/Time String Function VI

  • What should we expect on N93i

    We have had lengthy discussions on N-95 and have come up with useful suggestions Lets pause for a moment and see what Nokia can do with N-93i Lets make a wish list 1) Dimensions ( volume & weight ) 2) Firmware 3) Zoom ( Optical / Digital ) 4) Battery