What does mean term ''peer'' and what can I do with it if I use getPeer() in Com
JavaFAQ Home » General Java
Question: What does mean term "peer" and what can I do with it if I use getPeer() in Component?
Answer: You should not use it now since
it is deprecated.
Thee peer is a system dependant component. All "heavyweight" graphical
components have a respective peer that is responsible for communication between
OS and Java. The peer level is different for different platforms but it makes
possible to have "write once run anywhere" principle.
Swing almost does not use heavyweight components and you should not use it as
well until you are going to adapt Java to new OS or write your own component...
Deprecated. As of JDK version 1.1, programs should not directly
manipulate peers; replaced by
Printer Friendly Page
Send to a Friend
Search here again if you need more info!