Geertjan's Blog

  • September 7, 2006

NetBeans Keyboard Shortcut of the Week (4)

Geertjan Wielenga
Product Manager
This week's Keyboard Shortcut of the Week is an example of how cool things in NetBeans IDE can mean cool things for the NetBeans Platform, which can also mean cool things for applications built atop that platform. The keyboard shortcut in question is... Alt-Shift-D, which you can only make use of if you're using a post-5.5 development build. (Yes, 5.5 hasn't been released yet, but you can already play with the one that'll come after that.)

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!

Join the discussion

Comments ( 1 )
  • Ahmed Mohombe Thursday, September 7, 2006
    BTW learning shortcuts:

    For IntelliJ there's a new plug-in Key promoter that's simply genious. It displays the shortcut associated with an action if one is using the mouse for that action :). IMHO is fantastic and the simplest way to learn shortcuts :) (it works even for very lazy people :) ).

    It would be nice if there were such a plug-in for NB too (but I suppose only someone with very deep knowledge of NB internals could make it). For IntelliJ however it takes only an 8K jar to achive that effect.


    P.S. One must try it with IntelliJ to see how efficient it is :).
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.