NetBeans Keyboard Shortcut of the Week (4)
By Geertjan on Sep 06, 2006
So, what does the shortcut of the week do for you? Well, it undocks a window. Look how cool that is for the JFugue Music NotePad... you could be composing two pieces simultaneously (thanks to excellent code contributions that Pierre did recently, as a result of which the editor window (called "JFugue Commands" in the screenshot below) is always synchronized with whatever score is currently selected). Since each score is a separate document and since each document is an instance of a window, each of them can be undocked separately, resulting in this effect:
So, when I add new notes (or rests) to one of the open score documents, the related JFugue strings are added to the editor window, which is linked via Lookup to the currently selected document. In this way, I could be composing multiple scores simultaneously because all my scores could be open at the same time all over my screen, thanks to the undocking functionality, which is part of the NetBeans Platform so that nothing (nothing at all) needs to be coded by you—the platform gives it to you for free. Can't wait for 6.0, when this will be a standard part of the NetBeans distribution!