wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes IBM Mock #21 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "IBM Mock #21" Watch "IBM Mock #21" New topic
Author

IBM Mock #21

Kai Li
Greenhorn

Joined: Jun 26, 2000
Posts: 29
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).]
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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).]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IBM Mock #21