Example #1
0
 /**
  * Inserts a separator at the specified position.
  *
  * @param index an integer specifying the position at which to insert the menu separator
  * @exception IllegalArgumentException if the value of <code>index</code> < 0
  */
 @Override
 public void insertSeparator(int index) {
   if (index < 0) {
     throw new IllegalArgumentException("index less than zero.");
   }
   popupMenu.insertSeperator(index);
 }