Hello....
I was just wondering 2 things....
first.... do the JavaControls (awt) have a whnd?
and... can you access the API from Java? If it is possible... can you post a little simlpe example on how to?
Thank you:cool:
Printable View
Hello....
I was just wondering 2 things....
first.... do the JavaControls (awt) have a whnd?
and... can you access the API from Java? If it is possible... can you post a little simlpe example on how to?
Thank you:cool:
ohhh.... ok.... and what about the API... can you access the Api with Java?
<sigh> no you can't <as far as i know> because Java is supposed to be portable and there fore anyone w/ a JVM should be able to run it, and thus your prog cannot depend on anything but Java files (and data files of course), being able to access anything from the system would not be in the spirit of Java, but you don't really need anything from windows as the java class library is pretty good as it is.
PS - don't use AWT, use SWING, get w/ the times, there is a good tut for it on the sun site.
No API? Well.. that is kind of sad. Now I see more clear the difference s between an ActiveX and and Applet. And ActiveX is unsecure.. but you can do anything with it... and an Applet is very secure but you cant do everything with it....
Is the AWT and SWING different concepts!?!?!?!? I thougt they were the same
Basicaly they are in a way. Swing is built on top of the core 1.1 & 1.2 awt libraries with each swing component extending it's awt counterpart. Swing contains nearly twice the number of graphicalQuote:
Posted by Andreex
Is the AWT and SWING different concepts!?!?!?!? I thougt they were the same.
components as it's predecessor awt 1.1
Swing depends extensively on the event handling mechanism of awt 1.1 although it does not define a comparatively large amount of events for itself. I think that there are other issues also being that swing components are lightweight compared to awt components but im not too sure about that one.