Go Back   The macosxhints Forums > Working with OS X > OS X Developer



Reply
 
Thread Tools Rate Thread Display Modes
Old 08-01-2008, 12:07 AM   #1
boxidilshan
Prospect
 
Join Date: Jul 2008
Posts: 4
Mac menu problem (Java Swing)

I have an issue with the mac menu bar. My application is developed by swing and the issue is with the swing JMenuBar. There are two levels(submenus) in the JemnuBar. Once I focus on the first menu link it slides and it displays the second menu(this is the normal behavior). But when I CLICK on the first menu it result in disappearing the menu without sliding to the second menu. But this work fine in windows. Is there any reason for this?

Thank You
boxidilshan is offline   Reply With Quote
Old 08-18-2008, 06:02 AM   #2
boxidilshan
Prospect
 
Join Date: Jul 2008
Posts: 4
And also this happens only when I use the mac menu bar. When I use System.setProperty("apple.laf.useScreenMenuBar", "true"). In other occasions it works fine.
boxidilshan is offline   Reply With Quote
Old 08-18-2008, 07:33 AM   #3
hayne
Site Admin
 
Join Date: Jan 2002
Location: Montreal
Posts: 32,459
It isn't clear from your description what is happening.
Maybe it will clarify things if you answer this question:
Do you see the same behaviour (with the menus) in a native OS X application? (e.g. in the Edit menu of Safari)
__________________
hayne.net/macosx.html
hayne is offline   Reply With Quote
Old 08-20-2008, 06:45 AM   #4
boxidilshan
Prospect
 
Join Date: Jul 2008
Posts: 4
In safari there are 2 sub menus in Edit menu as "Find" and "spellings and grammar". If you click on those links itself it will not disappear. After clicking multiple times it may disappear. But in my swing application it disappear as soon as I click on such links. This behavior is not seen in windows. In windows it does not disappear at all. And also it happens when I use the mac screen menu bar. If I use the menu bar within my JFrame it does not reproduce. It works fine.

Thank you
boxidilshan is offline   Reply With Quote
Old 08-20-2008, 07:59 AM   #5
hayne
Site Admin
 
Join Date: Jan 2002
Location: Montreal
Posts: 32,459
Quote:
Originally Posted by boxidilshan
In safari there are 2 sub menus in Edit menu as "Find" and "spellings and grammar". If you click on those links itself it will not disappear. After clicking multiple times it may disappear. But in my swing application it disappear as soon as I click on such links.

That sounds wrong - that it disappears upon one click. Consider filing a bug with Apple against its Java implementation.

Quote:
This behavior is not seen in windows. In windows it does not disappear at all.

The behaviour in Windows is not relevant - what you want is for it to behave like a native OS X application - no matter what Windows does.
__________________
hayne.net/macosx.html
hayne is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 11:11 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.