Campbell Ritchie wrote:Welcome to the Ranch
What sort of Listener is it?
Don't know, but I think we shall need to see your c ode.
Campbell Ritchie wrote:Why do you want to a scroll pane in a method called xxxListener? That method has a confusing name; it should have add or remove in its name. You should be adding the scroll panes in the constructor or "setUpGUI" method.
Javad Rashidi wrote:Hi Oliver. i think the problem is JScrollPane because it is gets mouse event and do not let JPanel get mouse event. you should use dispatchEvent to get mouse event from JScrollPane and send it to JPanel.