myBrush = new ShapeBrush((AbstractBrush)myBrush);
myBrush = new ShapeBrush((AbstractBrush)brushes.getSelectedBrush()); ((ShapeBrush)myBrush).setTile(t);
		private void createFromOptions() {			if(cbRandomBrush.isSelected()) {				myBrush = new RandomBrush((AbstractBrush)myBrush);				((RandomBrush)myBrush).setRatio(sRandomAmount.getValue()/sRandomAmount.getExtent());			} else {				myBrush = new ShapeBrush((AbstractBrush)myBrush);			}						myBrush.setAffectedLayers(((Integer)affectLayers.getValue()).intValue());						update();		}