/** Make a clone of this object. */ public Object clone() { Class myclass = this.getClass(); Object newObject = null; try { newObject = myclass.newInstance(); } catch (Exception ex) { InternalErrorHandler.handleException(ex); } GenericObject gobj = (GenericObject) newObject; if (this.inputText != null) gobj.inputText = new String(this.inputText); return newObject; }