[1867] in java-interest

home help back first fref pref prev next nref lref last post

Re: Peer classes?

daemon@ATHENA.MIT.EDU (Arthur van Hoff)
Mon Sep 18 23:11:44 1995

Date: Mon, 18 Sep 1995 16:46:45 -0800 (PDT)
From: Arthur van Hoff <Arthur.Vanhoff@Eng.Sun.COM>
Reply-To: Arthur van Hoff <Arthur.Vanhoff@Eng.Sun.COM>
To: Sid Conklin <sid.conklin@nora.stanford.edu>
Cc: java-interest@java.Eng.Sun.COM



Hi Sid,

> I haven't found any documentation on java.awt.peer classes so I'll ask the
> beginner's question: what are they for? 

They are the implementation classes of the AWT components. You never have
to deal with them. When a instance of class Button is created, a peer is
also created for it. On Solaris you will get a MotifButtonPeer and on
Windows you will get a WindowsButtonPeer. This means that you won't
have to know about the implementation (you are simply using Button),
but the Button itself is using a different peer on each platform!

Have fun,

	Arthur van Hoff
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post