anchor.diff:  
   == Creating Custom Controls
   
  -In this section, I'm going to walk you through creating a custom control and hopefully pass along a few tip and help standardize how controls are built.  This way (if you feel so inclined) you can share your controls with other and all will know exactly how to use your control.+
  -+
  +In this section, I'm going to walk you through creating a custom control and hopefully pass along a few tip and help standardize how controls are built.  This way (if you feel so inclined) you can share your controls with other and all will know exactly how to use your control.
  +
   
   
   === A Reusable Contextual Menu
  
positive.code: ----
  
  
  === Extending the Window Class to Utilize Our Control
  
  
  ==== STEP 1: Extend the window class and add a few methods
  
  We need to entend the window class in order to add right-click event handling and handle the setOption() method call from our ContextualMenu class.+
  +
  
  [source,java]
  ----
  
negative.code: ----
  
  
  
  === Adding Our New Control to the Screen
  
  [source,java]
  