jMainClassList.setSelectionMode (ListSelectionModel.SINGLE_SELECTION);
jMainClassList.setListData (getWarmupList ());
jMainClassList.addListSelectionListener (new ListSelectionListener () {
public void valueChanged (ListSelectionEvent evt) {
if (changeListener != null) {
changeListener.stateChanged (new ChangeEvent (evt));
}
}
});
// support for double click to finish dialog with selected class
jMainClassList.addMouseListener (new MouseListener () {
public void mouseClicked (MouseEvent e) {
if (MouseUtils.isDoubleClick (e)) {
if (getSelectedMainClass () != null) {
if (changeListener != null) {
changeListener.stateChanged (new ChangeEvent (e));
}
}
}
}
public void mousePressed (MouseEvent e) {}