I want to write a program , JProgressBar with java.sql.Statement,
where JProgressBar gets updated with Statement execution.
i.e. I should get progress of Currently executing statement, so that i can set value of JProgressBar...

Is it possible ?
How to do it ?

Possible if you running large number of queries and wish to know what is your progress status.
I deem to impossible on single query as long somebody can come forward and show me how to monitor progress inside database...