Making the simple complicated is commonplace; making the complicated simple, awesomely simple, that's creativity. -- Charles Mingus

Sunday, April 19, 2015

More news on Java, Mac, Screen Menu Bar

It turns out that the situation described in my previous posting does not tell the whole story.

After making the screen menu bar work for one of our applications, I attempted to do the same thing for the others.  One successful trick in the first application was to override JMenuBar.addNotify() to add the accellerators.  The theory was that this is the moment that the screen menu bar is created.  And the technique worked for one application.  But...the same trick, indeed the same code, did not work for other applications in our suite.

The best I can tell is that there is some kind of race condition which gives a time window when the peer is ready, and if you miss it, you're sunk.   But this is just a conjecture.  Still working...

No comments:

Post a Comment