Comments (5)
Hi! I think the reason is that custom menus are just not supported in combination with system menu bars https://github.com/openjdk/jfx/blob/c705bd493931d88650542be5466d6add359f45b9/modules/javafx.controls/src/main/java/javafx/scene/control/skin/MenuBarSkin.java#L881
On Windows, you probably don't use system menu bars (as AFAIK Windows doesn't support them at all), which is why it is working there. So I guess that this is less a NSMenuFX issue than a general JavaFX problem. NSMenuFX uses the system menu property of JavaFX to put menus into the macOS system menu bar.
from nsmenufx.
Hmmm, that is unfortunate. I was using CustomMenuItems so I could add tooltips to some of my menu items. Other than not using CustomMenuItems, do you know of any work-arounds for this?
from nsmenufx.
Hmm, apparently macOS menu items do support tooltips: https://developer.apple.com/documentation/appkit/nsmenuitem/1514848-tooltip?language=objc
Unfortunately, I cannot think of any way to make this work with JavaFX. The only thing I can think of right now is to add some helper class that lets you add tooltips to menu items created by NSMenuFX.
from nsmenufx.
Thanks for looking into this. For now I will switch to use regular MenuItem
, and then see if can figure out a way to get tooltips to work.
from nsmenufx.
Windows does not seem to support tool tips either in its standard menus. May QT does this but not necessarily the windows standard framework. Haven't seen any macOS apps with tooltips in menus. If macOS supports this, then this would require an enhancement request for OpenJFX.
from nsmenufx.
Related Issues (17)
- Update MenuBar contents dynamically? HOT 3
- MenuBar not responsive after application start HOT 4
- FYI: Hugely useful for Swing as well
- Unable to quit application when setting MenuToolkit.setForceQuitOnCmdQ(false)
- New Stage puts App menu on it HOT 2
- Question - how about integrating this directly into JavaFX using ForeignLinker API?
- Update to JavaFX 19 with Java 17 HOT 2
- Focus Issue on Mac OS Big Sur and above HOT 1
- KeyCode.SHORTCUT not working when adding keyboard accelerators
- 3.0.0-BETA2 Events not working all of the time HOT 3
- Support for Windowless menu bar HOT 1
- setAccelerator() not working as expected HOT 3
- Provide convenience method to create Preferences MenuItem HOT 1
- Error: automatic module cannot be used with jlink: com.sun.jna HOT 6
- MenuBar not working on launch HOT 4
- Problem with popups HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nsmenufx.