What are AWT peers? When are peers created and destroyed? A Component is associated with a standard AWT button object, a peer object (hidden button object internal to the native GUI) and an interfacing button object constructed per the native GUI.
The behaviour of a particular component can depend on the peer. The peer object for a Button contains platform-dependent code whereas the AWT button object would be identical for all platforms.