return ((MyDisplayMode) listModel.getElementAt (jList1.getSelectedIndex())).displayMode;
MyDisplayMode mdm = (MyDisplayMode) listModel.getElementAt (jList1.getSelectedIndex()); return mdm == null ? null : mdm.displayMode;
    DisplayMode getDisplayMode() {	return ((MyDisplayMode) listModel.getElementAt		(jList1.getSelectedIndex())).displayMode;    }