painting of query window (first draft)
basic code for histogram with JFreeChart