Accelerator keys temporarily unavailable after changin JMenuBar objects
We have an application that needs to toggle between two different JMenuBar objects depending on what the user is doing. So our primary window constructs the two menus, stores both, and switches which one it is using with setJMenuBar.
The problem is that, on Windows, the first time we switch menus, all the accelerator keys stop working until the user takes a mouse action in the frame somewhere. If the user operates any widget (like a menu item or button), or even opens a menu but doesn't click anything, all the accelerators suddenly become available.
Actions that DO cause the accelerators to become available:
- A mouse click on a widget inside this frame (as long as the click is not entirely consumed by an internal element)
- Resizing the window
- Minimizing / restoring the window
- Switching to another application and back
- Simulating any such mouse click with a Robot
Actions that DON'T cause the accelerators to become available:
- Mouse Moves
- Clicks on internal widgets that implement MouseListener
- Programmatically operating widgets with doClick(), even if clicking on that widget would re-enable the accelerators
NOTE: this seems to only affect Windows. I haven't tried it on Linux yet, but the bug does not affect Mac OS X, so it doesn't look like I'm doing anything explicitly wrong when I switch menu bars.
Has anyone else seen this, or can you suggest a fix or workaround? My current workaround is to simulate a click on the menu bar with a Robot after the first time we switch menu bars. But that's terribly kludgy and I'd like to find a better solution.
Thanks,
Evan
Edited by: IdahoEv on Jun 21, 2009 4:15 PM
Edited by: IdahoEv on Jun 21, 2009 4:16 PM
Has anyone else seen this,No.
If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area.
Similar Messages
-
My Itunes on my laptop will no longer sync any podcasts or audiobooks to my mini Ipad, and my Ipod as well. After I sync and try to play a podcast on both I get the following podcast is temporarily unavailable! I can downld on ipad and it works, I just did a disagnostics check, and I get there error Secure Link to Itunes has failed? *** over >? anyone thank you
Upgrade to Snow Leopard - it's compatible with the latest version of iTunes, and still supports PowerPC applications.
$19.99 - http://store.apple.com/us/product/MC573Z/A/mac-os-x-106-snow-leopard
Snow Leopard is required if you wanted to upgrade to Lion, anyway, which you may want to in the future if the latest version of iTunes no longer supports Snow Leopard. -
I am trying to update my Iphone 3 and when i get to the activation step after a few minutes it shows a message that says " Your iPhone could not be activated because the activation server is temporarily unavailable. Try conenecting your iPhone to iTunes to activate it, or try again in a couple of minutes.
If the problem persist, contact apple support at apple.com/support
I been trying for a few times now and I keep getting the same message. How can i fix it? now my phone doesnt work.These are the steps mentioned in the article iPhone: Troubleshooting activation issues
Perform the following steps if you receive one of the messages above:
Restart the iPhone.
Try another means of reaching the activation server and attempt to activate.
Try connecting to a known-good Wi-Fi network if you're unable to activate using a cellular data connection.
Try connecting to iTunes if you're unable to activate using Wi-Fi.
Restore the iPhone.
If you receive an alert message when you attempt to activate your iPhone, try to place the iPhone in recovery mode and perform a restore. If you're still unable to complete the setup assistant due to an activation error, contact Apple for assistance. -
I updated my Iphone 3gs to 6.1.3, after that m having this message:
"Your iPhone could not be activated because the activation server is temporarily unavailable."
"The SIM card inserted in this iPhone does not appear to be supported"
plz help me! what should i do now?You had a jailbreak and unlock.
When you updated you cooked it.
Your phone is done.
Time for a new one. -
I am running Mac OS 10.7.3 Server on Mac Pro 2 x 2.66 GHz 6-Core Intel Xeon with multiple users editing on Avid.
DMG's containing raw camera footage are stored on the server, mounted by connected users on their desktops to allow Avid to access the enclosed data within the DMG's. Recently we've started encountering a problem opening the DMG's after they've recently been opened and closed. After opening and closing a DMG. when we try to open it again from the same user/connected computer or any other user/computer we see an error message saying "The following disk images couldn't be opened" NAME OF DMG "Resource temporarily unavailable". This happened to several users with several DMG's.
We have since restarted the server, which appeared to fix the problem for about a week and now we are having the same issue again.
The only changes made recently have been an update to version 4.2 of our ISIS 5000 which all of the Avid systems edit off of, but I don't beleive that to be the cause of the DMG opening issue. I suspect it might be caused by the Pram still thinking that the DMG's are open when they've already been closed.
Not sure if this is relevant, but we had been running only Mac OS 10.7 systems connected to the server but within the last few months we've been adding several more systems including those with OS 10.8.
Has anyone else encountered this issue? Does anyone know the fix to this problem?
Thanks for any and all help!Also, we have been able to copy the DMGs to desktops and external drives, which normally would not be possible when a DMG is currently open by another user which is the standard situation in which a DMG would say "Resource Temporarily Unavailable".
After copying to another location, they open normally so we believe it is an issue isolated to the server itself.
Thanks! -
After update and restore i am getting a message like ,Your iphone could not be activated because the activation server is temporarily unavailable.also i am getting no service message and also connected to wifi
mine is and before what the other guy wrote, it said your iphone could not be activated because we could not reach the server
-
"Your iPhone could not be activated because the activation server is temporarily unavailable." this massage showing after i update through itune
See this discussion.
https://discussions.apple.com/message/21189708 -
My wi-fi connection is good & i want restore my iphone.But a massage flash after few min-iPhone could not be activated because the activation server is temporarily unavailable." SIM is in searching mode. What i can do.?
You had a jailbreak and unlock.
When you updated you cooked it.
Your phone is done.
Time for a new one. -
I published earlier yesterday, and it worked fine. Now, after adding a few attachments and links to an event, it takes forever to load, and then says "your online iCal is temporarily unavailable". Any answers?
Hi dr.dara and welcome to the iweb discussion forum,
we often see this problem on the forum and the only answer we can give is that you might have something in front of the nav bar. Something like a textbox or a shape.
Sometimes emptying the Cache of the browser helps resolving this kind of problems.
What happens if you click on the nav bar in iWeb itself?
If you can't find anything could you provide us your link?
Regards,
Cédric -
am using iphone 3gs and updated it to ios 6.1.3, after this when i restar the phone and put the sim back it said that your phone cant be avtivated because the server is temporarily unavailable, my sim is also undetected. what should i do now please help.
If your iPhone was hacked/jailbroken to use a different carrier then the update locks it back again to the original carrier.
-
Hi, anyone can help me? I can't activated my ip4 after restored n updated and it's showed activation server is temporarily unavailable and the device can't read my SIM card,can someone please help me....thanks
It is 99% hacked/jailbroken iPhone to use a different carrier than intended. You have to put the sim from the original carrier or ask them to unlock the iPhone. We as well as Apple cannot help you with this.
-
after downloading i-clouds I keep receiving a no service message and phone could not be activated because the activation server is temporarily unavailable.
I have read several questions on this but dont see a solution.Activation requires a SIM, assuming the SIM is functional it should simply activate.
The vast majority of activation issues are the result of devices that have been hacked or jailbroken. If that is the case, no support can be provided here. -
After updating my iPod touch, it got mutated. While updating it thru itunes it is asking to update the iPod. However when i try to update the message comes your iPod touch could not be activated because activation server is temporarily unavailable. Try connecting your iPod touch to iTunes to activate it, or try again in a couple of minutes. If this problem persists, contact Apple support at apple.com/support". I am trying to resolve this for many weeks now dont have any idea where to seek help from. Really appreciate a quick response from anyone.
Thanks.Try:
- Powering off and then back on your router.
- iTunes for Windows: iTunes cannot contact the iPhone, iPad, or iPod software update server
- Change the DNS to either Google's or Open DNS servers
Public DNS — Google Developers
OpenDNS IP Addresses
- For one user uninstalling/reinstalling iTunes resolved the problem
- Try on another computer/network
- Wait if it is an Apple problem
However, Apple does not report any problems
http://www.apple.com/support/systemstatus/ -
after installing new software for i phone it give me statement your phone could not be activated because activation serer is temporarily unavailable what should i do ???
Usually this is because the activation server is temporarily unavailable. Try again in 20 minutes or so.
-
Hi , I have tried to download a paid app on my new ipad ,the response pop out as: payment is temporarily unavailable .please try later". Since then I was not
able to download any free app , as the same response continues pop out . I have already update ny billing address as advise by the apple itune supportFOR ASSISTANCE WITH ORDERS - iTUNES STORE CUSTOMER SERVICE
For assistance with billing questions or other order inquiries, please refer to our online support page by clicking here: http://www.apple.com/support/itunes/store/. If you cannot find the answers you are seeking in our robust knowledge base, you can contact us by visiting the following URL http://www.apple.com/support/itunes/store/, clicking on the appropriate Customer Service topic, then using the contact button or email form at the bottom of the page. Responses to emails will be provided as soon as possible.
Phone: 800-275-2273 How to reach a live person: Press 0 four times
Hours of Operation: Mon-Fri: 9am-5pm ET
Email: [email protected]
How to report an issue with Your iTunes Store purchase
http://support.apple.com/kb/HT1933
How to Get a Refund from the App Store
http://gizmodo.com/5886683/how-to-get-a-refund-from-the-app-store
Cheers, Tom
Maybe you are looking for
-
One of our users is having trouble with Excel 2010. When she makes changes to a spread sheet that is used to track engineering project she often finds that entire rows in the spread sheet have been duplicated the next time she opens the spread sheet.
-
Hi everyone, I hope you could help me with some issue. I have an old VS2005 web application that export a data from SQL database and can be downloaded in excel format. it is working fine in IE 8 even the file size is as big as 25mb. but after upgradi
-
Video is not transferring from my digital camera sony t100 to my zen visio
hello there i put everthing on the topic any answer please ?
-
After an iphoto update, half of my thumbnails went blank. How do I get them to reappear?
-
Function or trigger to calculate cost
Hi, I have a question regarding a function or trigger. Not sure what to use. I have the following table: CREATE TABLE STAY_LOG LOGID NUMBER(4) NOT NULL, FLIGHTID NUMBER(5), ARRIVALDATE DATE, DEPARTUREDATE DATE, COST NUMBER(6)