// Write test harness here int min = 1; int max = 10; Selector selector = new Selector(min, max); assert selector.selectorValue() >= min && selector.selectorValue() < max
public class MapGrid extends JPanel implements Common, MouseListener{ //... Selector s = new Selector(); // ******* HERE ********** // ... public void mousePressed(MouseEvent evt) { // .... else{ brick[index].setChoice(s.display); cell[index]=s.display; } // .... } //... }
try { mygraph.styleSheet.parseStyleFromString( new Selector(getSelectorType(), getId(), null), (String) newValue); } catch (Exception e) {