Geertjan's Blog

  • October 7, 2005

Improved Toolbar Support in NetBeans IDE 5.0

Geertjan Wielenga
Product Manager
This is what the Toolbars submenu looked like in NetBeans IDE 4.1:

And this is what you see in NetBeans IDE 5.0:

The difference? Notice the Customize menu option. Click it. You see all the toolbar buttons in a dialog box called 'Customize Toolbars'. On the face of it, there's nothing you can do with these buttons—right-click any of these buttons and nothing happens. No contextual menu. But, try this: click New Toolbar and then type a name for your toolbar in the New Toolbar dialog box:

Again, on the face of it, your life hasn't improved very much. No changes anywhere, apparently. But this is where it all comes together—drag a button from the Customize Toolbars dialog box into an empty part of the toolbar above it (i.e., to the right of the Memory toolbar). Here, for example, you see the Update Center button selected in the dialog box and above it you see it again in the toolbar:

How did it get there? I dragged-and-dropped it there. (I could also drag and drop toolbar buttons from this dialog box into any existing toolbar, were I to want to do so.) And now, when I go back to the menu where I started in this blog entry, I see I have a new toolbar:

However, it seems that the only place where I can delete my new toolbar is in the place where toolbars were always handled before, in the Options window (in the Classic view). Still, it's pretty cool to be able to create a toolbar by drag and dropping in this way. And it seems to me to be a somewhat hidden feature. Thanks to Ken Ganfield for showing it to me.

Join the discussion

Comments ( 4 )
  • Giuliano Monday, October 17, 2005
    Hi! Please, why my Netbeans 5 Beta dont't save my customize toolbar? I add 'Run File' in Build toolbar, and when I restart NetBeans the button is not visible!
  • Geertjan Monday, October 17, 2005
    Can you tell me step by step everything that you did? (Start with a fresh user directory.) I will try and reproduce it.
  • Giuliano Monday, October 17, 2005
    I go delete user directory first! I don't do it!
  • Petia Thursday, December 18, 2008

    Can you tell how to make this dialog to show ONLY my actions in a netbeans platform application?

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.