|
-
Jan 7th, 2002, 06:01 PM
#1
Thread Starter
Fanatic Member
Java Controls
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
"The difference between mad and genius is the success"
-
Jan 8th, 2002, 04:59 PM
#2
Thread Starter
Fanatic Member
ohhh.... ok.... and what about the API... can you access the Api with Java?
"The difference between mad and genius is the success"
-
Jan 9th, 2002, 04:42 PM
#3
Hyperactive Member
<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.
"There are only two things that are infinite. The universe and human stupidity... and the universe I'm not sure about." - Einstein
If you are programming in Java use www.NetBeans.org
-
Jan 10th, 2002, 04:10 PM
#4
Thread Starter
Fanatic Member
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
"The difference between mad and genius is the success"
-
Jan 10th, 2002, 04:26 PM
#5
Dazed Member
Posted by Andreex
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 graphical
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|