Once a database is created, NetBeans can connect to it using the "Services" pane. Just right click on the database icon and select "Connect" from the popup menu. The database icon will change slightly to indicate that it is connected.
When connected, the zig-zag white line disappears fom the database icon. The icon should look like this: