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.

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

  • OK button not visible in popup dialog box.

    Hi,
    There is some problem with the popup dialog boxes that I am using. Sometimes I can see the OK button while sometimes it is not visible.
    Any clue regarding this odd behaviour?
    Many Thanks,
    Anagha

    HI everybody,
    I am also having similar error now.
    IN the standard Dialog box, I am not able to get the button, despite of doing everything properly.
    Please find the code used:
    IWDControllerInfo conInfo= wdThis.wdGetAPI().getControllerInfo();
                                  IWDEventHandlerInfo evntInfo = conInfo.findInEventHandlers("Ok");
                                  IWDConfirmationDialog confDialog =wdComponentAPI.getWindowManager().createConfirmationWindow("Please Enter a search Criteria", evntInfo , "OK");
                                  confDialog.setTitle("Confirmation Window");
                                  confDialog.open();
    I  have created the eventhanler.
    I tried all possible ways but nothing has resolved the issue.
    The only difference is that I need to place this code in custom controller only.

  • How to display a screen as Popup Dialog box in Module Pool

    Hi All,
    I have a requirement to display a popup dialoge box into module pool.
    i need to display a screen as a popup on the current screen on a button click.I have developed a screen and in atribute tab i have defined the screen type as modal dialog box but  it is displaying previous screen screen is hide i want to display on the same screen as a popup.
    Thanks
    Narendra

    Hi Narendra,
    Try to trigger the popup once it is done with the previous action might be anything.
    i have shown one sample code where after i click on save button when the data is saved successfully
    after that it has to trigger me a popup asking for conformation for the next action.
    A small piece of code
    INSERT INTO ZORMD1 VALUES WA_ZORMD1.
        IF SY-SUBRC = 0.
          G_LOCAL1 = 0.
          MESSAGE S000.  " Data saved successfully and immediately call the popup
    CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
            EXPORTING
      DEFAULTOPTION  = 'Y'
    TEXTLINE1 = 'SUCCESSFULLY SAVED'
              TITEL = 'POPUP FOR conformation'
             START_COLUMN         = 25
             START_ROW            = 10
            CANCEL_DISPLAY       = 'X'
           IMPORTING
    ANSWER  = G_PRINT
    IF G_PRINT = 'J'.
    PERFORM PRINT_OUT.
    ENDIF.
    Do the modification according to your requirement.
    Cheers!!
    VEnk@

  • Any way to apply "chapter markers" in uninterrupted playback (without popup dialog box) ?

    Long story short: I hate the default marker color of olive green, especially since my current project is shot in nature so they are essentially visually invisible when I look at the timeline with thumbnails on. So it'd be nice to use chapter markers (I've given them a hotkey) since they're vibrant red. But when I use the keystroke, the marker options popup dialog box appears. Is it possible to disable the popup?
    I use markers by adding them on the fly while watching all raw footage stringed together in a dedicated timeline (to quickly weed out select takes). This is a somewhat common technique amongst editors who learned from old "film" film editors (they did the same with workprints & a grease pencil). Currently I'm having to press "D" to select the current clip playing, and then press "M" (custom hotkey) to mark the take. It'd be nice to do so in a single button push… anyone know of such a way?
    Of course, just letting us change the marker colors would be nice too. Btw, I already did feature requests for these.
    This issue alone causes me to just do projects in FCP7 still. I'm trying to finally fully transition to Premiere Pro with this one, but this marker thing is killing me... Adobe peoples if you're reading this.

    Hi Ann, thanks for the suggestions. As with a lot of editors, having just the video head displayed occupies every clip's duration when looking at a long timeline. And dealing with the chapter marker popup is a huge speedbump when we're talking about literally dozens of markers.
    I posted my questions as a shot in the dark, assuming there was a 99.9% chance that there's no solution in Premiere, but I appreciate your info.

  • Automatically click OK or close LabVIEW popup dialog box

    I am able to automate user actions on any front panels within the project by modifying its values (signaling) through VI References, but I can't figure out how to access a popup dialog box to automatically close it or click OK.
    Is there a way to do this without replacing all LabVIEW built-in dialog box calls with a custom one?

    Just curious, why automate user interactions? Why not have a "mode" you are in. If it's a user interaction mode, you do what the user chooses. If it's not set in user interaction mode, you just use a state machine to go to the next step, and you don't show the dialog.
    My suggestion here seems much simpler then having value signaling propery nodes all over the block diagram.
    CLA, LabVIEW Versions 2010-2013

  • Message Popup dialog box - "Value invalid or out of range"

    Hi
    From time to time I get an error when trying to display Message Popup dialog boxes. The error appears sporadically and always disappears when I restart TestStand. This happens for all Message Popup dialog boxex (TS standard box).
    The error is "Value invalid or out of range". I get no clues as to why this occurs.
    Any ideas?
    TestStand 2010 SP1 running on Windows 7 64bit.
    Attachments:
    Untitled.png ‏29 KB

    Can you provide the sequence containing that step?
    Without seeing the parameters, its quite hard to give you some hints where to look....
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Help me out with a simple dialog box task

    i have used a single dialog box connected to a case structure..but the problem is it only executes true case after pressing "OK" button.
    i need the false case to keep on executing untill "OK" button is pressed.. please heelp me out..

    I agree that the spamming of the same question over and over is annoying and makes me LESS likely to help you. However, I will try to answer you.
    I believe that you are probably fairly new to LabVIEW. LabVIEW is a dataflow language. As such, each node operates as soon as all of its nodes have data. Your One Button Dialog Box does not produce data until the button is pressed. Therefore, there is no way for the Case structure to execute either the True or the False case until the One Button Dialog Box produces its data.
    So, there are several ways to work with this. Several have already been suggest in this or one of the other 3 queries.
    You could place the button on the front panel. If it is on the front panel, it will be read immediately and the value of the button will be available. If it is inside of the loop, the value will be available each time the loop is run. So the suggestion to use a button on the front panel would be a good one.
    If you need to use the dialog box, you could use a producer-consumer architecture. The dialog would be in the producer and the case code would be in the consumer. I think that this is not as good of a solution, but if this is part of a larger application it may be desirable to you for other reasons. There is an example producer-consumer that you can find in the example finder and I think that there is a template for one as well.
    There are other ways to do this as well, but they get more and more complicated and I don't think you have the experience necessary to accomplish them. I also don't think you need to make things that complicated for such a simple task.
    Good luck and try not to duplicate questions again.
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • Problem With File Download Dialog Box

    Hi all,
    I have jsp page that allows a user to export oracle data to excel.
    I have these code in my page:
    <%@ page contentType="application/vnd.ms-excel" %>
    response.setContentType ("application/vnd.ms-excel");
    response.setHeader ("Content Disposition",
    "filename=\"historicalrate.xls\"");
    I run the page and it popups a file download dialog box with Open and Save buttons.
    When I click the Save button a Save As window opens with a hr.xsl file name and Microsoft Excel Workbook(*.xls) as save type. It is what I want.
    The problem I have is when I click the Open button on the file download dialog box it displays data in excel format on a browser well. Then I click File > save as on browser's tool bar the Save As window pop up with no file name and a default Text(tab delimited)(*.txt).
    I need the file name and Microsoft Excel Workbook(*.xls) as default save type.
    Any help would be greatly appreciated.
    Please help
    Thanks

    I have the same problem with hui_ling.
    When user click on "Open", Excel start and open excel file correctly but the file name on excel title bar. 'Cause the file name is in Japanese characters. Any one can help me?
    Message was edited by:
    TNTVN

  • How do I stop Yahoo mail's popup dialog box from changing the tab focus?

    Hi,
    When I have a tab opened to Yahoo mail and I open a Yahoo email on my other computer or Blackberry, there's a time delay and at some point, Yahoo shifts my browser focus to display a pop-up dialog box that says "You have been disconnected from chat because you have signed into Yahoo! Messenger from another computer." I can't even switch back to the tab I was on without dismissing the popup.
    I'd love it if I could turn off the pop-up, - don't care about the disconnection - but in the meantime, is there some way to prevent Yahoo from changing my tab focus?
    Thanks!

    Hi Douglass,
    You will need to navigate to the following folder.
    /Users/yourusername/Library/Mail/V2/MailData
    and backup the following file... MessageRules.plist
    Open the file in BBedit to confirm your rules are infact inside that particular plist file as Mail will also create backups occasionally.
    Once you reinstall, do a compare/replace with the newly created MessageRules.plist and you should be able to bring your "old" rules into your fresh install.
    as for mailboxes, those are contained within this folder
    /Users/yourusername/Library/Mail/V2/Mailboxes
    and it will be up to you to backup those files and File/Import Mailboxes them into the new install.

  • 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

  • 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.

  • Having a little trouble with the "export" dialog box

    Hi all,
    When I get to the export dialog box, I'm not able to type directly in the "Custom Name" space.  I have to click around and fiddle with some of the drop-down menus (and then get back to the "name format" that I like) and only then can I triple-click or backspace on the former name and input a new name in the "Custom Name" blank.
    Also, the "Export Versions" tab is highlighted, but hitting the "return" key doesn't make the export happen.  I have to mouse up to that button and click it that way.
    Is anyone else having any trouble with inputting information on the export page?  And ideas?
    Thanks as always.

    Yes, the name format is Custom Name with Index.  But when I click in the field, I can't edit it.
    Mark,
    For me, this preset is working well. Have you checked, if the preset for  "Custom Name with Index" correct?  You can verify it, by setting the "File Naming" format to "Edit". The preset should look like this:
    I'd try to edit the preset, save it, and edit it back, to create a new preset file.
    If that does not help, remove the user Aperture User Preferences, as described in this document:  Aperture 3: Troubleshooting Basics
    And as I said, hitting "return" doesn't start the export.
    That also your "Export" button is not responding to return, even if it is highlighted in blue, is a sign, that your preferences file might have a problem.
    Regards
    Léonie

  • Connect button in excel does not respond with server connection dialog box

    Hi all,
    I have installed Essbase 11.1.1 spreadsheet client and when I try to connect to the server from the excel add in using Essbase->Connect option, the "Essbase System Login" dialog box does not pop up. Also no error messages are displayed.
    OS is Windows XP and windows 2000 and excel version is 2000 and 2003
    I tried out with various options in essbase and in excel but nothing worked.
    Can anyone help me in this regard.
    Thanks,
    Raja

    Hi all,
    I have installed Essbase 11.1.1 spreadsheet client and when I try to connect to the server from the excel add in using Essbase->Connect option, the "Essbase System Login" dialog box does not pop up. Also no error messages are displayed.
    OS is Windows XP and windows 2000 and excel version is 2000 and 2003
    I tried out with various options in essbase and in excel but nothing worked.
    Can anyone help me in this regard.
    Thanks,
    Raja

  • Upon install the new version of Firefox with AOL, a dialog box comes up with no words and firefox is unresponsive

    As I try to close, a dialog box suggests that Firefox is waiting for a response. This problem started happening when you added AOL to the install. I already use AOL and I assume there is some sort of conflict. I want a Firefox without AOL. That will likely solve my problem.

    I think it is a problem with an AOL add-on.Could you try starting Firefox in its Safe Mode as a test, and also see whether it can be removed there?
    ''If Firefox is not running:'' Hold down the Shift key when launching Firefox.
    ''If Firefox is running and you can access the menu:'' Either:
    * "3-bar" menu button > "?" button > Restart with Add-ons Disabled
    * Help menu > Restart with Add-ons Disabled
    and give Firefox the OK to restart.
    ''Both Scenarios:'' A small dialog should appear. Click "Start in Safe Mode" (''not'' Reset).
    Any difference?
    Earlier threads:
    * [https://support.mozilla.org/questions/1050657 Installing, firefox, I end up with a panel and a checkbox that blocks everything]
    * [https://support.mozilla.org/questions/1051071 how do I get rid of this pop up ?]

Maybe you are looking for

  • LiveDrvPack.exe (SBLW-XPWEB-W3-

    Hello: I've recently updated my computer's OS to Win 2000 Professional and need to update a variety of drivers for hardware and update software. I think that I need to add which was apparently on the Creative Labs site at one point (July of 2002?)--b

  • Lumia 520 "Remote wipe of user data via Internet"

    I'm interested in purchasing a Lumia 520 and read on the spec site that it can do "Remote wipe of user data via Internet" (http://www.nokia.com/in-en/phones/phone/lumia-520/specifications/). Is there any special software that I need to be able to do

  • My embedded Jotforms are not displaying on iOS devices

    Just checking to see if anyone else has run into this issue. My embedded Jotforms display fine on desktop and Android devices, not any iOS devises. Perhaps I missed a step somewhere? Rentaleez - New Listing Form

  • Problem with Illustrator CS3 transform tool

    When I draw an object in Illustrator, for example a rectangle, then use the transform Height & Width boxes in the options bar to resize the rectangle into a square, the resulting square will not reflect the original size I wanted. For example: the or

  • Please can someone help me! got new ipod but need to copy my itunes onto it

    ipod mini broke, apple sent me a new one with a new seril number! i need to copy all of my itunes onto it without clearing the itunes when i pulg it in! please can someone help me! i realy need help! thanks alot xxxxxxxxxxxxx