jQuery, PHP and CSS.. NetBeans IDE Still Rocks..

Recently, got an opportunity to do some implementation using Ajax and PHP. Having previously used NetBeans IDE 6.1/6.5 for PHP, it was an obvious choice to come back to NetBeans IDE again.

Although, I am yet to download the latest version, I am currently using 6.8 and I enjoyed every bit of it, while playing with CSS and jQuery for the first time, while implementing Ajax with PHP.

As I am gonna stay with PHP for sometime now, so I guess I better get my NetBeans IDE upgraded, before I miss out on any useful features.

It’s good to be back :)

SQL Editor and NetBeans | #1

In the previous blog, I mentioned SQL Editor. NetBeans has improved it in every release in the past 2 years and it looks great these days. Here’s a sneak-peek;

Click to enlarge!

This figure shows the SQL Editor window along with the results shown for the command executed, written in the editor (select * from nbusers). Also, you can see numerous toolbar buttons, and results are shown in similar way as if it was any CRUD application. We will discuss this in more detail in following section and follow-up blogs.

Key Features..

Execute Command

To execute any SQL query within the NetBeans IDE, you must write the necessary queries in the SQL Editor shown above. Then, you may use a shortcut key (Ctrl-Shift-E) or make use of the icon (Run SQL (Ctrl+Shift+E)), clicking this toolbar button will execute the queries against the selected database (shown in drop-down list of Connection‘s), and relevant feedback is generated in the Output window (see figure). Also, results are shown as mentioned earlier.

Click to enlarge!

SQL History

Now, we will have a look at another cool feature, known as SQL History. You can read more about it on some of the Sun blogs written by;

John Baker

A new database feature in NetBeans 6.5 is the ability to save and reuse SQL statements that have been executed. A dialog listing SQL statements along with the date executed can be opened from the SQL Editor by right-clicking within the editor and choosing SQL History or clicking an image button for SQL History in the SQL Editor toolbar.

James Branam

The order the statements appears in is descending, the more recently executed statement appears at the top of the dialog. To help search for an SQL statement, you can choose the connection for the database against which the statement was executed.

Here’s a quick view of the feature;

Click to enlarge!

Integration with Database Explorer

This is also one of the coolest features about SQL Editor, i.e. its integrated with Database Explorer shown in Services window, goto “Window | Services” or hit the shortcut keys (Ctrl+5) on Windows Operating System to access the window.

Click to enlarge!

This figure shows Database Explorer on the left, while the SQL Editor on the right and Output window at the bottom of the two. Here you could see database (created for demonstration) named prayogshala is connected on MySQL Server running on localhost. It has only one table named nbusers, which consists of attributes (username, firstname, lastname).

Blast from the Past,

I google’d a bit about the presence of NetBeans SQL Editor on Sun blogosphere and I was amazed to find a blog which dates back to Year 2005, when SQL Editor was first introduced into the NetBeans IDE. It was none other than, Geertjan Wielenga who blogged about it…

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.

Also, you could read more about the SQL Editor and related features from “David Van Couvering’s blog”, Embedding of SQL Editor support into PHP Editor from the “NetBeans PHP Team’s blog”. Finally, don’t miss out on the award-winning plugin (PL/SQL Editor) created during NetBeans Innovator Grants.

This is in fact my 150th blog entry over here.
Indeed, its a special one!

Hmmm…

So, this was just a brief overview of the features currently supported by NetBeans IDE. The follow-up blogs will continue to focus on either some/all of these features in detail.

This blog has been contributed to NetBeans Community Docs Program and for latest updates on this content, refer to the contribution.

Stay tuned for more..

MySQL, NetBeans and SQL Editor

I have been busy lately thanks to my internship project, which almost got screwed up. I was working in a team of 4 people, where we were building a web application, that was initially deployed at JBoss Server using JBoss Eclipse IDE (old version). Also, we had to interact with the centralized Oracle Server to setup our database for running the website.

Now, having being trained on some of those technologies in past few months, I thought it won’t be much of an issue. However, at the beginning of this month, I faced some weird issues which had no obvious answers. There weren’t any silly mistakes either. We were facing some issues with Oracle connectivity. I am not blaming Oracle or the company where we did the project. But, mix of old and new technologies, turned out to be quite confusing resulting in lot of trouble.

We were running out of time, so we decided to migrate our database to MySQL Server and use NetBeans 6.5 IDE, instead of old version of Eclipse. In the last 2 weeks, we were changing IDE’s, Servers and what not? After surpassing many hurdles, we completed the project and deployed it on the intranet with no issues.

Technologies Used

Servers: Apache Tomcat 6.0 Server running on one system, while the MySQL Server 4.x running on some other system.

Integrated Development Environments: JBoss IDE for Eclipse (2.0.0.beta2), Adobe Flex Builder 3 (Trial Version) and NetBeans 6.5

Experience

Although, we faced many hurdles while we strive towards  the project completion, I picked up many skills and learned many tricks to speed up the development. It was an amazing experience and certainly enriching one! Stay tuned to my blog to learn a few.

Also, I loved using SQL Editor provided by NetBeans IDE, it was so easy to manage the databases. Whenever you “Execute Command…” any SQL query, the data shown in form of the table is basically a CRUD application. It looked like the Java Application, you could have made using Swing Application Framework in NetBeans IDE. In the following blogs, you would get to know more about SQL Editor. Now, internship is over and I am back in my home town.

Awards: NetBeans back with a bang

Winners of the Developer.com Product of the Year 2009 have been announced and you won’t be surprised to know..

NetBeans is certainly back with a bang ! We won FIVE awards out of TWELVE..

Here’s an excerpt from the announcement,

In the past due to close races, runner ups were also recognized. This year there were no close calls. Each winner won its category with a respectable margin.

In the case of Java Tools the winner had almost three times the votes of the others finalists in the category combined.

It is no surprise that the Development Tool category received the most votes. The second most popular category continues to be Open Source. Looking back over the last two years this shouldn’t be surprising at all.

The top two categories last year were Development Tool and Open Source. Two years ago the top categories were Wireless/Mobile and Open Source.

Last year, we won under the categories: Developer Tool, Java Tool and Wireless/Mobile Development Tool.. You can also take a look at the hall of fame , where we have won more awards over the past several years.. You haven’t yet started using NetBeans? What are you waiting for?

NetBeans Community Rocks!

Woodstock Migrates to ICEfaces

Hey,

Today, NetBeans Team announcing a joint effort between NetBeans and strategic partner ICEsoft to offer support for Woodstock users. With the latest ICEfaces-NetBeans Plugin, Woodstock users will be able to migrate and maintain their existing projects, and ICEfaces has provided a detailed porting guide to explain the process.

For more details and resources, check out this News Item;

http://www.netbeans.org/servlets/NewsItemView?newsItemID=1324

Happy NetBeaning!