Currently i'm using a Button to click and display some data, but i would like to have the JList to be able to double clicked to display data.. how can this be done..???
Try this add MouseListener to the list. MouseListener mouseListener = new MouseAdapter() { public void mouseClicked(MouseEvent mouseEvent) { if (mouseEvent.getClickCount() == 2 ) { statement; } }; list.addMouseListener(mouseListener);
Where does a nanny get ground to air missles? Protect this tiny ad: