• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IBM Mock #21

 
Kai Li
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic