Finds an AWT or Swing {@code Component} by type. If this finder is attached to a {@link Robot}, it will use the component lookup scope in the {@code Robot}'s {@link Settings} to determine whether the component to find should beshowing or not. If this finder is not attached to any {@code Robot}, the component to find does not have to be showing.
Example:
JTextField textbox = finder.findByType(JTextField.class);
@param type the type of the component to find.
@return the found component.
@throws ComponentLookupException if a matching component could not be found.
@throws ComponentLookupException if more than one matching component is found.
@see Robot#settings()
@see Settings#componentLookupScope()
@see ComponentLookupScope