I have created two panels in my container, each panel add an object of two different classes. One class extends JFrame and implements ActionListener and other class extends JSplitPane and extends ListSelectionListener. My problem now is that when I add both the panels in the container the output becomes very slow(i.e the mouse selection, navigation..). What is the problem here? Please Help!