How set connection to PostgreSQL 9.6 database in Netbeans 8?

In Services tab right click the PostgreSQL node and choose Connect Using.

You see New Connection Wizard.

Change name of database to your(mine is mydb) and write password to database. Click Test Connection, check if connection work.

If connection will be OK the message Connection Succeeded appears.

Click the Next button.

Click the Next button.

Click the Finish button.
The new connection will be visible in Databases node.

The icon is not close so it means that connection is established.
Expand this node.

You see tables in mydb database.
To close connection, right click on this node and choose Disconnect.