What is the correct way of stopping an object in a method that was created in another?
<p>I have a form that has a button which creates a new object and calls it's <code>start()</code> method.</p>

<p>The program works fine, however, I now want to create a stop button. I obviously cannot call the object's <code>stop()</code> method as it is elsewhere, but, I just can't think of the correct way of changing my code.</p>

<p>As I write this, the best thing I can think of is to take the <code>MyObject myo = new MyObject("test");</code> and place <code>MyObject myo;</code> at the top of the class, outside methods and then try to set it from within the class.</p>

<p>What would you do in this situation?</p>
