Mac OS X 10.7.3 macmini4,1
Compile and run an application setting a dock icon menu (I've attached a simplest possible one). Using Apple Java 6, you will see that on top of menu there are all focusable frames listed. Well, some frames, anyway, and you can choose and focus one.
Not so in jdk7: nothing listed.