|
|
#1 |
|
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 |
|
|
|
|
|
#2 |
|
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.
|
|
|
|
|
|
#3 |
|
Site Admin
Join Date: Jan 2002
Location: Montreal
Posts: 31,938
|
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 |
|
|
|
|
|
#4 |
|
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 |
|
|
|
|
|
#5 | ||||||||||||||||||||||||||||||||||||||||||
|
Site Admin
Join Date: Jan 2002
Location: Montreal
Posts: 31,938
|
That sounds wrong - that it disappears upon one click. Consider filing a bug with Apple against its Java implementation.
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 |
||||||||||||||||||||||||||||||||||||||||||
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|