i know everything deep down must get called thru the OS ( on windows...windows api ) my question is the following
1.) when you make buttons or windows in java are they using the windows api functions to make these windows and buttons? or are they drawing them using a library like direct x? or is it simply using its own library which is java api?
put more simply what is java using to render buttons and windows to the screen ?
java windows and buttons?
Java swing (and awt too) should use the native OS APIs for gfx environment, like win32 in Windows (I'm not sure what exactly are the APIs used).. Only in the early versions of Java used to be implemented at low level with a proprietary solution due performance issues (they changed the implementation due the limitation of that implementation and several issues caused by it, it wasn't nice when the OS gfx APIs doesn't recognise a java windows, lol )... or this is what they told me at uni xD
Anyway, swing and awt etc are mapped over OS APIs, so you should not have great problems with interoperability..
Anyway, swing and awt etc are mapped over OS APIs, so you should not have great problems with interoperability..
Java Swing uses light weight components (drawn and handled by Java) in contradiction to AWT's heavy weight components based on system native widgets.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement