osx - How can I display multiple dock items for jFrames within one Java application? -


i have modular java application: single jar launches 'control panel', user can open several modules. each module uses own jframe. (a discussion of whether or bad practice can found here - in case modules talk 1 perform different functions).

running on windows, each module (jframe) gets own icon on taskbar, , selectable via alt-tab. on os x 1 dock icon , 1 icon in application switcher (cmd-tab). makes quite awkward switch between modules, several of open @ 1 time.

how can put each module (jframe) in os x dock , application switcher separately?

iterestingly, if iconise 1 of jframes, appear in dock, in right-hand area trash.

i testing using java 7 on os x 10.10 (yosemite). have made cheat's .app launches jar via shell script, in order provide cmd-line arguments (xdock:name etc) , icons - have info.plist file.

you can't. os x user interface doesn't work way.

iterestingly, if iconise 1 of jframes, appear in dock, in right-hand area trash.

this user-configurable. see preferences > dock > minimize windows application dock.

rather fight against normal os behavior, come own "module switcher" feature, perhaps making part of control panel. find application switching , dock icon behavior differs lot across operating systems. trying make os x behave windows, or vice-versa, outside bounds of application big headache.

that said, if don't want heed above advice, way can think of want create dummy applications, don't display windows, show in dock. dummy applications can started main application. when dummy application clicked, can signal main application (perhaps listening on local open port) make 1 of modules active. give illusion each module had own place in dock. work alt-tab switcher well.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -