This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
AWT components get their look and feel from: a. Programmable painting support classes; b. JVM drawing primitives; c. SWING class; d. Peer classes; I don't know how to answer this question and I just select d. Can somebody tell me which is correct answer and why? [This message has been edited by Kai Li (edited July 28, 2000).]
I also think that option D (peer classes) is correct. My understanding is that the JVM uses the resources of the operating system to generate the components you see. I suppose native calls are made to the underlying OS to draw, say, a button and futher OS interaction is performed to deal with events like clicks and such. Notice that these components have the look and feel of the OS. Swing is different in that the JVM, itself, handles the rendering of and interactions with the components instead of relying on the underlying OS's implementation. I'm hoping that someone who knows a lot about the subject will refine and/or add my explanation. [This message has been edited by DaB (edited July 28, 2000).]