JComboBox jcb = (JComboBox) e.getSource(); int newView = jcb.getSelectedIndex(); if (newView != viewType) slopeReset = true; switch(newView) { case 0: viewType = SLOPESHADING; break; case 1: viewType = COLOREDSHADING; break;
JComboBox jcb = (JComboBox) e.getSource(); int newView = jcb.getSelectedIndex(); if (newView != viewType) slopeReset = true; switch(newView) { case 0: viewType = SLOPESHADING; break; case 1: viewType = COLOREDSHADING; break; }
		public void actionPerformed(ActionEvent e) {		    JComboBox jcb = (JComboBox) e.getSource();		    int newView = jcb.getSelectedIndex();		    if (newView != viewType)			slopeReset = true;		    switch(newView) {		    case 0: viewType = SLOPESHADING; break;		    case 1: viewType = COLOREDSHADING; break;		    }		}