Jump to content
  • Advertisement
Sign in to follow this  
nuclear123

java windows and buttons?

This topic is 2633 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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 ?

Share this post


Link to post
Share on other sites
Advertisement
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..

Share this post


Link to post
Share on other sites
Java Swing uses light weight components (drawn and handled by Java) in contradiction to AWT's heavy weight components based on system native widgets.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!