moved mouseClicked functionality to mousePressed in DBDocument