Hi Jyothi,
My definition of peer is not the same as you have mentioned.
You must be aware that java.awt.* package API was developed in scant 21 days.The reason for such a rapid development is due to the peer concept, which Sun used for developing this API.
For example, to develop some component like say Window, they did not try and define the class by itself.Instead, the class Window of AWT API invoked a call to its Operating System
peer class to display the Window.These Operating System classes which are invoked, when we instantiate
Java components like Frames, Windows, Buttons, etc. are called peers.
Hope this helps,
Sandeep
SCJP2, OCSD(Oracle JDeveloper), OCED(Oracle Internet Platform)