JOptionPane.showConfirmDialog requires two key strokes with Java SE 6.

I have been using the following line of code:
rc = JOptionPane.showConfirmDialog( comp, objects, "Warning",
JOptionPane.YES_NO_OPTION,
JOptionPane.INFORMATION_MESSAGE);
with no problems with plug-in 1.4 and 1.5. Now with 1.6, when I choose Yes/No/Cancel, the first time I press the button nothing happens, the second time I press the button the action takes place.
I have been searching for information on this and have not found any known issues (yet). Does anyone have any ideas?

further investigation shows that this only happens when the component is a JComboBox. I found a new bug that seems to be the same issue:
http://bugs.sun.com./bugdatabase/view_bug.do?bug_id=6817939
When calling JOptionPane.showConfirmDialog from an ActionListener called by a JComboBox, there is 2 issues:
* the focus is not given to the confirm dialog

Similar Messages

  • Trying to save key strokes with a for loop

    I have been trying to action script for years with no
    success. I to some time off and learned javascript and some oop
    (ruby) so I thought I would take another stab at it. I am still
    having problems. Here goes...
    I have several movieclips on the stage that will be set up as
    buttons. They all have the same effects associated with mouseover
    and mouseout so I thought I could save some key strokes with a for
    loop. But I can't get it working right. Could someone tell me what
    I am doing wrong please?
    If anyone can help it would be appreciated.

    kglad,
    Thanks for taking a look. In answer to your question. The
    movie clip instance names are mc_ItemText0 ... mc_ItemText3.
    quote:
    those declarations at the top of your for-loop aren't doing
    anything useful. what are the names of you movieclips that are
    on-stage?
    In reg\ards to the variable declarations, sorry my variable
    names are causing confusion. I use the name "mc" for two different
    variables. Once for the FOR loop and a separate time locally in the
    functions grow and shrink. The ones set for the For loop are used
    in the 'onEvents' at the bottom of the script. Sorry for the
    confusion.
    Because the code works if I take it out of the FOR loop and
    replace the
    's with the numbers that corruspond to the movie clip; I don't
    think the similar names are conflicting because of the scope. To
    make the code more readable and eliminate confusion I have posted
    the code with unique variable names.
    I have searched the forum for FOR loop difficulties and
    found several cases that seemed similar to mine, but I didn't
    understand what was happening.
    Examples:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15&catid=288&threadid =1253110&highlight_key=y&keyword1=for%20loop
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15&catid=288&threadid =1202338&highlight_key=y&keyword1=for%20loop
    My code with unique variable names to end confusion:

  • Read "Qualified Range Key Generation" with Java API.

    Hi guru,
    I use MDM 5.5 SP6.
    In MDM Console I read Qualified Range Key Generation it in "ADMIN -> Remote Systems -> Qualified Range".
    I have to get "Qualified Range Key Generation" with Java API.
    It's possible?

    Hi Rocco,
    I am also thinking  of same scenario.I thought it is possible in Java Apis by calling the webservices for MDM.there is a service of "get key mapping" where we can pass this "Qualified key range" as  parameter.In MDM we have to define a look up table for that key ranges .We will access that table through JAVA API and then link it with the key mapping service .
    If u find any solution to apply this ,please share.
    thanks and regards
    Ank

  • Trying to generate secure rpc key pairs with java

    I see a couple of different classes that will generate public private key pairs in various algorithms for me but it doesn't appear that I can supply a pass phrase to use with these.
    I want to write java code that will create a NIS+ secureRPC key pair for me.
    thanks.

    See now this is a really good question. I don't have an answer, but I really like seeing these types of questions here

  • Two keys swapped with Logitech keyboard

    Hi,
    I am using a Logitech PC keyboard (dinovo). It works fine except for the fact that the keys for °^ and >< are swapped. This was the way with earlier versions of Mac OS and I recently read a review of a new logitech keyboard in a computer magazine and they mentioned the same problem.
    Is there a way to fix this? All other external keyboards work fine. I also have a USB PC keyboard. No problem.
    It would be great if there was a solution.
    Thanks!

    Yeah, because the Logitech one is a kernel extension and a preference pane, so it cannot run under Rosetta. Logitech's site does say that they are working on an Intel version, but it'll probably be a while before it sees the light of day.

  • Problem with Java and Windows (Mainly Vista and UAC)

    Hi all,
    I am having a problem with a program that I've devoloped. The program itself is packaged as a jar and I plan to deploy it across multiple platforms eventually however right now i am only concerned about windows based systems. I have made an installer for a windows baised systems using NSIS to install the software files. I made the installer as I need several java packages to be installed so the program would work (JAI, J3D, JAI ImageIO) and I also require the program to have fileassociations on windows.
    I know that this is not what java is about, however the majority of the users will be on windows baised systems so I've decided that OS specific installers is the best option.
    During the process I have noticed that there are several key problem with java for this type of application!
    The first issue that I have come across is getting file associations to work on java. As a .jar is not an excutable it is not possible to directly associate a filetype with it in java so to overcome this I currently run the program from a .bat files and also the program requires large memory so this also allows me to run the program with -xmx. The batch file that I use is :
    <code>
    cd PATH TO PROGRAM
    start javaw -Dsun.java2d.noddraw=true -Xmn100M -Xms500M -Xmx1000M -jar "PATH TO PROGRAM\program.jar" %1 -vram 134217728
    pause;
    </code>
    Ok so all this appears to work fine and allows windows to have file associations and start the program and thats all works perfectly but this is a non-ideal solution. Has anyone got any advice on improving this?
    The next problem that I have appears to be a problem with Vista and UAC (user access control). When a user installs the program and installs the program into the program files directory I found that the program did not work and kept saying that I did not have access to the files in the current directory. This is a problem as I read and write settings files during program execution.
    On a Vista system UAC prevents file write operations into the Program Files directory unless the program has requested elevated status even if the user is a full administrator. The probem is that there appears to be no real way to achieve this under java that I'm aware of...
    Has anyone else had this probem and has a suitable solution?
    Any advice on these issues would realy be appricated.
    Regards
    Joey

    Ok so i've kinda found a solution, its not ideal but its very good. I found this program called Elevate
    A link to the site I got it was
    http://www.wintellect.com/cs/blogs/jrobbins/archive/2007/03/27/elevate-a-process-at-the-command-line-in-vista.aspx
    This program allows you start java with a UAC dialog for high access using
    Elevate java -jar myjar.jar
    This then allows you to have full access using java... I guess it could be dangerous but it does the job.

  • Combine two reports in query designer using key figure with sap exit

    Hi experts,
    i want to combine two reports in query designer using key figure with sap exit
    in the report 1 key figure calculation based on the open on key date(0P_DATE_OPEN)
    to calculate due and not due in two columns
    in report 2 key figure calculate in the time zones using given in variable Grid Width (0DPM_BV0) like due in 1 to 30 days, 31 to 60 days...the due amount based on the open on key date(0P_DATE_OPEN)
    to calculate in 1-30, 31-60, 61-90, 91-120, 121-150 and >150 days in 6 columns
    now i have requirement like this
    not due, 1-30, 31-60, >60, due,1-30, 31-60, >60 in 8 columns
    or
    not due, due, 1-30, 31-60, 61-90, 91-120, 121-150 and >150 in 8 col
    thank you

    Hi Dirk,
    you perhaps know my requirement,
    for the management to make used in one report,
    we have in reporting finacials Ehp3.
    Vendor Due Date Analysis - which show due, not due
    Vendor Overdue Analysis - show only due and analysis in time grid frame
    i want to combine in one report that show NOT DUE, DUE, DUE time frames in grid.
    krish...

  • Can I open with a single key stroke my events?

    Can I close and open with a single key stroke my events (Film rolls). They are all open when viewing the Library Photos. I would like to be able to close them all and just see the title of each event sometimes rather than scroll all the pictures. Iphoto 08

    Bring up iPhoto's help file and search for "keyboard shortcuts".
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier versions) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. There are versions that are compatible with iPhoto 5, 6, 7 and 8 libraries and Tiger and Leopard. Just put the application in the Dock and click on it whenever you want to backup the dB file. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    NOTE: The new rebuild option in iPhoto 09 (v. 8.0.2), Rebuild the iPhoto Library Database from automatic backup" makes this tip obsolete.

  • My apps require two taps to open. How can i open them with one tap

    My apps require two taps to open on my Ipad.  How can I set them to open with just a single tap?  Originally it took just one tap.

    Turn off VoiceOver
    1. Press the Home button
    2. Tap Settings.
    3. Then double-tap Settings.
    4. Tap General.
    5. Then double-tap General.
    6. Use three fingers on the screen to scroll to Accessibility
    7. Tap Accessibility.
    8. Then double-tap Accessibility
    9. Tap VoiceOver
    10. Then double-tap VoiceOver.
    11. Tap "On" next to VoiceOver
    12. Then double-tap "On" to turn it off.

  • Is there a way to create/edit registry keys with Java?

    I'm writing a console app and I'd like to have it so the users can change values in the registry. I'm not just talking about app keys I want any key. Is there a way to do this with Java?

    Maybe a forum search on "Windows registry" would turn up some useful things. You're not the first to ask this. You might save yourself and everyone else some time if you'd simply do that.

  • My G5 won't boot up. The Gray screen comes on and it thinks about it until the fan revs up like it is about to explode. A friend said to start it up with the OS disk and then go to utilities. Didin't work. Any suggestions? Isn't there a key stroke to help

    Oh, so this is where I ask my question. Sorry, first time here. As I was saying in my long intro, the gray screen come up and the thing is spinning at the bottom, but nothing happens. Then the fan starts reving up like it is about to explode and I have to manually shut it off. A friend told me to start it up with the OS disk and then go to utilities. I couldn't find the thing, so I went out and bought another. Needless to say, it didn't work. Is there a key stroke to help jump start the machine? How can I get into this thing? I would prefer not to take it in because there are a lot of things on there I don't want just anyone to have access to.Thanks, in advance, for your help!

    The last time you had to hold down cmd opt pr more than twice was a decade ago....
    G5? PowerPC? 10.5? or earlier....
    https://discussions.apple.com/community/desktop_computers/power_mac?view=discuss ions
    Apple has a number of resources like "Power or Startup Quick Assist"
    http://support.apple.com/kb/HT1149
    Your drive does need to be repaired, and best things to buy are another backup recovery drive, with a small OS X partition; a copy of Disk Warrior is expensive @ $90 but excellent and best.
    Never bother with or use the drive or reinstall while there are errors. Don't take a "clean' bill from Apple Disk Utility to mean there are no errors. Only that it didn't find what it looked for.
    http://www.macintouch.com/readerreports/harddrives/topic4557.html#d12aug2010
    http://www.alsoft.com/DiskWarrior/index.html
    A quick search "keyboard shortcuts" takes you here:
    http://support.apple.com/kb/HT1343
    how to resolve and fix startup issues with fsck and disk utility:
    http://support.apple.com/kb/TS1417
    http://macperformanceguide.com/Mac-HowToClone-backup.html
    http://macperformanceguide.com/Mac-HowToClone.html
    How to use DU to backup and restore
    http://support.apple.com/kb/HT1553
    http://www.alsoft.com/DiskWarrior/index.html
    http://www.bombich.com/ccc_features.html
    Make sure to have multiple backup sets and of your system so if there is a serious problem, you can just erase and restore to be back runninig.
    Sounds like your G5 though needs PMU reset, not PRAM, and the best way for those is to clear nvram instead. might even want to check for dust; tell what System Profile says (later) as to "PowerMacX,Y" or "MacProX,1"
    http://www.apple.com/support/powermac or /macpro
    http://www.apple.com/support/sitemap/
    The Utility menu is on the menu bar of an "OS X Install DVD" and at the point where you get to but stop at "install....' for OS X. you probably do need to install OS X on another drive to work from.
    Oh, a real severe issue and damage to the drive directory or filesystem CAN in cases prevent booting from DVD (the system still tries to find and see what boot volumes are present) and can help to pull or disconnect the drive. Putting a drive in a FW case to turn on after startup is very useful.

  • While dealing with an external hardware i got a Java update4 request,but was not able to complete that update.After that when i switch on my Mac it shows reinstallation required.i was working with OSX 10.8.5,but after reinstallation now it is 10.7.5 .

    While dealing with an external hardware i got a Java update4 request,but was not able to complete that update.After that when i switch on my Mac it shows reinstallation required.i was working with OSX 10.8.5,but after reinstallation now it is 10.7.5 .And while doing search for update it shows your software is uptodate..

    Hi Hal,
    One possibility, is a strange occurence when applying the big 10.5.8 combo, most people have to Repair Permissions twice in a row, then reboot.

  • Looking for answer keys for "Object First with Java"

    Where can I find a book with anwser keys for the book " Object First with Java" Third Edition?

    zxcvbnm wrote:
    Where can I find a book with anwser keys for the book " Object First with Java" Third Edition?This ought to be an interesting thread. :)

  • Deleting Safari Bookmark Favorites with one key stroke

    Just got a brand new MacBook Pro 15 in. with retina display...upon connecting to the WIFI that my old Toshiba laptop was connected to, my new Mac imported all this suff and filed it under my Safari Bookmark Favorites....I can delete them one by one, but it's too many to delete singularly. Is there a way to delete all that is in my Safari Favorites with one key stroke?

       Delete Safari .plist file.
       Quit all applications. Click on an empty spot on the desktop to activate Finder.
       Hold the “Option” key down and click the "Go" menu in the Finder menu bar.
       Select “Library” from the drop down.
       Library > Preferences >  com.apple.Safari.plist
       Right click it and select  "Move  to Trash".  Close Finder window.
       Please don’t empty the Trash.
       Restart. Launch Safari.
      Test Safari.  Try editting bookmarks
       If this doesn’t help;
       Put back the com.apple.Safari.plist
       Right click the Trash icon in the Dock and select “Open”
       Right click on the com.apple.Safari.plist and select “Put Back”.

  • How to Run sequencially two Key-Commit triggers with different scope

    Hi all
    I have two Key-Commit triggers at form and Block level. Form level trigger is inherited from a library. In block level trigger, I have some additional checks. What I want is, to execute the Block level trigger first and than the form level. I tried working with the override/Before/after property of triggers which does the job of sequencing execution but the Raise Form_Trigger_Failure in the block level trigger doesn't stop the execution of form level trigger. Block level trigger does the checks and display corresponding alerts but than the form level trigger also executes.
    I don't wanna copy the code from Form level trigger to the block level trigger as it is common to whole application and may need some additional coding/ bug fixing later.
    Any help would be appreciated.
    RMA

    Thanks for all the help.
    In Key-Commit trigger I am just setting the Blocks' properties, nothing special, the main checks are in On-Commit trigger. I also understand the work around by using a user defined trigger but, to my knowledge, Oracle doesn't recommend it.
    My form has two datablocks, Parent and a child. The entered quantity in the Master block needs to be verified against the Number of units entered in the child block. If they are not the same, I want the alert and stop execution.
    Now I am using Pre-Insert trigger in the master block but was a little surprised because of the sequencing behavior. My understanding was that RAISE FORM_TRIGGER_FAILURE stops execution of all the code after it even is it is in another trigger/procedure ..but now it appears that I was wrong :-(
    Any suggestions??
    RMA

Maybe you are looking for