Geertjan's Blog

  • September 27, 2005

New: SQL Editor in NetBeans IDE 5.0

Geertjan Wielenga
Product Manager
One area that's improved significantly in NetBeans IDE 5.0 is the SQL Editor. In fact, there never was an SQL Editor before. In NetBeans IDE 4.1 -- and the releases before that -- you had a very small space where you could type SQL commands for sending to the database (click to enlarge):

In the screenshot above, you really need to look for the space for typing SQL commands, it's very small. In NetBeans IDE 5.0, you have a proper editor to use (click to enlarge):

What makes it a "proper" editor? Well, syntax highlighting, for example. And when you right-click in the editor, you get a pop-up menu with some cut/copy/paste menu items. And, one really cool side effect of having an editor is that you can (in not more than a few minutes) extend it. For example, here's a new action that I added to the SQL Editor's pop-up menu:

Not bad, huh? Editors are really cool, because you can extend them. How? How can you extend them? How can a menu item such as the one above be added to an editor? Read the NetBeans Source Editor Extension Module Tutorial for details.

Join the discussion

Comments ( 2 )
  • Gavin Sunday, September 30, 2007

    Nice..Is there any neat way of publishing the SQL Module directly as a web service in NB 6?

  • guest Monday, October 22, 2012


    I need to add a tab with the query output window of sql editor at the click of a button. Is there any way that I can add my output window along with the query output window for each sql file.

    Pls help.

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