Returns a wrapper for a given Java Swing peer.
Returns a wrapper for a given Java Swing peer. If there is a compatible wrapper in use, this method will return it.
wrap methods in companion objects of subclasses of UIElement have
the same behavior, except that they return more specific wrappers.