Dialog Box doubt

Is there a way to get values from the YES_NO_CANCEL \ OK_CANCEL options in the standard dialog boxes, i.e, attaching actions to be performed when YES or NO is clicked?
Thanks

Just doswitch (JOptionPane.showConfirmDialog (...)) {
    case JOptionPane.YES_OPTION:
        break;
    case JOptionPane.NO_OPTION:
        break;
    default:
        break;
}Kind regards,
  Levi

Similar Messages

  • How do I customize a Dialog Box theme for my macbook pro?

    I am tired of the gray dialog boxes. If possible, I would like to use a picture. I also want a different color bar on the top of the screen. I also would like a different color scroll bars. I also want different options (as in colors) for cursors. Thank you!

    I have no doubt that someone with too much time on his hands has written something you could use to customize your dock, cursors, dialog boxes, menu bar, and all manner of other things. What I'm suggesting is that that's a dumb thing for him and you to waste time and energy on, and a silly and completely unnecessary risk with little or no benefit. If you have things to get done with your computer, do them, and don't get bogged down fooling with the eye candy.
    And by the way, no one owes you answers to your questions. Everyone here is a volunteer.

  • After installing security update 10.6.8 I've seen dialog boxes asking me if I will permit certain root processes, e.g. configd, to receive unsolicited messages from the internet. What are the consequences of denying these requests?

    After installing security update 10.6.8 last night I've seen dialog boxes asking me if I will allow incoming network connections to certain root processes, e.g. configd.  I didn't see these dialog boxes prior to installing 10.6.8.  How do I make  informed decisions? In other words,
    (1) Where can I find 25-word summary descriptions of these processes?
    (2) Where can I find discussions of the consequences of granting or denying these requests?
    Alternatively (and at some risk of revealing metaphysical doubt) why am I being asked for these permissions?  And who expects me to make correct decisions?
    I have turned on th standard-issue OS X firewall and am running my system in stealth mode.

    After installing security update 10.6.8 last night I've seen dialog boxes asking me if I will allow incoming network connections to certain root processes, e.g. configd.  I didn't see these dialog boxes prior to installing 10.6.8.  How do I make  informed decisions? In other words,
    (1) Where can I find 25-word summary descriptions of these processes?
    (2) Where can I find discussions of the consequences of granting or denying these requests?
    Alternatively (and at some risk of revealing metaphysical doubt) why am I being asked for these permissions?  And who expects me to make correct decisions?
    I have turned on th standard-issue OS X firewall and am running my system in stealth mode.

  • Multiple programs crash using a Save As dialog box, suspected cause is interaction of machine with Robohelp

    Hi all,
    Apologies if this is in the wrong area, it could also be related to RoboSource Control.
    I have a problem with my entire system. I am getting regularly kicked out of programs when I try to add an attachment or save something. It occurs when a standard Windows 'Save As' or 'Open file' dialog box is opened to browse to a file path, and this regularly leads to being kicked out of the whole program. This happens in Chrome, all the microsoft office programs, outlook, adobe acrobat reader - everything in fact where I use one of these standard Windows file browsing dialog boxes. The kicking out is pretty indiscriminate - it doesn't happen every time. Sometimes it will take me 5 or 6 attemps to save something or add an attachment, having to reload the program each time. Sometimes, but rarely, it will work first time.
    The only program it doesn't happen in is Roboscreen Capture and Robohelp, which is odd in itself. Both the two other technical writers in my department have both exactly the same issue with their machines, and this never happens to anyone else in the office of about 40 people. The only thing me and the two other technical writers have in common with our machines is that we all have Robohelp and RoboSource Control and Roboscreen Capture.
    We use version control through RoboSource Control with Robohelp, this could be the problem. We are also raising this issue with our IT department.
    Can anyone on here give a helping hand to point me in the right direction?
    Many thanks,
    Matt.

    I've been hanging around these forums for about ten years and that's a new one on me. It's only happening to people with Rh but it doesn't happen in Rh, just about everything else.
    Are you maybe using a very old version of Rh on an operating system it wasn't designed for? I would doubt that as you would be seeing many more problems. What operating system are you using?
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • File download dialog box -running report

    I am calling one report from my Oracle 9i Developer Suite Application. When i call one report using 'delimited' format, the run runs okay opening in a new Internet Explorer(IE) instance. But, when i call another report, the File download dialog box -running report opens which asks whether u want to open the file or save it in your computer. I hope, my doubt is clear.Please help me in this as it is very urgent.
    Regards.

    This is a duplicate post. Please followup on your previous posting.
    What is the URL you specify?

  • Funny fonts in some dialog boxes on Mac OS X 10.6.5

    Hi
    We only just started using Dreamweaver after installing it a little while ago. We have version CS5. When we go, for instance, to the Page Properties dialog box,  the field labels seem to be using a corrupt font. I wonder, if that is the case, if it's possible to find out what font it might be so we can replace it. Or, check to see if it's missing. I've checked that the font in /LIbrary/Application Support/Adobe/Fonts are correct - and the default fonts are present in /System/Library/Fonts and /Library/Fonts.
    Any suggestions apprectiated!

    Definitely a corrupt font without a doubt.  Only thing you can do is open up Font Book and see if you can find the suspect.  I doubt it came from an Adobe installation, looks to be a custom font, probably an "outline" version by the looks of it.  You could always take a screenshot and crop the image and use What the Font so you don't have to go through each font.
    http://new.myfonts.com/WhatTheFont/

  • Printing in Flex: why does print dialog box look different?

    I'm starting to play with printing in Flex. I tried to run the "Example: A simple print job" here from the Adobe web site  (i.e. press demo button on Adobe web site and then press print button on demo) and get one print dialog box. The took the same code and pasted it in a Flash Builder Application file and ran the whole thing on the same computer (same OS, Windows 7, and same browser, Chrome) and  get a different looking print dialog box. The only difference I can see is that the example on the Adobe site is probably compiled using FB 4.5 and the one on my machine is compiled using FB4, but I have a hard time believing that would cause the difference, considering that the print dialog box should theoretically be an OS deal. A picture of the two dialog boxes is included below.
    any ideas of what could be causing this?
    thank you!
    f

    I believe that is a browser function.
    The one problem that you are going to run into trying to make it look the same (if it is even possible which I doubt) is that many browsers don't even use Adobe Reader anymore. They have their own pdf viewers. Take Chrome in Mac for example. Not only does it not use Reader by default, you can't even make it use Reader.

  • Change owner of a dialog box.

    I have a JFrameA that open up a JDialogA. When the dialog is close, I just hide the dialog instead of disposing it. JFrameA can open up JFrameB. JFrameB can open up JDialogA, but since the dialog was show(), it owner is still JFrameA. JFrameA pop in front when JDialogA is close. Is there anyway to change the owner of JDialogA without having to create a new one????

    Pfft. Probably premature optimization -- have you timed how long it takes to create a new dialog box as opposed to creating a new one? If it makes a difference (which I doubt) then create one dialog box per frame.

  • Visualization of dialog box

    Hi everybody,
    I am trying to implement some GIS applications on Ustation/Geographics environment by JAVA programming. I�ve got several doubts about how to make it, but i will start with a basic one.
    The first thing i�ve got to do is visualize a dialog containing some buttons that make determined actions. Since it is a dialog box, i�ve created a container class which contains the buttons and buttonlisteners to handle the generated events. I have compiled and created the "Dialog.class or .mclass", BUT my problem is that I do not know how to check the program. I mean, if I execute the main class, it has no "main method", so an error occurs (java.lang.NoSuchMethodError: main).
    Can anybody help me???
    Thank you in advance.

    Don't know exactly how you are running this, but a
    general GUI application has the following format:
    Main program, which usually just instantiates your
    "main" frame. This frame then calls dialog boxes,
    ect to accomplish your tasks. Kinda general, but
    thats how you would check (create a main program,
    ect.).Carefull! Don't go instantiating any "mainframes"? I know, I know. Bad joke. Couldn't help myself.

  • Strange letters and weird boxes around dialog boxes

    Hello!
    I'm wondering what might cause something like this:
    mkdir text
    ls
    text
    rm text/
    rm: cannot remove Ètext/È: Is a directory
    The commands doesn't matter, just the end right there. The text looks weird and everything. It shows like this in other places as well but I just made this example up.
    And if there is a dialog box it will have a line that consists of the same kind of letters, not a straight line.
    How do I fix this?

    Trilby wrote:
    Timelaw, being new and needing to learn is fine, but you will be expected to do some of your own research.
    JWR linked to an article about how to ask questions in a manner that will yeild useful results.  One of the underlying themes - and even one of the specific examples - describes someone being given advice on a forum when they are told to check the value of some setting (like, say, $TERM).  The bad response described in that article is to immediately respond "What is TERM?".
    We are here to help solve your problem, but we are not here to reiterate basic facts that could be found through a 5 second google search.  Google "Linux TERM" or "WM DE" and I have no doubt the first results will tell you exactly what these are - then we can focus on solving the actual problem, rather than the trivialities which you are certainly capable of determining without help.
    Please actually read the article JWR linked to.  You can keep your eye out for the short example on a "stuck zentry" for the example I'm referring to.
    I did google the DE and WM thing but I didn't found anything that related to the matter. I guess I did it with other keywords or something. (What I googled was "WM/DE means/meaning" etc)
    I did check the link, and I have it here in a seperate tab, reading bits as I keep going. If it looked like I didn't care, that's not the case.
    Also, when I wrote $TERM in the console it said
    -bash: linux: command not found
    And now when I have googled, it said that linux is the most common thing the variable is set to, in new systems etc, and I suppose that is why it says linux there?
    Also, I'm quite busy with a lot of stuff and I'm trying to fix this issue with my Arch when I have spare time, and so I wrote this in the hope that I could get it explained until I actually had time to look at this again.
    I'm sorry for the trouble.
    Last edited by timelaw (2013-04-03 12:24:09)

  • Attempting to exit a tab in any fashion, the page puts up a dialog box and won't exit.

    When attempting to exit a tabbed page by any means, the page puts up a dialog box that occupies a vertical strip of the entire computer screen. It has a question mark and says "Are you sure you want to navigate away from this page?
    PRESS ESCAPE OR CLOSE THIS ALERT"
    When you press escape or close the alert, the dialog box goes away, but you don't exit the page.
    I suspect a malefactor has somehow captured the page and modified its behavior, so I doubt the reported URL will help.
    I need to find some foolproof way to close the tab.
    Thank you,
    John
    and won't exit.

    try clicking EDIT, on the upper ribbon of your firefox browser, then on the bottom click PREFERENCES, then on the top select the PRIVACY tab. On the right hand side under history there's a couple of buttons that say EXCEPTIONS and show cookies, select EXCEPTIONS and click on the website that is preventing you from closing the tab. Then on the bottom click REMOVE SITE. you can also remove cookies this way. Restart your computer and it should be normal. This worked for me, I hope it works for you!
    oh yeah by the way when you click the PRIVACY tab, make sure the "Firefox will: use custom settings for history" option is selected.

  • Regarding Dialog Boxes

    hi, I am a novice in Labview. I have a doubt regarding dialog boxes. can i make a VI as a dialog without running the VI.
    Thanks in Advance
    Regards
    Soundarya

    Soundarya wrote:
    hi, I am a novice in Labview. I have a doubt regarding dialog boxes. can i make a VI as a dialog without running the VI.
    Thanks in Advance
    Regards
    Soundarya
    Hi Soundarya,
    what do you mean? You can make a vi and use it as a dialog, but why should the vi not run?
    Mike
    Message Edited by MikeS81 on 07-07-2009 09:03 AM

  • Regarding Dialog Box

    hi, This is Akhila.
    I am a novice in Laview. I have a small doubt regarding Dialog Boxes
    Can I add a dialog box in the project same like adding a VI
                                       Thanks in Advance
    Regards,
    Akhila

    You can create a VI that works like a dialog box. See the shipping examples for some examples on dialog boxes. You can also convert an Express VI dialog to a regular VI and save it as your own. See the Help on converting Express VIs to regular VIs.

  • Any way to see ICONS in Open and Close Dialog boxes?

    Is there any way to see ICONS in Open and Close Dialog boxes, instead of just lists of items names?
    I know you can preview one at a time, but I'd love to see all my artwork as picture icons, just as you can in a finder window.
    Windows does this, but not OSX that I know of. Is there a third party app that enables you to see icon view in the Open and Close Dialogs?

    Thank you Steve Jobs. I guess that feature has been added in Leopard. Now there really is nothing that I'll miss from Windoze.

  • Open dialog box....

    Hi Everyone,
    I have designed a form in which user has to input the path where he wants to save his report.
    Like c:\test.PDF
    what i want to do is that when user click a button againts this field a dialog box should appear in which he can select the location, like in Notepad File > Open or File Save.
    and after selecting the path and closing the box the path should be display in the text field which i have provid to my user. Is it possible to attach the default file extension automatically in the text box?
    like if user have written c:\test it should be automatically converted into c:\test.PDF? Any Idea?
    How is this posible in Developer 6i. I will be very thankful if someone can help me solving this problem.
    Regards,
    Imran

    use GET_FILE_NAME - it's documented in the help - client server only

Maybe you are looking for

  • J2RE + Windows + J2SE Adapter Engine = Dump Xmx128m

    Hi, I want to use a decentralized J2SE Adapter Engine in order to data to XI. When I install it on a Windows 2000 Professional, AE running is good and all are perfect... But when I install it on a Windows Server 2003, I have the following dump when I

  • Error when adding Spry Tooltip to page with footer library

    I'm using Dreamweaver CS4 and the Spry menu to apply widgets. I was able to create a brand new page, import an image, and apply the Spry Tooltip widget successfully (as well as edit the CSS etc.). But I run into problems when I applied it to an image

  • How lot take log backup using script in HANA

    We have SAP HANA SPS09. 1) We are using script provided by SAP Note#1651055 to take the data backup.But it seems it is not taking log backup.HOw can we schedule logbackup ? or we have to use DBACOCKPIT or Studio only? 2) My DB is log_mode OVERWRITE.I

  • Wireless keyboard and Wireless Mighty Mouse failure

    Hello, I have just bought an iMac 20" with a wireless keyboard and wireless mighty mouse. Both the keyboard and mouse will not work properly. I followed the installation/setup instructions and paired first the keyboard and then mouse. Then the proble

  • Feature Suggestion - Playing Unplayed Podcasts

    With several different Podcast subscriptions and multiple episodes per, it would definitely be nice to click the play button on the "Podcasts" menu option and play all unplayed Podcasts. I find I have to use a smart playlist for unplayed Podcasts to